jade.jobs.analysis_execution_base.AnalysisExecutionBase¶
- class jade.jobs.analysis_execution_base.AnalysisExecutionBase(output_dir, simulations_dir)[source]¶
Bases:
JobExecutionInterface
Base class for analysis jobs. This job type is intended to run on the output results of another job.
Methods
collect_results
(output_dir)Collect result data from output directory.
create
(job_inputs, job, output)Creates an instance of a JobExecutionInterface.
generate_command
(job, output, config_file[, ...])Generate a command for a job to be run in a subprocess.
get_analysis_dir
(output_dir)Get the analysis directory to use.
Return a list of result filenames created by the simulation.
post_process
(**kwargs)Run post-process operations on data.
run
()Runs the simulation.
Attributes
Return the results directory created by the simulation.
- static get_analysis_dir(output_dir)[source]¶
Get the analysis directory to use.
- Parameters:
output_dir (str)
- Return type:
str
- property results_directory¶
Return the results directory created by the simulation.
- static collect_results(output_dir)¶
Collect result data from output directory.
- Parameters:
output_dir (str)
- Return type:
list of dict
- abstract classmethod create(job_inputs, job, output)¶
Creates an instance of a JobExecutionInterface.
- abstract static generate_command(job, output, config_file, verbose=False)¶
Generate a command for a job to be run in a subprocess.
- Parameters:
job (class.parameters_type)
output (str) – output directory
config_file (str) – job configuration file
- Returns:
command that can be executed in the OS
- Return type:
str
- abstract run()¶
Runs the simulation.