TelescopeComponent¶
-
class
ctapipe.core.
TelescopeComponent
(**kwargs: Any)[source]¶ Bases:
ctapipe.core.component.Component
A component that needs a
SubarrayDescription
to be constructed, and which contains configurableTelescopeParameter
fields that must be configured on construction.Attributes Summary
Methods Summary
from_name
(name, subarray[, config, parent])Obtain an instance of a subclass via its name
Attributes Documentation
-
subarray
¶
Methods Documentation
-
classmethod
from_name
(name, subarray, config=None, parent=None, **kwargs)[source]¶ Obtain an instance of a subclass via its name
- Parameters
- namestr
Name of the subclass to obtain
- subarray: ctapipe.instrument.SubarrayDescription
The current subarray for this TelescopeComponent.
- configtraitlets.loader.Config
Configuration specified by config file or cmdline arguments. Used to set traitlet values. This argument is typically only specified when using this method from within a Tool.
- parentctapipe.core.Tool
Tool executable that is calling this component. Passes the correct logger and configuration to the component. This argument is typically only specified when using this method from within a Tool (config need not be passed if parent is used).
- kwargs
Are passed to the subclass
- Returns
- Instance
Instance of subclass to this class
-