InequalitySubsetState

class glue.core.subset.InequalitySubsetState(left, right, operator)[source]

Bases: glue.core.subset.SubsetState

A subset defined by a mathematical comparison of a attribute values to a reference value or attribute values.

Parameters
leftfloat or ~glue.core.component_id.ComponentID or str

The value or component on the left hand side of the comparison.

rightfloat or ~glue.core.component_id.ComponentID or str

The value or component on the right hand side of the comparison.

operatoroperator

The comparison operator (from the operator module)

Attributes Summary

left

The value or component on the left hand side of the comparison.

operator

The comparison operator (from the operator module)

right

The value or component on the right hand side of the comparison.

Methods Summary

copy(self)

Return a copy of the subset state.

to_mask(self, data[, view])

Compute the mask for this subset state.

Attributes Documentation

left[source]

The value or component on the left hand side of the comparison.

operator[source]

The comparison operator (from the operator module)

right[source]

The value or component on the right hand side of the comparison.

Methods Documentation

copy(self)[source]

Return a copy of the subset state.

to_mask(self, data, view=None)[source]

Compute the mask for this subset state.

Parameters
dataData

The dataset to compute the mask for.

view

Any object that returns a valid view for a Numpy array.