CRegExp

class ctapipe.core.traits.CRegExp(default_value=traitlets.Undefined, allow_none=False, read_only=None, help=None, config=None, **kwargs)

Bases: traitlets.TraitType

A casting compiled regular expression trait.

Accepts both strings and compiled regular expressions. The resulting attribute will be a compiled regular expression.

Attributes Summary

info_text

Methods Summary

validate(obj, value)

Attributes Documentation

info_text = 'a regular expression'

Methods Documentation

validate(obj, value)[source]