Skip to content

Commit ede9904

Browse files
committed
add dynamic spike sorting signature according to probe name
1 parent 6912740 commit ede9904

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

ibllib/io/extractors/signatures.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,15 @@
182182
('*.ch', 'raw_ephys_data/probe*', True),
183183
('*.cbin', 'raw_ephys_data/probe*', True)]
184184

185-
SPIKESORTING = [('*ap.meta', 'raw_ephys_data/probe*', True),
186-
('*ap.ch', 'raw_ephys_data/probe*', True),
187-
('*ap.cbin', 'raw_ephys_data/probe*', True),
188-
('_spikeglx_sync.channels.*', 'raw_ephys_data*', True),
189-
('_spikeglx_sync.polarities.*', 'raw_ephys_data*', True),
190-
('_spikeglx_sync.times.*', 'raw_ephys_data*', True)]
185+
def spike_sorting_signature(pname=None):
186+
pname = "probe*" if pname else None
187+
signature = [('*ap.meta', f'raw_ephys_data/{pname}', True),
188+
('*ap.ch', f'raw_ephys_data/{pname}', True),
189+
('*ap.cbin', f'raw_ephys_data/{pname}', True),
190+
('_spikeglx_sync.channels.*', 'raw_ephys_data*', True),
191+
('_spikeglx_sync.polarities.*', 'raw_ephys_data*', True),
192+
('_spikeglx_sync.times.*', 'raw_ephys_data*', True)]
193+
return signature
194+
195+
SPIKESORTING = [spike_sorting_signature()]
196+

0 commit comments

Comments
 (0)