int-brain-lab / ONE

Open Neurophysiology Environment
MIT License
16 stars 4 forks source link

Filename wildcards can capture collections in filter_datasets #130

Open k1o0 opened 3 days ago

k1o0 commented 3 days ago

for example, with datasets such as

raw_ephys_data/_spikeglx_ephysData_g0_t0.nidq.meta
raw_ephys_data/probe00/_spikeglx_ephysData_g0_t0.ap.meta
raw_ephys_data/probe00/_spikeglx_ephysData_g0_t0.lf.meta

filter_datasets('*.meta', 'raw_ephys_data') returns all three datasets as the filename wildcard is greedy. It should not return the matching filenames in sub-collections.