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 of GenericCommandParameters

  • 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.

list_results_files()

Return a list of result filenames created by the simulation.

post_process(**kwargs)

Run post-process operations on data.

run()

Runs the simulation.

Attributes

results_directory

Return the results directory created by the simulation.

property results_directory

Return the results directory created by the simulation.

classmethod create(_, job, output)[source]

Creates an instance of a JobExecutionInterface.

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

list_results_files()[source]

Return a list of result filenames created by the simulation.

post_process(**kwargs)[source]

Run post-process operations on data.

run()[source]

Runs the simulation.

static collect_results(output_dir)

Collect result data from output directory.

Parameters:

output_dir (str)

Return type:

list of dict