Logical¶
-
class
jwst.transforms.
Logical
(condition, compareto, value, **kwargs)[source]¶ Bases:
astropy.modeling.core.Model
Substitute values in an array where the condition is evaluated to True.
Similar to numpy’s where function.
- Parameters
Attributes Summary
The number of inputs.
The number of outputs.
Methods Summary
__call__
(*inputs[, model_set_axis, …])Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.
evaluate
(x)Evaluate the model on some input variables.
Attributes Documentation
-
conditions
= {'EQ': <ufunc 'equal'>, 'GT': <ufunc 'greater'>, 'LT': <ufunc 'less'>, 'NE': <ufunc 'not_equal'>}¶
-
n_inputs
= 1¶ The number of inputs.
-
n_outputs
= 1¶ The number of outputs.
Methods Documentation
-
__call__
(*inputs, model_set_axis=None, with_bounding_box=False, fill_value=nan, equivalencies=None, inputs_map=None, **new_inputs)¶ Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.