Skip to content

Commit 494d8ce

Browse files
committed
pep8
1 parent 778f0a4 commit 494d8ce

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

neo/rawio/spikeglxrawio.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def scan_files(dirname):
264264
if info['gate_num'] != gate_num:
265265
continue
266266
max_trigger = max(max_trigger, info['trigger_num'])
267-
total_trigger_per_gate.append(max_trigger+1)
267+
total_trigger_per_gate.append(max_trigger + 1)
268268

269269
for info in info_list:
270270
g, t = info['gate_num'], info['trigger_num']
@@ -288,7 +288,7 @@ def parse_spikeglx_fname(fname):
288288
Consider the filenames: `Noise4Sam_g0_t0.nidq.bin` or `Noise4Sam_g0_t0.imec0.lf.bin`
289289
The filenames consist of 3 or 4 parts separated by `.`
290290
1. "Noise4Sam_g0_t0" will be the `name` variable. This choosen by the user at recording time.
291-
2. "_g0_" is the "gate_num"
291+
2. "_g0_" is the "gate_num"
292292
3. "_t0_" is the "trigger_num"
293293
4. "nidq" or "imec0" will give the `device`
294294
5. "lf" or "ap" will be the `stream_kind`
@@ -370,9 +370,9 @@ def extract_stream_info(meta_file, meta):
370370
num_chan = int(meta['nSavedChans'])
371371

372372
fname = Path(meta_file).stem
373-
373+
374374
run_name, gate_num, trigger_num, device, stream_kind = parse_spikeglx_fname(fname)
375-
375+
376376
device = fname.split('.')[1]
377377
if 'imec' in device:
378378
stream_kind = fname.split('.')[2]
@@ -435,7 +435,6 @@ def extract_stream_info(meta_file, meta):
435435
info['num_chan'] = num_chan
436436

437437
info['sample_length'] = int(meta['fileSizeBytes']) // 2 // num_chan
438-
#~ info['seg_index'] = seg_index
439438
info['gate_num'] = gate_num
440439
info['trigger_num'] = trigger_num
441440
info['device'] = device

0 commit comments

Comments
 (0)