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.

item_from_string(s, index)

Cast a single item from a string

subclass_init(cls)

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.

item_from_string(s, index)[source]

Cast a single item from a string

Evaluated when parsing CLI configuration from a string

subclass_init(cls)[source]
validate_elements(obj, value)[source]