SBART.Masks.Mask_class#
Classes
- class Mask#
Bases:
object
- __init__(initial_mask, mask_type='normal')#
- override_entire_mask(new_mask)#
- get_submask(include)#
Only returns one of the masked reasons
- get_custom_mask(exclude=())#
Retrives a binary mask where the reasons in “exclude” are not acocunted for The masked points are set as True
- Parameters:
exclude (list) – List of objects from Flag type or names of flags. If a given flag (or name) does not exist, a warning is self.logger.infoed and the process continues
- add_to_mask(epoch, new_masked, mask_type)#
Adds the True points from new_masked to the existing mask
- Parameters:
epoch ([type]) – [description]
new_masked ([type]) – [description]
- add_indexes_to_mask(indexes, mask_type)#
- add_indexes_to_mask_order(order, indexes, mask_type)#
- clean_mask(type_to_clean)#
- compute_statistics(detailed=False)#
- property masked_count#
- close_buffers()#