Skip to content

Commit 3447ea5

Browse files
author
sprenger
committed
[edf] pep8
1 parent e803b85 commit 3447ea5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

neo/rawio/edfrawio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
try:
1919
from pyedflib import EdfReader
20+
2021
HAS_PYEDF = True
2122
except ImportError:
2223
HAS_PYEDF = False
@@ -227,7 +228,7 @@ def _get_event_timestamps(self, block_index, seg_index, event_channel_index, t_s
227228

228229
# only consider events and epochs that overlap with t_start t_stop range
229230
time_mask = ((t_start < timestamps) & (timestamps < t_stop)) | \
230-
((t_start < (timestamps+durations)) & ((timestamps+durations) < t_stop))
231+
((t_start < (timestamps + durations)) & ((timestamps + durations) < t_stop))
231232

232233
# separate event from epoch times
233234
event_mask = durations[time_mask] == 0

neo/test/iotest/test_edfio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_compare_data(self):
6969
for aidx, anasig in enumerate(anasigs):
7070
# comparing raw data to original values
7171
ana_data = anasigs[0].load(magnitude_mode='raw')
72-
np.testing.assert_array_equal(ana_data.magnitude, plain_data[:, aidx:aidx+1])
72+
np.testing.assert_array_equal(ana_data.magnitude, plain_data[:, aidx:aidx + 1])
7373

7474
# comparing floating data to original values * gain factor
7575
ch_head = io.edf_reader.getSignalHeader(aidx)
@@ -79,7 +79,7 @@ def test_compare_data(self):
7979

8080
gain = physical_range / digital_range
8181
ana_data = anasigs[0].load(magnitude_mode='rescaled')
82-
rescaled_data = plain_data[:, aidx:aidx+1] * gain
82+
rescaled_data = plain_data[:, aidx:aidx + 1] * gain
8383
np.testing.assert_array_equal(ana_data.magnitude, rescaled_data)
8484

8585

neo/test/rawiotest/test_edfrawio.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def test_context_handler(self):
2424
with open(filename) as f:
2525
pass
2626

27-
2827
def test_close(self):
2928
filename = self.get_local_path('edf/edf+C.edf')
3029

0 commit comments

Comments
 (0)