Skip to content
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

[SCHEMA] Start drafting validation rules for ASL data #1060

Merged
merged 17 commits into from
Apr 15, 2022

Conversation

tsalo
Copy link
Member

@tsalo tsalo commented Apr 12, 2022

This PR tackles validation rules for the following error codes:

  • 25
  • 29
  • 30
  • 31
  • 32
  • 33
  • 91
  • 92
  • 157
  • 165
  • 168
  • 172
  • 173
  • 174
  • 175
  • 177
  • 180
  • 181
  • 196
  • 198
  • 199
  • 202

@codecov
Copy link

codecov bot commented Apr 12, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (schema-sprint@30d8250). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff                @@
##             schema-sprint    #1060   +/-   ##
================================================
  Coverage                 ?   71.50%           
================================================
  Files                    ?        9           
  Lines                    ?      930           
  Branches                 ?        0           
================================================
  Hits                     ?      665           
  Misses                   ?      265           
  Partials                 ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

selectors:
- suffix == "asl"
- sidecar contains "LabelingDuration"
- type(sidecar.LabelingDuration) == "array"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for my sparse appearance at the meetings. So do we have a grammar and interpreter already? (Since in general looks like python but this absent contains operand throws me off, not sure why not to use available in with swap of the arguments)

Copy link
Collaborator

@effigies effigies Apr 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In YAML:

- "LabelingDuration" in sidecar

raises an error because of YAML parsing rules. But we also don't insist that people always use < instead of > so it seemed reasonable to have both directions.

@tsalo tsalo added the schema Issues related to the YAML schema representation of the specification. Patch version release. label Apr 13, 2022
Copy link
Collaborator

@effigies effigies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of ASL. Change associated to associations, due to the result of a game of rock-paper-scissors with @rwblair.

src/schema/rules/sidecars/asl_validation.yaml Outdated Show resolved Hide resolved
src/schema/rules/sidecars/asl_validation.yaml Outdated Show resolved Hide resolved
src/schema/rules/sidecars/asl_validation.yaml Outdated Show resolved Hide resolved
src/schema/rules/sidecars/asl_validation.yaml Outdated Show resolved Hide resolved
src/schema/rules/sidecars/asl_validation.yaml Outdated Show resolved Hide resolved
@effigies effigies merged commit 493bd9d into bids-standard:schema-sprint Apr 15, 2022
@sappelhoff sappelhoff changed the title Start drafting validation rules for ASL data [SCHEMA] Start drafting validation rules for ASL data Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
schema Issues related to the YAML schema representation of the specification. Patch version release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants