reV.utilities.cli_functions.add_to_run_attrs

add_to_run_attrs(run_attrs=None, config_file=None, module=ModuleName.GENERATION)[source]

Add config and project directory to run attrs

Parameters:
  • run_attrs (dict, optional) – Existing run_attrs (if any). By default, None.

  • config_file (str, optional) – Path to config file used for this module’s run (if applicable). This is used to store the run config in the output attrs. By default, None.

  • module (ModuleName, optional) – Module that this run represents. By default, ModuleName.GENERATION.

Returns:

dict – Run attributes that can be written to the file’s attrs.