Skip to content

ENH: Enable XnatType key in ExportInfo#345

Merged
DESm1th merged 1 commit intoTIGRLab:mainfrom
jerdra:enh/enable-xnat-tag-option
Dec 13, 2022
Merged

ENH: Enable XnatType key in ExportInfo#345
DESm1th merged 1 commit intoTIGRLab:mainfrom
jerdra:enh/enable-xnat-tag-option

Conversation

@jerdra
Copy link
Copy Markdown
Contributor

@jerdra jerdra commented Dec 12, 2022

This enables users to use the XnatType key in lieu of SeriesDescription within a study's ExportInfo. The result is that tag identification will happen using XNAT's Type data field.

The justification behind using this feature is that XNAT's Type data-field is editable whereas SeriesDescription is not. As a result XNAT Project owners/maintainers can override the SeriesDescription if the original SeriesDescription doesn't properly allow us to identify an appropriate Tag.

Also this is a my bad moment but I habitually run yapf when saving code and it formatted a bunch of irrelevant lines.... For the actual changes made look at:

  1. The chunk at L1565 in xnat.py
  2. The chunk at L187 in tests/test_xnat.py

Copy link
Copy Markdown
Contributor

@slimnsour slimnsour left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for implementing this!

Copy link
Copy Markdown
Contributor

@DESm1th DESm1th 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 doing this Jer! :)

@DESm1th DESm1th merged commit 15f193a into TIGRLab:main Dec 13, 2022
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.

3 participants