RegionsSelector¶
-
class
gwcs.selector.RegionsSelector(inputs, outputs, selector, label_mapper, undefined_transform_value=nan, name=None, **kwargs)[source]¶ Bases:
astropy.modeling.core.ModelThis model defines discontinuous transforms. It maps inputs to their corresponding transforms. It uses an instance of
_LabelMapperas a proxy to map inputs to the correct region.- Parameters
- inputslist of str
Names of the inputs.
- outputslist of str
Names of the outputs.
- selectordict
Mapping of region labels to transforms. Labels can be of type int or str, transforms are of type
Model.- label_mappera subclass of
_LabelMapper A model which maps locations to region labels.
- undefined_transform_valuefloat, np.nan (default)
Value to be returned if there’s no transform defined for the inputs.
- namestr
The name of this transform.
Attributes Summary
The name(s) of the input variable(s) on which a model is evaluated.
The name(s) of the output(s) of the model.
Methods Summary
evaluate(*args)- Parameters
set_input(rid)Sets one of the inputs and returns a transform associated with it.
Attributes Documentation
-
fittable= False¶
-
inputs¶ The name(s) of the input variable(s) on which a model is evaluated.
-
linear= False¶
-
n_inputs¶
-
n_outputs¶
-
outputs¶ The name(s) of the output(s) of the model.
-
selector¶
-
standard_broadcasting= False¶
-
undefined_transform_value¶
Methods Documentation