Skip to content

[FIX] Fixed xnat_to_bids ignoring --clobber before pulling data#330

Merged
slimnsour merged 4 commits intoTIGRLab:masterfrom
slimnsour:fix/xnat-to-bids-clobber
Apr 22, 2022
Merged

[FIX] Fixed xnat_to_bids ignoring --clobber before pulling data#330
slimnsour merged 4 commits intoTIGRLab:masterfrom
slimnsour:fix/xnat-to-bids-clobber

Conversation

@slimnsour
Copy link
Copy Markdown
Contributor

Small fix with behavior of xnat_to_bids: Before it would download the zip from xnat before checking if the subject was already converted to bids in the destination folder, which would add unnecessary time to batch runs. Now it will check the destination folder for the subject before attempting to pull their data (unless the --clobber tag is used of course)

I'm also working on a doc page to illustrate how to use xnat_to_bids, but with this fix we can safely put dm_xnat_extract.py $STUDY --use-dcm2bids in nightly scripts as it will skip over converted subjects properly.

@slimnsour slimnsour requested review from DESm1th and josephmje April 20, 2022 15:49
@auto-assign auto-assign bot requested a review from jerdra April 20, 2022 15:49
@pep8speaks
Copy link
Copy Markdown

pep8speaks commented Apr 20, 2022

Hello @slimnsour, Thank you for updating!

Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally, pip install flake8 and then run flake8 datman.

Comment last updated at 2022-04-20 20:58:49 UTC

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 20, 2022

Codecov Report

Merging #330 (b3135ef) into master (81f2a53) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #330      +/-   ##
==========================================
- Coverage   30.79%   30.75%   -0.05%     
==========================================
  Files          63       63              
  Lines        9515     9528      +13     
==========================================
  Hits         2930     2930              
- Misses       6585     6598      +13     
Impacted Files Coverage Δ
bin/dm_xnat_extract.py 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 81f2a53...b3135ef. Read the comment docs.

DESm1th
DESm1th previously approved these changes Apr 20, 2022
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 the quick fix Salim!

Copy link
Copy Markdown
Contributor

@jerdra jerdra left a comment

Choose a reason for hiding this comment

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

good stuff, thanks for PR!

@slimnsour slimnsour merged commit 67bdfab into TIGRLab:master Apr 22, 2022
@slimnsour
Copy link
Copy Markdown
Contributor Author

Thanks guys!

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.

4 participants