Skip to content

Commit 4d4d7e8

Browse files
committed
added a sorted to the listdir of the files in neuralynx folder to avoid mixed files resulting in mixed channel ids depending on the os
1 parent 44f0b2b commit 4d4d7e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/neuralynxrawio/neuralynxrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def _parse_header(self):
213213
event_annotations = []
214214

215215
if self.rawmode == "one-dir":
216-
filenames = os.listdir(self.dirname)
216+
filenames = sorted(os.listdir(self.dirname))
217217
else:
218218
filenames = self.include_filenames
219219

0 commit comments

Comments
 (0)