Move masking/unmasking functions into new masking module #250
Labels
discussion
issues that still need to be discussed
refactoring
issues proposing/requesting changes to the code which do not impact behavior
Milestone
Summary
We have a handful of masking/unmasking functions that I think should be moved out of
utils
and into their own module. While I would ultimately prefer to operate mostly on img-like objects (to make it easier for users to call each function in the package without knowing all of the details behind our data loading, masking, unmasking, and data saving procedures), we should move relevant functions out ofutils
(and potentiallyio
) to reduce bloat in the meantime.Additional Detail
The functions
utils.load_image
,utils.make_adaptive_mask
,utils.unmask
,decomposition._utils.eimask
, and potentiallyio.new_nii_like
are all related to masking and/or converting between imgs and arrays. I think that these would be best organized in amasking
module.Next Steps
masking.py
).The text was updated successfully, but these errors were encountered: