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] Allow UNKNOWN and NONE ContrastBolusIngredients #1547

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

Remi-Gau
Copy link
Collaborator

fixes #1542

  • allows unkwown and none contrast agent

src/schema/objects/metadata.yaml Outdated Show resolved Hide resolved
@effigies effigies changed the title [ENH] add more contrast agents [ENH] Allow UNKNOWN and NONE ContrastBolusIngredients Jul 11, 2023
@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (e05ba93) 87.83% compared to head (a7cb69c) 87.83%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1547   +/-   ##
=======================================
  Coverage   87.83%   87.83%           
=======================================
  Files          16       16           
  Lines        1356     1356           
=======================================
  Hits         1191     1191           
  Misses        165      165           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@effigies
Copy link
Collaborator

@yarikoptic Does HeuDiConv need to know about this change?

@yarikoptic
Copy link
Collaborator

@yarikoptic Does HeuDiConv need to know about this change?

I don't think it is that smart to care ;)

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.

The change looks good to me. We might want to keep an eye out for this issue with similar entity-metadata field combos.

@Remi-Gau
Copy link
Collaborator Author

Task name comes to mind but this is already checked in the validator.
Doubt contrast agent is actually checked.

@effigies
Copy link
Collaborator

From older specs:

The key ContrastBolusIngredient MAY be also be added in the JSON file, with the same label.

It's never been even RECOMMENDED. Reading it, it almost seems like it should be disallowed except when ce- is present, but MRI does not disallow unknown metadata, so that doesn't seem sensible.

I think it would make sense to make it RECOMMENDED if ce- is present, which we can easily do in schema.

@Remi-Gau
Copy link
Collaborator Author

Remi-Gau commented Jul 14, 2023

MRI does not disallow unknown metadata

Is that new?
From memory extra metadata was fine

@tsalo
Copy link
Member

tsalo commented Jul 14, 2023

Oh actually NONE should probably just be n/a, right?

@effigies
Copy link
Collaborator

Oh actually NONE should probably just be n/a, right?

n/a is mainly a TSV convention. For JSON, I believe PET used it for REQUIRED fields that could sometimes be undefined for legitimate reasons, but that seems unnecessary for OPTIONAL/RECOMMENDED fields.

MRI does not disallow unknown metadata

Is that new?
From memory extra metadata was fine

Yes, extra metadata is fine, and not disallowed.

@Remi-Gau
Copy link
Collaborator Author

Is that new?
From memory extra metadata was fine

Yes, extra metadata is fine, and not disallowed.

#ApparentlyRémiCannotRead

@Remi-Gau Remi-Gau merged commit bdc3d55 into bids-standard:master Aug 10, 2023
@Remi-Gau Remi-Gau deleted the contrast branch August 10, 2023 17:59
@CPernet CPernet mentioned this pull request Aug 11, 2023
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.

Unknown Contrast Agent in BIDS
4 participants