|
182 | 182 | ('*.ch', 'raw_ephys_data/probe*', True), |
183 | 183 | ('*.cbin', 'raw_ephys_data/probe*', True)] |
184 | 184 |
|
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