class ctapipe.core.traits.Long(default_value: Any = traitlets.Undefined, allow_none: bool = False, read_only: bool | None = None, help: str | None = None, config: Any | None = None, **kwargs: Any)#

Bases: TraitType[G, S]

An int trait.

Attributes Summary

Methods Summary


Get a value from a config string


validate(obj, value)

Attributes Documentation

default_value: t.Any = 0#
info_text: str = 'an int'#

Methods Documentation

from_string(s: str) G#

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


Added in version 5.0.

subclass_init(cls: type[Any]) None#
validate(obj: Any, value: Any) G#