def __ne__(self, other): """ Not equal to boolean comparison. Returns a new Steps object where the cummulative steps function is != to the filter parameter. Parameters =========== other : int, float, Step, Steps The value or steps object to compare the values of this steps object with. If the filter parameter is a different length to the steps object, the filter parameter will be broadcast across the steps and where the condition is true, the values will be returned. Returns ======== Steps """ return filter_values(self, other, operator.ne)
def invert(self, normalise_value=1): """ Create new steps with a constant weight of 1 everywhere the steps are equal to zero. Parameters ============== normalise_value : int, float, Optional The value the constant weight will be set to where the steps are equal to zero. Returns ============ Steps """ return filter_values(self, 0, operator.eq, normalise_value=normalise_value)