InjectedClassSelector¶
- class lsst.analysis.tools.actions.vector.InjectedClassSelector(*args, **kw)¶
Bases:
InjectedObjectSelectorA 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')Key for the field indicating that the object was not injected (per band) (
str, default'ref_{band}_injection_flag')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_injected_isPrimary')Methods Summary
__call__(data, **kwargs)Call self as a function.
Return the schema an
AnalysisActionexpects to be present in the arguments supplied to the __call__ method.Attributes Documentation
- key_injection_flag¶
Key for the field indicating that the object was not injected (per band) (
str, default'ref_{band}_injection_flag')
- value_compare¶
Value of the type_key field for objects that are stars (
str, default'DeltaFunction')
Methods Documentation
- __call__(data: MutableMapping[str, ndarray[tuple[Any, ...], dtype[_ScalarT]] | Scalar | HealSparseMap | Tensor | Mapping], **kwargs) ndarray[tuple[Any, ...], dtype[_ScalarT]]¶
Call self as a function.
- getInputSchema() Iterable[tuple[str, type[numpy.ndarray[tuple[Any, ...], numpy.dtype[_ScalarT]]] | type[lsst.analysis.tools.interfaces._interfaces.Scalar] | type[healsparse.healSparseMap.HealSparseMap] | type[lsst.analysis.tools.interfaces._interfaces.Tensor] | type[Mapping]]]¶
Return the schema an
AnalysisActionexpects 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