-
Notifications
You must be signed in to change notification settings - Fork 110
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
[ENH] Microscopy: Add validation of JSON for photo files #1415
[ENH] Microscopy: Add validation of JSON for photo files #1415
Conversation
validators/microscopy/checkJSONAndField.js
These changes look good. I'm looking at a way to combine the logic from different parts of the validator. I'll update this PR accordingly depending on what I find. |
Hi @rwblair, is there any news on this PR? |
validators/microscopy/checkJSONAndField.js
@mariehbourget I made a PR against this branch: Adds some tests and rebases on master. I also tested against the bids-examples branch and it worked as expected.Once tests are passing for this I'll go ahead and merge it. |
Thanks @rwblair! As for merging to the bids-validator master, we may want to wait for bids-standard/bids-specification#1000 to be approved, I'll ask for a final review. |
That be great, depending on how the CI does I may make more PRs. Waiting for the specification merge to happen first isn't a problem. |
Add tests for check photo json.
Hi @rwblair! There are some errors with the last merge that I don't fully understand, let me know if there is anything I can do to help. |
@mariehbourget is the box "allow commits from maintainers" not checked? I just wanted to push a fix but couldn't do it. Anyhow, fixes are in neuropoly#9, which you can simply merge :-) --> but in the future it would be nice to tick the "allow commits from maintainers" box |
Codecov Report
@@ Coverage Diff @@
## master #1415 +/- ##
==========================================
+ Coverage 84.10% 84.95% +0.84%
==========================================
Files 90 90
Lines 3631 3683 +52
Branches 1098 1121 +23
==========================================
+ Hits 3054 3129 +75
+ Misses 483 467 -16
+ Partials 94 87 -7
Continue to review full report at Codecov.
|
Hi @sappelhoff, thanks for the PR neuropoly#9, it is now merged. I would gladly grant you access of course but I could not find the "allow commits from maintainers" box anywhere, sorry about that. Is it supposed to be on the main page of the PR (this page)? |
Yes, perhaps it's because you submitted the PR from a "third party" organization account 🤔 ... either the situation there is completely different OR you have insufficient rights there 🤷♂️ anyhow the solution is probably to next time do a PR from you personal fork :-) |
This PR adds validation of the new JSON file associated with microscopy photo files in:
Still WIP as the spec PR is not approved yet.
The new JSON file includes the
IntendedFor
field.I used the same error code (
37
) and validation steps as innii.js
here.New photos and associated JSON files are added in microscopy examples in: