WrightTools.kit.mask_reduce

WrightTools.kit.mask_reduce(mask)[source]

Reduce a boolean mask, removing all false slices in any dimension.

Parameters:mask (ndarray with bool dtype) – The mask which is to be reduced
Returns:
Return type:A boolean mask with no all False slices.