jade.extensions.generic_command.generic_command_execution.GenericCommandExecution¶
- class jade.extensions.generic_command.generic_command_execution.GenericCommandExecution(job, output)[source]¶
Bases:
JobExecutionInterface
A class used for executing a generic_command.
Init generic_command execution class
- Parameters:
job (
GenericCommandParameters
) – The instance ofGenericCommandParameters
output (str,) – The path to the output directory.
Methods
collect_results
(output_dir)Collect result data from output directory.
create
(_, 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.
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.
- property results_directory¶
Return the results directory created by the simulation.
- static generate_command(job, output, config_file, verbose=False)[source]¶
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
- static collect_results(output_dir)¶
Collect result data from output directory.
- Parameters:
output_dir (str)
- Return type:
list of dict