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 configurable TelescopeParameter fields that must be configured on construction.

Methods Summary

from_name(name, subarray[, config, parent])

Obtain an instance of a subclass via its name

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
Returns
instace

Instance of subclass to this class