viperleed.calc.files.parameters.write

Module write of viperleed.calc.files.parameters.

Initial version by @fkraushofer in 2020, major rewrite by @amimre and @michele-riva in June 2023. This module used to be part of parameters.py. Refactored in October 2023.

Functions for writing and editing a PARAMETERS file.

Functions

comment_out(rpars, modpar[, comment])

Comment out modpar in the PARAMETERS file.

modify(rpars, modpar[, new, comment])

Change the value for modpar in the PARAMETERS file.

Classes

ModifiedParameterValue(param, rpars_or_value)

A container for a single modified PARAMETER.

ParametersFileEditor(rpars[, path])

A context manager for editing a PARAMETERS file.