Skip to content

Commit da10c66

Browse files
author
Thinh Nguyen
committed
clusters extraction - check cluster_group.tsv and cluster_KSLabel.tsv
1 parent 43d6614 commit da10c66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

element_array_ephys/readers/kilosort.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ def _load(self):
107107
self._data['channel_map'] = self._data['channel_map'].flatten()
108108

109109
# Read the Cluster Groups
110-
for cluster_pattern, cluster_col_name in zip(['cluster_groups.*', 'cluster_KSLabel.*'],
110+
for cluster_pattern, cluster_col_name in zip(['cluster_group.*', 'cluster_KSLabel.*'],
111111
['group', 'KSLabel']):
112112
try:
113113
cluster_file = next(self._kilosort_dir.glob(cluster_pattern))
114114
except StopIteration:
115115
pass
116116
else:
117117
cluster_file_suffix = cluster_file.suffix
118-
assert cluster_file_suffix in ('.csv', '.tsv', '.xlsx')
118+
assert cluster_file_suffix in ('.tsv', '.xlsx')
119119
break
120120
else:
121121
raise FileNotFoundError(

0 commit comments

Comments
 (0)