data_operations.update_masks#
Back to Module page
Summary#
Convenience function to update a mask in a range, record where we nulled, and avoid some regions if needed
Signature#
def update_masks(ileft, iright, qmask = None, outlier_mask = None, mask_save = None, mask_temp = None)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Index of left edge of region to null |
||
|
Index of right edge of region to null (not inclusive) |
||
|
None |
Global boolean mask to update by nulling, if needed |
|
|
None |
Boolean array to null to record where we ended up nulling this round, if needed |
|
|
None |
Boolean array with zeros at indices that we want to exempt from nulling |
|
|
None |
Boolean array for working memory |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
Modifies input masks in place, returns number of indices updated |
Docstring#
Convenience function to update a mask in a range, record where we nulled,
and avoid some regions if needed
:param ileft: Index of left edge of region to null
:param iright: Index of right edge of region to null (not inclusive)
:param qmask: Global boolean mask to update by nulling, if needed
:param outlier_mask:
Boolean array to null to record where we ended up nulling this round,
if needed
:param mask_save:
Boolean array with zeros at indices that we want to exempt from nulling
:param mask_temp: Boolean array for working memory
:return: Modifies input masks in place, returns number of indices updated