-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
investigate --validation skip
and --allow-any-path
decision tree
#1074
Comments
First of I would like to clarify that
Then we are to upload it, possibly without any extra (beyond the one of the GenericAsset) metadata
what do you mean by proximity here? that filename looks BIDS-like so we could potentially extract some entities?
hm, good question. I think for
Yes/no. For our DANDI layout we should have also added validation of the path to confirm to our "DANDI layout". Altogether, I think that the situation is similar between BIDS (over nii or nwb or whatnot) and DANDI layout on .nwb files, and there should (if not already there) be validation of both structure and contents.
I think ATM it is just about the partial tree, @TheChymera can correct me if I am wrong. Later, we indeed probably should ensure that it works for "partial tree" but with consideration of "dataset component". |
This sounds like the sort of fuzzy feature that could cause us a lot of misadventures :(
Currently we only return the BIDS dataset roots which pass validation: Lines 463 to 465 in 1c94736
However, regardless of whether the dataset is evaluated as valid, the metadata of all matches is exposed: Line 455 in 1c94736
Invalid files do not have metadata. Partial validation is on my nice-to-have roadmap, but I would argue it's only sensible to use such a feature to improve hinting for the end-user (i.e. this is probably where the mistake is, probably). I really don't think we should annotate metadata from invalid files, it's simply unreliable and potentially broken annotation is always worse than missing annotation.
Validation is run on directories which contain |
@TheChymera and @yarikoptic - my question still remains. in the case of NWB, i can upload a single file independent of the validity of any other NWB file. in the case of BIDS, will i be able to upload a single file/directory if it finds invalid things in other directories outside of that specific tree. given the current bids datasets, it may be very onerous to fix every aspect before renewing upload. hence the check being limited to the sub tree relevant to that file and the bids_description.json. please look at this through the lens of the current datasets and their complexities not any general bids case for now. |
just to clarify for these datasets the following should work:
i include existing as we would want to overwrite the metadata with appropriate extraction from the filename |
in #1069 it seemed that the CLI is trying to detect if something is a bids dataset (also see #1073).
this issue is about the behavior of the CLI when validation is skipped or any paths are allowed:
some of the considerations here really come from the standards (nwb is self-contained in a file), bids is a structure around a set of files.
@TheChymera and @yarikoptic - filed here. would be good to discuss the different options.
The text was updated successfully, but these errors were encountered: