Tuple

class ctapipe.core.traits.Tuple(*traits, **kwargs)

Bases: traitlets.traitlets.Container

An instance of a Python tuple.

Methods Summary

class_init(cls, name)

Part of the initialization which may depend on the underlying HasDescriptors class.

instance_init(obj)

Part of the initialization which may depend on the underlying HasDescriptors instance.

item_from_string(s, index)

Cast a single item from a string

validate_elements(obj, value)

Methods Documentation

class_init(cls, name)[source]

Part of the initialization which may depend on the underlying HasDescriptors class.

It is typically overloaded for specific types.

This method is called by MetaHasDescriptors.__init__() passing the class (cls) and name under which the descriptor has been assigned.

instance_init(obj)[source]

Part of the initialization which may depend on the underlying HasDescriptors instance.

It is typically overloaded for specific types.

This method is called by HasTraits.__new__() and in the BaseDescriptor.instance_init() method of descriptors holding other descriptors.

item_from_string(s, index)[source]

Cast a single item from a string

Evaluated when parsing CLI configuration from a string

validate_elements(obj, value)[source]