Skip to content

Commit f98554c

Browse files
sprengerJuliaSprenger
authored andcommitted
[neuralynx] pep8
1 parent 60de975 commit f98554c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

neo/rawio/neuralynxrawio/neuralynxrawio.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -750,9 +750,8 @@ def scan_stream_ncs_files(self, ncs_filenames):
750750
data = self._get_file_map(ncs_filename)
751751
nlxHeader = NlxHeader(ncs_filename)
752752

753-
if not chanSectMap or (chanSectMap and
754-
not NcsSectionsFactory._verifySectionsStructure(data,
755-
chan_ncs_sections)):
753+
verify_sec_struct = NcsSectionsFactory._verifySectionsStructure
754+
if not chanSectMap or (not verify_sec_struct(data, chan_ncs_sections)):
756755
chan_ncs_sections = NcsSectionsFactory.build_for_ncs_file(data, nlxHeader)
757756

758757
# register file section structure for all contained channels

neo/test/iotest/test_neuralynxio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def test_incomplete_block_handling_v632(self):
333333

334334
expected_segment_starts = [8124.582909, 8427.832053, 8487.768561]
335335
expected_segment_stops = [8427.831990, 8487.768498, 10794.133994]
336-
for seg_idx in range(n_gaps+1):
336+
for seg_idx in range(n_gaps + 1):
337337

338338
t_start = nio.segment_t_start(0, seg_idx) + nio.global_t_start
339339
t_stop = nio.segment_t_stop(0, seg_idx) + nio.global_t_start

neo/test/rawiotest/test_neuralynxrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_scan_ncs_files(self):
5353
self.assertEqual(rawio.signal_streams_count(), 1)
5454
self.assertListEqual(rawio._timestamp_limits, [(266982936, 267162136)])
5555
self.assertEqual(rawio._sigs_length[0][('unknown', '13')], 5120)
56-
self.assertListEqual(rawio._signal_limits, [(266.982936,267.162136)])
56+
self.assertListEqual(rawio._signal_limits, [(266.982936, 267.162136)])
5757
self.assertEqual(len(rawio._sigs_memmaps), 1)
5858

5959
# Test Cheetah 5.5.1, which is DigitalLynxSX and has two blocks of records

0 commit comments

Comments
 (0)