Skip to content

Commit d17e4f6

Browse files
authored
black formatting
1 parent cb13a30 commit d17e4f6

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

neo/io/neuronexusio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ class NeuroNexusIO(NeuroNexusRawIO, BaseFromRaw):
88

99
def __init__(self, filename):
1010
NeuroNexusRawIO.__init__(self, filename=filename)
11-
BaseFromRaw.__init__(self, filename)
11+
BaseFromRaw.__init__(self, filename)

neo/rawio/brainvisionrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _parse_header(self):
107107
units = cds[3]
108108
else:
109109
units = "u"
110-
units = units.replace("µ", "u") # Brainvision spec for specific unicode
110+
units = units.replace("µ", "u") # Brainvision spec for specific unicode
111111
chan_id = str(c + 1)
112112
if sig_dtype == np.int16 or sig_dtype == np.int32:
113113
gain = float(res)

neo/rawio/intanrawio.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,11 @@ def _parse_header(self):
189189
dtype_size = np.dtype(stream_datatype).itemsize
190190
n_samples = size_in_bytes // (dtype_size * num_channels)
191191
signal_stream_memmap = np.memmap(
192-
file_path, dtype=stream_datatype, mode="r", shape=(n_samples, num_channels), order='C',
192+
file_path,
193+
dtype=stream_datatype,
194+
mode="r",
195+
shape=(n_samples, num_channels),
196+
order="C",
193197
)
194198
self._raw_data[stream_index] = signal_stream_memmap
195199

neo/rawio/neuronexusrawio.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from pathlib import Path
3838
import json
3939
import datetime
40-
import sys
40+
import sys
4141
import re
4242

4343
import numpy as np
@@ -165,7 +165,7 @@ def _parse_header(self):
165165
# and because all data is stored in the same buffer stream for the moment all channels
166166
# will be in stream_id = 0. In the future this will be split into sub_streams based on
167167
# type but for now it will be the end-users responsability for this.
168-
stream_id = '0' # hard-coded see note above
168+
stream_id = "0" # hard-coded see note above
169169
for channel_index, channel_name in enumerate(channel_info["chan_name"]):
170170
channel_id = channel_info["ntv_chan_name"][channel_index]
171171
# 'ai0' indicates analog data which is stored as microvolts
@@ -223,11 +223,11 @@ def _parse_header(self):
223223

224224
# date comes out as: '2024-07-01T13:04:49.4972245-04:00' so in ISO format
225225
datetime_string = self.metadata["status"]["start_time"]
226-
226+
227227
# Python 3.10 and older expect iso format to only have 3 or 6 decimal places
228228
if sys.version_info.minor < 11:
229229
datetime_string = re.sub(r"(\.\d{6})\d+", r"\1", datetime_string)
230-
230+
231231
rec_datetime = datetime.datetime.fromisoformat(datetime_string)
232232

233233
bl_annotations = self.raw_annotations["blocks"][0]
@@ -297,4 +297,4 @@ def read_metadata(self, fname_metadata):
297297
# this is pretty useless right now, but I think after a
298298
# refactor with sub streams we could adapt this for the sub-streams
299299
# so let's leave this here for now :)
300-
stream_id_to_stream_name = {'0': "Neuronexus Allego Data"}
300+
stream_id_to_stream_name = {"0": "Neuronexus Allego Data"}

neo/test/rawiotest/test_neuronexusrawio.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@ class TestNeuroNexusRawIO(
1111
):
1212
rawioclass = NeuroNexusRawIO
1313
entities_to_download = ["neuronexus"]
14-
entities_to_test = [
15-
"neuronexus/allego_1/allego_2__uid0701-13-04-49.xdat.json"
16-
]
14+
entities_to_test = ["neuronexus/allego_1/allego_2__uid0701-13-04-49.xdat.json"]

0 commit comments

Comments
 (0)