Skip to content

Wrapped dcm2bids import in exception message for better messaging#319

Merged
DESm1th merged 2 commits intomasterfrom
fix/dcm2bids-import
Nov 30, 2021
Merged

Wrapped dcm2bids import in exception message for better messaging#319
DESm1th merged 2 commits intomasterfrom
fix/dcm2bids-import

Conversation

@slimnsour
Copy link
Copy Markdown
Contributor

Quick fix for wrapping dcm2bids import in an exception in case the user does not want to import it for using regular dm_xnat_extract, or is not able to find it while using the --use-dcm2bids flag.

In the future I will look into adding a more graceful approach such as the current dashboard imports but this is just a quick fix for now.

@slimnsour slimnsour requested review from DESm1th and jerdra November 30, 2021 19:48
@auto-assign auto-assign bot requested review from benselby and josephmje November 30, 2021 19:48
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 30, 2021

Codecov Report

Merging #319 (4cc04c8) into master (e3d8ada) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #319      +/-   ##
==========================================
- Coverage   30.93%   30.90%   -0.03%     
==========================================
  Files          62       62              
  Lines        9259     9267       +8     
==========================================
  Hits         2864     2864              
- Misses       6395     6403       +8     
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 e3d8ada...4cc04c8. Read the comment docs.

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.

Just a minor update to the error message suggesting how to amend the error. Thanks for the quick fix Salim!

Comment thread bin/dm_xnat_extract.py Outdated
Co-authored-by: Jerry Jeyachandra <jerrold.jeyachandra@gmail.com>
@DESm1th
Copy link
Copy Markdown
Contributor

DESm1th commented Nov 30, 2021

Thanks Salim!

@DESm1th DESm1th merged commit 10da72c into master Nov 30, 2021
@DESm1th DESm1th deleted the fix/dcm2bids-import branch November 30, 2021 20:01
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