viperleed.calc.files.parameters.reader

Module reader of viperleed.calc.files.parameters.

This module is based on the original version of readPARAMETERS from @fkraushofer (2020). This module exists only to avoid cyclic imports between .read and .write, as both need access to one of the classes defined here (ParametersReader, RawLineParametersReader), as well as some functionality from the other module.

Defines context-manager, iterator classes for reading parameters from a PARAMETERS file.

Classes

ParametersReader(filename[, noisy])

A context manager that iterates the contents of a PARAMETERS file.

RawLineParametersReader(filename[, noisy])

A ParametersReader that also returns lines exactly as they were read.