hpcflow.app.make_workflow#
- hpcflow.app.make_workflow(template_file_or_str, is_string=False, template_format=None, path=None, name=None, overwrite=False, store='zarr', ts_fmt=None, ts_name_fmt=None, store_kwargs=None, variables=None, status=True)#
Generate a new hpcFlow workflow from a file or string containing a workflow template parametrisation.
- Parameters:
template_path_or_str – Either a path to a template file in YAML or JSON format, or a YAML/JSON string.
is_string (bool | None) – Determines if passing a file path or a string.
template_format (str | None) – If specified, one of “json” or “yaml”. This forces parsing from a particular format.
path (PathLike | None) – The directory in which the workflow will be generated. The current directory if not specified.
name (str | None) – The name of the workflow. If specified, the workflow directory will be path joined with name. If not specified the workflow template name will be used, in combination with a date-timestamp.
overwrite (bool | None) – If True and the workflow directory (path + name) already exists, the existing directory will be overwritten.
store (str | None) – The persistent store type to use.
ts_fmt (str | None) – The datetime format to use for storing datetimes. Datetimes are always stored in UTC (because Numpy does not store time zone info), so this should not include a time zone name.
ts_name_fmt (str | None) – The datetime format to use when generating the workflow name, where it includes a timestamp.
store_kwargs (Dict | None) – Keyword arguments to pass to the store’s write_empty_workflow method.
variables (Dict[str, str] | None) – String variables to substitute in template_file_or_str.
status (bool | None) – If True, display a live status to track workflow creation progress.
template_file_or_str (PathLike | str) –
- Return type: