viperleed.calc.sections.cleanup

Module cleanup of viperleed.calc.sections.

Defines clean-up functions, to be used between sections or before/after execution.

Functions

cleanup(rpars_or_manifest)

Finalize a viperleed.calc execution.

get_rpars_from_manifest(rpars_or_manifest)

Return an Rparams object, potentially from a ManifestFile.

move_oldruns(rpars[, prerun])

Copy relevant files to a new 'workhistory' subfolder.

organize_workdir(rpars, path[, ...])

Reorganize files in path into SUPP, OUT, Tensors and Deltas.

prerun_clean(rpars[, logname])

Clean up the current directory before viperleed.calc starts.

preserve_original_inputs(rpars)

Create the original_inputs directory and copy input files there.