bids-validator icon indicating copy to clipboard operation
bids-validator copied to clipboard

[ENH] add support for qMRI json in top dir

Open Remi-Gau opened this issue 3 years ago • 1 comments

relates to #1438

Remi-Gau avatar Oct 10 '22 22:10 Remi-Gau

Codecov Report

Base: 83.27% // Head: 83.17% // Decreases project coverage by -0.10% :warning:

Coverage data is based on head (ba1f53a) compared to base (596bb07). Patch coverage: 66.66% of modified lines in pull request are covered.

:exclamation: Current head ba1f53a differs from pull request most recent head 7e8e846. Consider uploading reports for the commit 7e8e846 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1546      +/-   ##
==========================================
- Coverage   83.27%   83.17%   -0.10%     
==========================================
  Files          91       91              
  Lines        3742     3763      +21     
  Branches     1144     1158      +14     
==========================================
+ Hits         3116     3130      +14     
- Misses        528      535       +7     
  Partials       98       98              
Impacted Files Coverage Δ
bids-validator/utils/type.js 88.59% <66.66%> (-1.67%) :arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Oct 10 '22 22:10 codecov[bot]

OK trying to test but I am failing to do it locally against this PR https://github.com/bids-standard/bids-examples/pull/337 of the bids-example

Remi-Gau avatar Oct 21 '22 10:10 Remi-Gau

@Remi-Gau each top rule still had one required entity, I made those all optional and removed the anat_top entries.

rwblair avatar Feb 22 '23 18:02 rwblair

note to self: still getting an error for the MP2RAGE dataset

Remi-Gau avatar Feb 23 '23 17:02 Remi-Gau

Note that maybe we may actually want to keep the required entities in the name.

For example, it seems that the validator does not accept a bare bold.json file in the root of the dataset: it requires the task entity in the filename.

Remi-Gau avatar Feb 23 '23 18:02 Remi-Gau

partly related to https://github.com/bids-standard/bids-validator/issues/1631

Remi-Gau avatar Feb 23 '23 18:02 Remi-Gau

Seems that all the modified datasets in the bids examples are not OK with this.

Thanks @rwblair

Merge whenever you want

Remi-Gau avatar Feb 23 '23 19:02 Remi-Gau

The error is still present for *UNIT1.json files, was there any reason it was not integrated in this PR? This causes pybids.BIDSLayout.build_path to fail. :-/

bpinsard avatar May 04 '24 00:05 bpinsard

No. Can you open a PR?

I started a bit back on basing the Python validator on the schema, which should make it less susceptible to these errors of omission. I got stalled by https://github.com/bids-standard/bids-specification/pull/1672.

effigies avatar May 04 '24 00:05 effigies