-
Notifications
You must be signed in to change notification settings - Fork 95
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] Add mask argument to t2smap, tedana #108
Conversation
Codecov Report
@@ Coverage Diff @@
## master #108 +/- ##
==========================================
+ Coverage 45.36% 45.44% +0.07%
==========================================
Files 28 28
Lines 1587 1602 +15
==========================================
+ Hits 720 728 +8
- Misses 867 874 +7
Continue to review full report at Codecov.
|
tedana/utils/utils.py
Outdated
@@ -169,6 +169,9 @@ def make_adaptive_mask(data, minimum=True, getsum=False): | |||
data : (S x E x T) array_like | |||
Multi-echo data array, where `S` is samples, `E` is echos, and `T` is | |||
time | |||
mask : :obj:`str`, optional | |||
Binary mask for voxels to consider in TE Dependent ANAlysis. Default is | |||
to generate mask from data with good signal across echoes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be a string (filename), a numpy array, or an image, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now I'm only accepting a file name, since it's user-specified. Can you explain how it could be an image or numpy array ?
else: | ||
# if the user has supplied a binary mask | ||
mask = load_image(mask).astype(bool) | ||
masksum = masksum * mask |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be shape/affine checks or would the ValueError
numpy will raise when dimensions are incompatible be sufficient?
OK, merging ! 🎉 |
Closes #96.
Changes proposed in this pull request:
tedana
andt2smap
workflows