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

[FIX] years and degrees Units and unit to be singular to match the rest #1631

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

yarikoptic
Copy link
Collaborator

What we have

❯ git grep '"Units":'
src/appendices/hed.md:    "Units": "s",
src/appendices/hed.md:       "Units": "ms",
src/appendices/qmri.md:      "Units": "RECOMMENDED",
src/appendices/qmri.md:"Units": "second",
src/common-principles.md:        "Units": "RECOMMENDED",
src/common-principles.md:    "Units": "kg/m^2",
src/modality-agnostic-files.md:        "Units": "years"
src/modality-specific-files/magnetic-resonance-imaging-data.md:   "Units": "rad"
src/modality-specific-files/magnetic-resonance-imaging-data.md:   "Units": "rad/s",
src/modality-specific-files/physiological-and-other-continuous-recordings.md:        "Units": "mV"
src/modality-specific-files/physiological-and-other-continuous-recordings.md:        "Units": "mV"
src/modality-specific-files/positron-emission-tomography.md:  "Units": "Bq/mL",
src/modality-specific-files/positron-emission-tomography.md:        "Units": "s"
src/modality-specific-files/positron-emission-tomography.md:        "Units": "kBq/mL"
src/modality-specific-files/positron-emission-tomography.md:        "Units": "kBq/mL"
src/modality-specific-files/positron-emission-tomography.md:        "Units": "arbitrary"
src/modality-specific-files/positron-emission-tomography.md:        "Units": "arbitrary"
src/modality-specific-files/positron-emission-tomography.md:        "Units": "arbitrary"

which are singular and then in the schema "unit"

❯ git grep -h unit: | sed -e 's,^[- ]*,,g' | sort | uniq -c | sort -n
      1 unit:
      1 unit: cm
      1 unit: degrees
      1 unit: g/mL
      1 unit: hexadecimal
      1 unit: kOhm
      1 unit: mL
      1 unit: mL/s
      1 unit: 'mm^2'
      1 unit: mT.s/m
      1 unit: ppm
      1 unit: rad
      1 unit: um
      1 unit: uT
      1 unit: year
      2 unit: cm/s
      2 unit: ms
      2 unit: mT/m
      3 unit: 1/s
      3 unit: degree
      4 unit: m
      6 unit: mm
     12 unit: Hz
     20 unit: arbitrary
     49 unit: s

also singular.

What we have

	❯ git grep '"Units":'
	src/appendices/hed.md:    "Units": "s",
	src/appendices/hed.md:       "Units": "ms",
	src/appendices/qmri.md:      "Units": "RECOMMENDED",
	src/appendices/qmri.md:"Units": "second",
	src/common-principles.md:        "Units": "RECOMMENDED",
	src/common-principles.md:    "Units": "kg/m^2",
	src/modality-agnostic-files.md:        "Units": "years"
	src/modality-specific-files/magnetic-resonance-imaging-data.md:   "Units": "rad"
	src/modality-specific-files/magnetic-resonance-imaging-data.md:   "Units": "rad/s",
	src/modality-specific-files/physiological-and-other-continuous-recordings.md:        "Units": "mV"
	src/modality-specific-files/physiological-and-other-continuous-recordings.md:        "Units": "mV"
	src/modality-specific-files/positron-emission-tomography.md:  "Units": "Bq/mL",
	src/modality-specific-files/positron-emission-tomography.md:        "Units": "s"
	src/modality-specific-files/positron-emission-tomography.md:        "Units": "kBq/mL"
	src/modality-specific-files/positron-emission-tomography.md:        "Units": "kBq/mL"
	src/modality-specific-files/positron-emission-tomography.md:        "Units": "arbitrary"
	src/modality-specific-files/positron-emission-tomography.md:        "Units": "arbitrary"
	src/modality-specific-files/positron-emission-tomography.md:        "Units": "arbitrary"

which are singular and then in the schema "unit"

    ❯ git grep -h unit: | sed -e 's,^[- ]*,,g' | sort | uniq -c | sort -n
          1 unit:
          1 unit: cm
          1 unit: degrees
          1 unit: g/mL
          1 unit: hexadecimal
          1 unit: kOhm
          1 unit: mL
          1 unit: mL/s
          1 unit: 'mm^2'
          1 unit: mT.s/m
          1 unit: ppm
          1 unit: rad
          1 unit: um
          1 unit: uT
          1 unit: year
          2 unit: cm/s
          2 unit: ms
          2 unit: mT/m
          3 unit: 1/s
          3 unit: degree
          4 unit: m
          6 unit: mm
         12 unit: Hz
         20 unit: arbitrary
         49 unit: s

also singular.
Copy link
Member

@tsalo tsalo left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

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.

makes sense, thanks

@sappelhoff sappelhoff merged commit 189ddca into bids-standard:master Oct 24, 2023
18 checks passed
@sappelhoff sappelhoff changed the title Fix years and degrees Units and unit to be singular to match the rest [FIX] years and degrees Units and unit to be singular to match the rest Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants