InjectedClassSelector¶
- class lsst.analysis.tools.actions.vector.InjectedClassSelector(*args, **kw)¶
Bases:
InjectedObjectSelector
A selector for injected objects of a given class.
Attributes Summary
Key for the field indicating the class of the object (
str
, default'ref_source_type'
)Name of the class of objects (
str
)Key to use when populating plot info, ignored if empty string (
str
, default''
)Value of the type_key field for objects that are stars (
str
, default'DeltaFunction'
)Whether the value must equal value_compare to be of this class (
bool
, defaultTrue
)Key to select from data (
str
, default'ref_injection_flag'
)Methods Summary
__call__
(data, **kwargs)Call self as a function.
Return the schema an
AnalysisAction
expects to be present in the arguments supplied to the __call__ method.Attributes Documentation
- value_compare¶
Value of the type_key field for objects that are stars (
str
, default'DeltaFunction'
)
Methods Documentation
- __call__(data: MutableMapping[str, ndarray[Any, dtype[_ScalarType_co]] | Scalar | HealSparseMap | Tensor | Mapping], **kwargs) ndarray[Any, dtype[_ScalarType_co]] ¶
Call self as a function.
- getInputSchema() Mapping]]] ¶
Return the schema an
AnalysisAction
expects to be present in the arguments supplied to the __call__ method.- Returns:
- result
KeyedDataSchema
The schema this action requires to be present when calling this action, keys are unformatted.
- result