Skip to content

Conversation

VisLab
Copy link
Member

@VisLab VisLab commented Sep 18, 2020

This request makes some editorial improvements in HED.md such as adding subsections. It also adds the specification of how to document in machine-actionable form the meaning of columns in *_events.tsv files containing values rather than categorical values. There will be an accompanying pull request for the bids-validator incorporating the implementation of this feature.

happy5214 added a commit to happy5214/bids-validator that referenced this pull request Sep 23, 2020
This implements HED strings that take values from TSV data as
described in bids-standard/bids-specification#619.
A new issue is added to account for cases where too many or too few
number signs are provided in a string. Tests have been added.
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.

Thanks @VisLab and @happy5214

I left a few comments --> most of them related to formatting of the sentences. Remember that we try to start a new line for each new sentence, and wherever else it makes sense semantically, so that in the future the git diff will be more readable.

VisLab and others added 2 commits September 28, 2020 09:45
Corrected can/should typo and tried to break lines at sentences.
@sappelhoff sappelhoff added this to the 1.4.1 milestone Oct 5, 2020
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.

Thanks for addressing the fist round of reviews @VisLab

regarding the "spaces" instead of "tabs" in the TSV examples, I am okay with them being spaces. We don't have a policy for that right now, and if we want one, we should discuss it in a separate, dedicated issue.

I left one more comment on what was unclear to me, it'd be nice if you could address that.

Finally, I think we can still include this PR in the 1.4.1 release that's upcoming, so I added a milestone to the PR.

Co-authored-by: Stefan Appelhoff <[email protected]>
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.

LGTM. I suggest a squash and merge when it's time.

@sappelhoff sappelhoff changed the title Hed update for documenting value columns in _events.tsv [FIX] improve HED documentation Oct 7, 2020
@sappelhoff sappelhoff merged commit 0311772 into bids-standard:master Oct 7, 2020
@sappelhoff
Copy link
Member

Thanks @VisLab

@yarikoptic
Copy link
Collaborator

regarding the "spaces" instead of "tabs" in the TSV examples, I am okay with them being spaces. We don't have a policy for that right now, and if we want one, we should discuss it in a separate, dedicated issue.

sorry for coming late to the game: by the definition of TSV (tab-separated values) TAB must be used as a separator, or it is not a TSV, and tools reading TSV file might not read it correctly if spaces are used. There is IMHO no need to re-iterate that it must be TAB, like there is no need to provide a full description of JSON syntax while talking about JSON files.

@sappelhoff
Copy link
Member

sappelhoff commented Oct 8, 2020

We were talking only about how to format examples in the flow text of the spec. Markdown Codeblocks either containing spaces to look nice or tabs to be accurately reflecting tsv

@VisLab
Copy link
Member Author

VisLab commented Oct 8, 2020 via email

@yarikoptic
Copy link
Collaborator

Thank you for the explanation! Indeed a larger issue. Filed: #644 (hopefully someone would get interested to harvest the kudos for the "large git blame" with such a contribution ;) ) and submitted #643 as a temporary measure ;)

rob-luke pushed a commit to rob-luke/bids-validator that referenced this pull request Jan 31, 2022
This implements HED strings that take values from TSV data as
described in bids-standard/bids-specification#619.
A new issue is added to account for cases where too many or too few
number signs are provided in a string. Tests have been added.
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.

5 participants