snek5000.util#
Miscellaneous utilities#
Functions
|
Creates a parameter instance and generate formatted docs for it. |
|
Instantiate an isolated |
|
Returns timestamp in modified isoformat from a datetime object (- instead of :). |
|
Find the last modified file in a directory tree. |
|
Modification date of a file or directory. |
|
The current timestamp. |
|
Recursively yield DirEntry objects for given directory. |
|
Contents of a tar file. |
|
Modification date of a file or directory as a timestamp. |
|
Contents of a zip file. |
- snek5000.util.get_status(path_dir, session_id=None, verbose=False)[source]#
Get status of a simulation run by verifying its contents. It checks if:
snakemake was ever executed
directory is locked by snakemake (either due to a running simulation or a terminated one)
necessary files for starting a simulation exist
restart files exist