jade.jobs.job_post_process.JobPostProcess

class jade.jobs.job_post_process.JobPostProcess(module_name, class_name, data=None, output='output', job_name=None, *args, **kwargs)[source]

Bases: object

Class used to dynamically run post process scripts

Constructs JobPostProcess

Parameters:
  • module_name (str) – module which contains class that needs to run

  • class_name (str) – class implementing post process to run

  • data (dict) – optional dictionary of overrides data to send to post process

Methods

dump_config([output_file])

Outputs post process data to results file

load_config_from_file(config_file)

Loads config from given toml file

run(*args, **kwargs)

Runs post-process class' run function

serialize()

Create data for serialization.

show_results(output_dir[, job_name, input_file])

Show the post process results for jobs in a table.

run(*args, **kwargs)[source]

Runs post-process class’ run function

serialize()[source]

Create data for serialization.

dump_config(output_file='post-process-config.toml')[source]

Outputs post process data to results file

Parameters:

output_file (str)

classmethod load_config_from_file(config_file)[source]

Loads config from given toml file

Parameters:

config_file (str)

Returns:

  • module_name (str) – module which contains class that needs to run

  • class_name (str) – class implementing post process to run

  • data (dict) – optional dictionary of additional data to send to post process

classmethod show_results(output_dir, job_name=None, input_file=None)[source]
Show the post process results for jobs in a table.

Expects that JOBS_OUTPUT_DIR contains folders named after jobs containing results.

Parameters:
  • job_name (str) – optional individual job to display

  • input_file (str) – optional input file name