Long

class ctapipe.core.traits.Long(default_value=traitlets.Undefined, allow_none=False, **kwargs)

Bases: traitlets.TraitType

An int trait.

Attributes Summary

default_value

info_text

Methods Summary

from_string(s)

Get a value from a config string

subclass_init(cls)

validate(obj, value)

Attributes Documentation

default_value: Optional[Any] = 0
info_text = 'an int'

Methods Documentation

from_string(s)

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.

subclass_init(cls)
validate(obj, value)