output_printing

Full name: ase2sprkkr.common.output_printing

Module class hierarchy

Inheritance diagram of ase2sprkkr.common.output_printing.NormalizedOutputFilter, ase2sprkkr.common.output_printing.OutputListener, ase2sprkkr.common.output_printing.PrintAll, ase2sprkkr.common.output_printing.PrintMatching


Description

Output printing listeners independent of task-specific parsers.

Functions

_pattern_source(pattern)

Add flags passed to re.compile() that aren't already in its source.

normalize_output_filter(value)

Normalize the public print_output argument without merging regex ASTs.

output_filter_from_gui(mode, regex_text)

Convert the simple GUI's mode and regex syntax to a config value.

output_listeners(value)

Return (tuple of OutputListener instances, print_info: bool).

parse_output_regexes(text)

Read serialized GUI regexes, or compile a single unquoted regex.

serialize_output_regexes(patterns)

Encode regexes for one text field, distinguishing one from many.

Classes

NormalizedOutputFilter([all_output, info, ...])

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

OutputListener()

Callable receiving (text, stream kind) from a running calculation.

PrintAll()

Print all received output chunks.

PrintMatching(patterns)

Print complete lines matching one of the provided regexes.