You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user has an NWB file with session_id = "BLA-projecting NBM/SI neuron from animal M24 on 26/07/2023". It looks like NeuroConv or dandi-cli is replacing the "/" in the session ID with "\" when renaming the file before upload, and therefore the file cannot be found.
DANDI uses the following format for file names: {dandiset_id}/sub-{subject_id}/sub-{subject_id}_ses-{session_id}.nwb so a "/" in the session ID (or subject ID) would cause problems unless handled in a special way.
The error is reported in NWB GUIDE, but from what I can trace, the error comes from calling neuroconv. See traceback below. The inputs to automatic_dandi_upload is a folder /Users/rly/NWB_GUIDE/.temp/upload/temp_20241211-150938 with contents:
ls -al ~/NWB_GUIDE/.temp/upload/temp_20241211-150938
total 0
drwxr-xr-x 3 rly staff 96 Dec 11 15:09 .
drwxr-xr-x 6 rly staff 192 Dec 11 15:09 ..
lrwxr-xr-x 1 rly staff 60 Dec 11 15:09 MACAQUE_CHOL_NBM_FL_20230726T173713.nwb -> /Users/rly/Downloads/MACAQUE_CHOL_NBM_FL_20230726T173713.nwb
So the file is renamed with the session ID by neuroconv or dandi organize.
My suspicion is that this is on the dandi organize but we would need to confirm this. I will take a look at this.
@alessandratrapani
I have the vague memory that I discussed with you some modifications that you did to avoid this. Or was it subject that also messed with the dandi organize?
What happened?
See dandi/helpdesk#169 (comment)
The user has an NWB file with
session_id
="BLA-projecting NBM/SI neuron from animal M24 on 26/07/2023"
. It looks like NeuroConv or dandi-cli is replacing the "/" in the session ID with "\" when renaming the file before upload, and therefore the file cannot be found.DANDI uses the following format for file names:
{dandiset_id}/sub-{subject_id}/sub-{subject_id}_ses-{session_id}.nwb
so a "/" in the session ID (or subject ID) would cause problems unless handled in a special way.The error is reported in NWB GUIDE, but from what I can trace, the error comes from calling neuroconv. See traceback below. The inputs to
automatic_dandi_upload
is a folder/Users/rly/NWB_GUIDE/.temp/upload/temp_20241211-150938
with contents:So the file is renamed with the session ID by neuroconv or dandi organize.
Related:
Steps to Reproduce
Traceback
Operating System
macOS
Python Executable
Python
Python Version
3.12
Package Versions
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: