dandi / dandi/dandi-cli

`dandi organize` introduces validation errors

Open
#836 3 comments 0 reactions 0 assignees View on GitHub
cmd-organize
Dominant language
Python
Stars
28
Forks
37
Avg merge
1d 17h
Merged PRs (30d)
9

Description

I ran `dandi validate` on a directory of nwb files that were already almost organized according to dandi rules, then ran `dandi organize`, and it introduced validation error. Example: file sub-Baharat/sub-Baharat_ses-Baharat-01_desc-HomeCage_behavior+ecephys.nwb was reorganized into sub-Baharat/sub-Baharat_ses-Baharat01-HomeCage_behavior+ecephys.nwb. On a seemingly random subset of files (41 files out of ~500, which appear to have nothing in common), I get the following validation error:
```
2021-11-16T15:59:26-0800 [ERROR ] dandi 68496:68500
Failed to read metadata: Link iteration failed (file read failed: time = Mon Nov 15 17:54:26 2021,
filename = '\\hub.gladstone.internal\huanglab-lfp\Emily\DREADDs_NWB\000165\sub-Baharat\sub-Baharat_ses-Baharat01-HomeCage_behavior+ecephys.nwb',
file descriptor = 9, errno = 22, error message = 'Invalid argument', buf = 000002A8A5BE9050,
total read size = 512, bytes this sub-read = 512, bytes actually read = 18446744073709551615, offset = 680)
```

The renamed+copied file and the original file are the same size. If I copy the original file into the organized directory and rename it manually, I get no validation errors.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.