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: Additional support for age parsing #376

Merged
merged 6 commits into from
Aug 26, 2024
Merged

Conversation

mgxd
Copy link
Collaborator

@mgxd mgxd commented Aug 8, 2024

  • Adds support for weeks and years age units while parsing, and converts to months, which is used internally.
  • Alters the age parsing heuristic to prefer parsing subject[/session]/scans.tsv, which is likely to have the most accurate information.
    • If found, the age on the first row (scan) will be used.

Also includes a change to avoid using age values without an accompanying sidecar JSON explicitly listing the units.

Rather than default to 'months', any `age` values found without an accompanying
JSON describing the `age.Units` will be treated as missing data.
@mgxd mgxd merged commit e7c83cf into nipreps:master Aug 26, 2024
9 checks passed
@mgxd mgxd deleted the enh/age-weeks branch August 26, 2024 23:09
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.

1 participant