Skip to content

Commit ef9a5a3

Browse files
committed
make pep8speaks happy
1 parent 01bf35b commit ef9a5a3

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

neo/rawio/biocamrawio.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def open_biocam_file_header(filename):
120120

121121
rf = h5py.File(filename, 'r')
122122

123-
if '3BRecInfo' in rf.keys(): # brw v3.x
123+
if '3BRecInfo' in rf.keys(): # brw v3.x
124124
# Read recording variables
125125
rec_vars = rf.require_group('3BRecInfo/3BRecVars/')
126126
bit_depth = rec_vars['BitDepth'][0]
@@ -163,10 +163,10 @@ def open_biocam_file_header(filename):
163163
gain = (max_uv - min_uv) / (2 ** bit_depth)
164164
offset = min_uv
165165

166-
return dict(file_handle=rf, num_frames=num_frames, sampling_rate=sampling_rate, num_channels=num_channels,
167-
channels=channels, file_format=file_format, signal_inv=signal_inv,
168-
read_function=read_function, gain=gain, offset=offset)
169-
else: # brw v4.x
166+
return dict(file_handle=rf, num_frames=num_frames, sampling_rate=sampling_rate,
167+
num_channels=num_channels, channels=channels, file_format=file_format,
168+
signal_inv=signal_inv, read_function=read_function, gain=gain, offset=offset)
169+
else: # brw v4.x
170170
# Read recording variables
171171
experiment_settings = json.JSONDecoder().decode(rf['ExperimentSettings'][0].decode())
172172
max_uv = experiment_settings['ValueConverter']['MaxAnalogValue']
@@ -181,17 +181,16 @@ def open_biocam_file_header(filename):
181181
num_channels = len(rf[key]['StoredChIdxs'])
182182
if len(rf[key]['Raw']) % num_channels:
183183
raise RuntimeError(
184-
f"Length of raw data array is not multiple of channel number in {key}")
184+
f"Length of raw data array is not multiple of channel number in {key}")
185185
num_frames = len(rf[key]['Raw']) // num_channels
186186
break
187187
try:
188188
num_channels_x = num_channels_y = int(np.sqrt(num_channels))
189189
except NameError:
190-
raise RuntimeError(
191-
"No Well found in the file")
190+
raise RuntimeError("No Well found in the file")
192191
if num_channels_x * num_channels_y != num_channels:
193192
raise RuntimeError(
194-
f'Cannot determine structure of the MEA plate with {num_channels} channels')
193+
f'Cannot determine structure of the MEA plate with {num_channels} channels')
195194
channels = 1 + np.concatenate(np.transpose(np.meshgrid(
196195
range(num_channels_x), range(num_channels_y))))
197196

0 commit comments

Comments
 (0)