InjectedClassSelector#

class lsst.analysis.tools.actions.vector.InjectedClassSelector(*args, **kw)#

Bases: InjectedObjectSelector

A selector for injected objects of a given class.

Attributes Summary

key_class

Key for the field indicating the class of the object (str, default 'ref_source_type')

key_injection_flag

Key for the field indicating that the object was not injected (per band) (str, default 'ref_{band}_injection_flag')

name_class

Name of the class of objects (str)

plotLabelKey

Key to use when populating plot info, ignored if empty string (str, default '')

value_compare

Value of the type_key field for objects that are stars (str, default 'DeltaFunction')

value_is_equal

Whether the value must equal value_compare to be of this class (bool, default True)

vectorKey

Key to select from data (str, default 'ref_injected_isPrimary')

Methods Summary

__call__(data, **kwargs)

Call self as a function.

getInputSchema()

Return the schema an AnalysisAction expects to be present in the arguments supplied to the __call__ method.

Attributes Documentation

key_class#

Key for the field indicating the class of the object (str, default 'ref_source_type')

key_injection_flag#

Key for the field indicating that the object was not injected (per band) (str, default 'ref_{band}_injection_flag')

name_class#

Name of the class of objects (str)

plotLabelKey#

Key to use when populating plot info, ignored if empty string (str, default '')

value_compare#

Value of the type_key field for objects that are stars (str, default 'DeltaFunction')

value_is_equal#

Whether the value must equal value_compare to be of this class (bool, default True)

vectorKey#

Key to select from data (str, default 'ref_injected_isPrimary')

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[ndarray[tuple[Any, ...], dtype[_ScalarT]]] | type[Scalar] | type[HealSparseMap] | type[Tensor] | type[Mapping]]]#

Return the schema an AnalysisAction expects to be present in the arguments supplied to the __call__ method.

Returns#

resultKeyedDataSchema

The schema this action requires to be present when calling this action, keys are unformatted.