StatusFile¶
- class madspace.StatusFile(self: madspace._madspace_py.StatusFile, file_name: str, min_interval_sec: SupportsFloat = 10.0)¶
Bases:
pybind11_objectRate-limited JSON status file, merged from possibly multiple sources.
Lets several parts of a run (or several processes) report progress into the same file without flooding the disk: write merges its argument into the accumulated content and only actually rewrites the file at most every
min_interval_sec, unless forced.- Parameters:
file_name – Path the status is written to.
min_interval_sec – Minimum time between two file rewrites.