exa.core.plotting.figure_helper.generate_figure_filename

exa.core.plotting.figure_helper.generate_figure_filename#

generate_figure_filename(run_definition, prefix=None, suffix=None, *, timestamp=None)#

Generate a canonical filename for a figure from a run.

The return value will not contain any file type extension.

Parameters:
  • run_definition (RunDefinition) – Data related to the run.

  • prefix (str | None) – If specified, will be used as a replacement for experiment name.

  • suffix (str | None) – If specified, will be added as suffix for the filename.

  • timestamp (datetime | None) – Timestamp (normally execution begin) to include in the filename.

Return type:

str