Returns the basename of the value for the file arguments
parser (argparse.ArgumentParser) – The argparse parser
args (dict) – The dictionary of the arguments to inspect
prefix (str) – The path prefix to apply to the basename
args – The dictionary of the arguments with the basename value (for files)
Returns the job id stored in the config file
The decorator that handles the try/except by redirecting the sys.stderr and sys.stdout to a log file. Two boolean arguments can trigger the usage of the log file: arg1 refers to standalone mode; arg2 refers to debug mode. For writing to the log file the arg1 needs to be False or the arg2 needs to be True.
Writes the sentinel for the complete job.
outdir (str) – The location where to write the sentinel file
Writes the sentinel for the error job.
outdir (str) – The location where to write the sentinel file
Writes the sentinel for the complete job.
outdir (str) – The location where to write the sentinel file
Returns a list with the files in the zip file (when a zip). In alternative, a list with the passed file/folder
The path file
inps – A list of the file in zip or the file/folder as unique item list
Writes a log file, in yml format file, reporting all the options used for the current simulations.
parser (argparse.ArgumentParser) – The argparse parser
path (str) – The folder destination where to write the log
varset (Namespace) – The namespace that contains all the options used
debug (bool) – Set as True if you want to write the debug value
Writes a sentinel file. A message can be written in the file
Adds all the tree files of the folder passed into the zip file :param path: The path to add to the zip file :type path: str :param ziph: The zipfile object :type ziph: zipfile.ZipFile