int-brain-lab / ONE

Open Neurophysiology Environment
MIT License
16 stars 4 forks source link

Wrong relative path for aggregate datasets #103

Closed juhuntenburg closed 8 months ago

juhuntenburg commented 9 months ago

Depending on which of their file records is returned first, aggregate datasets are not found. The reason is that when the FI file record is returned, the additional "public" in the file path leads to the relation being returned as "aggregates" instead of correcty as "subjects"

I made a momentary fix by setting all FI recrods to exists=False, so they are no longer returned, but this should be fixed

https://github.com/int-brain-lab/ONE/blob/main/one/api.py#L1761 https://github.com/int-brain-lab/ONE/blob/main/one/util.py#L95

juhuntenburg commented 8 months ago

PR #105

juhuntenburg commented 8 months ago

Also set all file records to exist=True once this is released