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')

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_injection_flag')

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')

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_injection_flag')

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:
resultKeyedDataSchema

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