NormalizedOutputFilter

class ase2sprkkr.common.output_printing.NormalizedOutputFilter(all_output=False, info=False, regex=None, listeners=())[source]

Resolved output modes, independent of how the user specified them.

A single regex is kept as a compiled Pattern, several regexes as a tuple of compiled Patterns. ‘info’ is always a separate control flag.

Class hierarchy

Inheritance diagram of ase2sprkkr.common.output_printing.NormalizedOutputFilter


Constructor

Parameters:
__init__(all_output=False, info=False, regex=None, listeners=())
Parameters:
Return type:

None

all_output: bool = False
info: bool = False
regex: re.Pattern | tuple[re.Pattern, ...] | None = None
listeners: tuple[ase2sprkkr.common.output_printing.OutputListener, ...] = ()
property regexes: tuple[re.Pattern, ...]
property matcher

Return a reusable predicate, using search rather than match.

property mode: str

Mode for a simple GUI; custom listeners have no GUI equivalent.

property regex_text: str