What if all validation records were in .jsonl files?!#548
Closed
yarikoptic wants to merge 1 commit intobids-standard:masterfrom
Closed
What if all validation records were in .jsonl files?!#548yarikoptic wants to merge 1 commit intobids-standard:masterfrom
yarikoptic wants to merge 1 commit intobids-standard:masterfrom
Conversation
…atting into jsonl
command was
for dd in */dataset_description.json; do d=$(dirname $dd); dod=$d/derivatives/dandi-validator/; mkdir -p $dod; duct --f-t 0 -p $dod/duct_ dandi validate -o $dod/output.jsonl $d; done
but because validations failed (yet to check why) -- commit did not commit
Contributor
Author
|
ok, it is in the history now. I guess with a little of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a complement to
inspired by
and wonderful program https://www.visidata.org/ .
Inspired by bids-validator being able to produce json outputs, I did
where
dandi-clialready interfaces bids-validator (in addition to nwb inspector etc) to validate bids datasets.The content here is the result of running
so it has also log files on what we spit out warnings etc captured by duct. Going back to wonders of visidata and jsonl (json lines). Since those logs are just dumps of validation records, I can just
and visualize that jsonl with all its tens of thousands of lines
in a second in visidata
and in another second figure out distribution across all issue codes:
in another subsecond concentrating on the one of direct interest to me
So, this PR is nothing to merge but rather potentially let people play with such representation of validation results using the validation results schema we have arrived to in dandi-cli (attn @candleindark)