Path#

class ctapipe.core.traits.Path(default_value=None, allow_none=True, exists=None, directory_ok=True, file_ok=True, **kwargs)[source]#

Bases: TraitType

A path Trait for input/output files.

Attributes:
exists: boolean or None

If True, path must exist, if False path must not exist

directory_ok: boolean

If False, path must not be a directory

file_ok: boolean

If False, path must not be a file

Attributes Summary

info_text

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Methods Summary

validate(obj, value)

Validate trait value.

Attributes Documentation

info_text: str#

Methods Documentation

validate(obj, value)[source]#

Validate trait value.