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

[ENH] Specify echo and run indices are nonnegative integers in schema #578

Merged
merged 3 commits into from
Aug 24, 2020

Conversation

tsalo
Copy link
Member

@tsalo tsalo commented Aug 24, 2020

This incorporates the changes in #535 to the definitions for the echo and run entities to the schema. I should have commented directly on #535 about this, but I didn't think of it until this morning.

Copy link
Member

@sappelhoff sappelhoff left a comment

Choose a reason for hiding this comment

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

good catch @tsalo

src/schema/entities.yaml Outdated Show resolved Hide resolved
Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
@effigies effigies changed the title [FIX] Propagate changes from 535 to schema [ENH] Specify echo and run indices are nonnegative integers in schema Aug 24, 2020
src/schema/entities.yaml Outdated Show resolved Hide resolved
Copy link
Collaborator

@nicholst nicholst left a comment

Choose a reason for hiding this comment

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

Good catch... does illustrate the attentiveness needed to keep the schema up to date.

Aside from the anal comment about typesetting keywords, this looks good to go.

@tsalo
Copy link
Member Author

tsalo commented Aug 24, 2020

Good catch... does illustrate the attentiveness needed to keep the schema up to date.

Very true, but once we are able to render the specification text from the schema (e.g., #568), then we'll be back to having to only update definitions in one location. Until then, I'll try to pay closer attention to any PRs that impact entities.

@effigies
Copy link
Collaborator

effigies commented Aug 24, 2020

We could add a quick test that just greps through the entire source for these description texts.

@tsalo
Copy link
Member Author

tsalo commented Aug 24, 2020

@effigies I'll open a new issue for that and merge this. Thanks all!

@tsalo tsalo merged commit 4bceb18 into bids-standard:master Aug 24, 2020
@tsalo tsalo deleted the fix/propagate-535 branch August 24, 2020 17:09
@sappelhoff
Copy link
Member

sappelhoff commented Sep 1, 2020

@nicholst I just realized that we probably missed a definition in the "common principles" section.

See: https://bids-specification.readthedocs.io/en/latest/02-common-principles.html#definitions

under point 9:

<index> - a numeric value, possibly prefixed with arbitrary number of 0s for consistent indentation, e.g., it is 01 in run-01 following run- specification.

should this become a nonnegative numeric value ? cc @tsalo @effigies

@nicholst
Copy link
Collaborator

nicholst commented Sep 1, 2020

Yes @sappelhoff ! Better yet, specify that it's an integer: <index> - a nonnegative integer ... right? We don't want decimals, right?

@sappelhoff
Copy link
Member

Better yet, specify that it's an integer: - a nonnegative integer ... right? We don't want decimals, right?

agreed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants