Skip to content

[ENH] Allow import from zip files, and allow export with newer versions of dcm2bids#374

Merged
DESm1th merged 49 commits intoTIGRLab:mainfrom
DESm1th:bids
Aug 19, 2025
Merged

[ENH] Allow import from zip files, and allow export with newer versions of dcm2bids#374
DESm1th merged 49 commits intoTIGRLab:mainfrom
DESm1th:bids

Conversation

@DESm1th
Copy link
Contributor

@DESm1th DESm1th commented Aug 19, 2025

This PR makes the following changes:

  • dm_xnat_extract.py: Adds the '--use-zips' option and the ability to extract directly from zip files. Also allows arbitrary dcm2bids arguments to be passed to the tool, and removes the BidsOptions class (moved to the exporters modules)
  • datman.exporters: Removed exporters.py and replaced with a folder of exporter modules. The version of BidsExporter (and its BidsOption class) can now be changed depending on user environment. NiiLinkExporter has also been updated to be usable without reliance on a specific version of dcm2bid

DESm1th and others added 30 commits February 28, 2025 14:41
SessionImporter and SeriesImporter both used dcm_dir but for
different functions (and with SeriesImporter sometimes being None).

Renamed SessionImporter variable to better reflect differences.
Error files needed the session number to be match-able to the
right scan session + bids inventory needs to include error files
to ensure blacklisting removal etc. can correctly handle them.
At somepoint in the past I changed the import to scanid but
didnt fully update all references so I just switched it back
to avoid name reference errors
DESm1th and others added 19 commits April 25, 2025 22:21
To prep for multiple versions of dcm2bids I've divided up
the exporters and the bids classes will now be imported based on
user environment.
- BidsOptions class is now specific to each bids exporter module
- dm_xnat_extract will more flexibly handle options for dcm2bids
	and other future wrapped tools.
@DESm1th DESm1th requested a review from a team as a code owner August 19, 2025 01:09
@DESm1th DESm1th requested review from kimjetwav and slimnsour August 19, 2025 01:09
@DESm1th DESm1th merged commit 97ce68a into TIGRLab:main Aug 19, 2025
0 of 5 checks passed
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