Enum

class ctapipe.core.traits.Enum(values, default_value=traitlets.Undefined, **kwargs)

Bases: traitlets.TraitType

An enum whose value must be in a given sequence.

Methods Summary

argcompleter(**kwargs)

Completion hints for argcomplete

from_string(s)

Get a value from a config string

info()

info_rst()

subclass_init(cls)

validate(obj, value)

Methods Documentation

argcompleter(**kwargs)[source]

Completion hints for argcomplete

from_string(s)[source]

Get a value from a config string

such as an environment variable or CLI arguments.

Traits can override this method to define their own parsing of config strings.

See also

item_from_string

New in version 5.0.

info()[source]
info_rst()[source]
subclass_init(cls)[source]
validate(obj, value)[source]