pulsesuite.PSTD3D.rundir¶
Timestamped run-directory management.
Creates a runs/<YYYY-MM-DD_HH-MM-SS_testname>/ directory for every
simulation run and os.chdir into it so that all relative output paths
(dataQW/, fields/, output/) land inside that directory.
A runs/latest symlink always points to the most recent run.
Input files (params/, DC.txt) are copied into the run directory
so the simulation can find them and so there is a permanent record
of which parameters produced each data set.
Functions¶
|
Create a timestamped run directory and chdir into it. |
Module Contents¶
- pulsesuite.PSTD3D.rundir.setup_run_directory(input_files=None, test_name=None)¶
Create a timestamped run directory and chdir into it.
- Parameters:
input_files (list of str, optional) – Relative paths (files or directories) to copy into the run directory. Defaults to
["params", "DC.txt"].test_name (str, optional) – Short label appended to the timestamp so runs are easy to distinguish, e.g.
"sbetestprop"givesruns/2026-02-24_09-30-00_sbetestprop/.
- Returns:
Absolute path of the new run directory.
- Return type: