Skip to content

Commit c9311c6

Browse files
committed
more comments
1 parent 4da8bca commit c9311c6

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

neo/rawio/openephysbinaryrawio.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ def _parse_header(self):
263263
rising_indices = []
264264
falling_indices = []
265265

266+
# all channels are packed into the same `states` array.
267+
# So the states array includes positive and negative values for each channel:
268+
# for example channel one rising would be +1 and channel one falling would be -1,
269+
# channel two rising would be +2 and channel two falling would be -2, etc.
270+
# This is the case for sure for version >= 0.6.x.
266271
for channel in channels:
267272
# Find rising and falling edges for each channel
268273
rising = np.where(states == channel)[0]

neo/test/rawiotest/common_rawio_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ def setUpClass(cls):
6666
"""
6767
cls.shortname = cls.rawioclass.__name__.lower().replace("rawio", "")
6868

69-
if HAVE_DATALAD and cls.use_network:
70-
for remote_path in cls.entities_to_download:
71-
download_dataset(repo=repo_for_test, remote_path=remote_path)
72-
else:
73-
raise unittest.SkipTest("Requires datalad download of data from the web")
69+
# if HAVE_DATALAD and cls.use_network:
70+
# for remote_path in cls.entities_to_download:
71+
# download_dataset(repo=repo_for_test, remote_path=remote_path)
72+
# else:
73+
# raise unittest.SkipTest("Requires datalad download of data from the web")
7474

7575
def get_local_base_folder(self):
7676
return get_local_testing_data_folder()

0 commit comments

Comments
 (0)