int-brain-lab / ONE

Open Neurophysiology Environment
MIT License
17 stars 5 forks source link

ALFMultipleRevisionsFound raised when revision_last_before provided #131

Closed k1o0 closed 3 weeks ago

k1o0 commented 1 month ago
eid = 'caa5dddc-9290-4e27-9f5e-575ba3598614'
revision='2024-05-06'
probe = 'probe00'
one.load_dataset(eid, 'clusters.uuids', collection=f'alf/{probe}/pykilosort', revision=revision)

raises

ALFMultipleRevisionsFound: "", "2024-05-06", "2024-03-22" The matching object/file(s) belong to more than one revision. Multiple datasets in different revision folders were found with no default specified.

Should instead return the 2024-05-06 revision.