Method summary
- __enter__(self)
- __exit__(self, exc_type, exc_val, exc_tb)
- __init__(self, context, condition, value_dict)
- get_indices(self, condition, context = None)
Methods
- __enter__(self)
Method to be overwritten for a mask class.
This is the block that is after the try statement, in the try-finally block obtained equivalent to the with statement.
- __exit__(self, exc_type, exc_val, exc_tb)
Method to be overwritten for a mask class
This is the block that is after the finally statement, in the try-finally block obtained equivalent to the with statement.
- __init__(self, context, condition, value_dict)
Condition should be a string saying 'index < <value>'
- get_indices(self, condition, context = None)
This method will return the right set of indices in order to obtain the expected behavior of the mask.