ctapipe is not stable yet, so expect large and rapid changes to structure and functionality as we explore various design choices before the 1.0 release.

Path#

class ctapipe.core.traits.Path(default_value=traitlets.Undefined, 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

Methods Summary

info()

validate(obj, value)

Methods Documentation

info()[source]#
validate(obj, value)[source]#