hpcflow.app.Action#

class hpcflow.app.Action(environments, commands=None, script=None, script_data_in=None, script_data_out=None, script_exe=None, abortable=False, input_file_generators=None, output_file_parsers=None, input_files=None, output_files=None, rules=None)#

Bases: Action

Methods

expand

from_json_like

generate_data_index

Generate the data index for this action of an element iteration whose overall data index is passed.

get_app_data_script_path

get_command_input_file_labels

Get input files types from commands.

get_command_input_types

Get parameter types from commands.

get_command_output_types

Get parameter types from command stdout and stderr arguments.

get_commands_action_env

get_input_file_generator_action_env

get_input_file_labels

get_input_types

Get the input types that are consumed by commands and input file generators of this action.

get_output_file_labels

get_output_file_parser_action_env

get_output_types

Get the output types that are produced by command standard outputs and errors, and by output file parsers of this action.

get_param_dump_file_path_JSON

get_param_dump_file_stem

get_param_load_file_path_HDF5

get_param_load_file_path_JSON

get_param_load_file_stem

get_parameter_dependence

Find if/where a given parameter is used by the action.

get_possible_scopes

Get the action scopes that are inclusive of this action, ordered by decreasing specificity.

get_precise_scope

get_resolved_action_env

get_script_name

Return the script name.

is_app_data_script

is_input_type_required

to_dict

to_json_like

Attributes

app

task_schema

Parameters:
app = BaseApp(name='hpcFlow', version='0.2.0a81')#
expand()#
classmethod from_json_like(json_like, shared_data=None)#
Parameters:
  • json_like (Union[Dict, List]) –

  • shared_data (Optional[Dict[str, ObjectList]]) –

generate_data_index(act_idx, EAR_ID, schema_data_idx, all_data_idx, workflow, param_source)#

Generate the data index for this action of an element iteration whose overall data index is passed.

This mutates all_data_idx.

Return type:

List[int]

classmethod get_app_data_script_path(script)#
Return type:

str

get_command_input_file_labels()#

Get input files types from commands.

Return type:

Tuple[str]

get_command_input_types()#

Get parameter types from commands.

Return type:

Tuple[str]

get_command_output_types()#

Get parameter types from command stdout and stderr arguments.

Return type:

Tuple[str]

get_commands_action_env()#
get_input_file_generator_action_env(input_file_generator)#
Parameters:

input_file_generator (InputFileGenerator) –

get_input_file_labels()#
get_input_types()#

Get the input types that are consumed by commands and input file generators of this action.

Return type:

Tuple[str]

get_output_file_labels()#
get_output_file_parser_action_env(output_file_parser)#
Parameters:

output_file_parser (OutputFileParser) –

get_output_types()#

Get the output types that are produced by command standard outputs and errors, and by output file parsers of this action.

Return type:

Tuple[str]

get_param_dump_file_path_JSON(js_idx, js_act_idx)#
Parameters:
  • js_idx (int) –

  • js_act_idx (int) –

static get_param_dump_file_stem(js_idx, js_act_idx)#
Parameters:
  • js_idx (int) –

  • js_act_idx (int) –

get_param_load_file_path_HDF5(js_idx, js_act_idx)#
Parameters:
  • js_idx (int) –

  • js_act_idx (int) –

get_param_load_file_path_JSON(js_idx, js_act_idx)#
Parameters:
  • js_idx (int) –

  • js_act_idx (int) –

static get_param_load_file_stem(js_idx, js_act_idx)#
Parameters:
  • js_idx (int) –

  • js_act_idx (int) –

get_parameter_dependence(parameter)#

Find if/where a given parameter is used by the action.

Parameters:

parameter (SchemaParameter) –

get_possible_scopes()#

Get the action scopes that are inclusive of this action, ordered by decreasing specificity.

Return type:

Tuple[ActionScope]

get_precise_scope()#
Return type:

ActionScope

get_resolved_action_env(relevant_scopes, input_file_generator=None, output_file_parser=None, commands=None)#
Parameters:
classmethod get_script_name(script)#

Return the script name.

Parameters:

script (str) –

Return type:

str

static is_app_data_script(script)#
Parameters:

script (str) –

Return type:

bool

is_input_type_required(typ, provided_files)#
Parameters:
Return type:

bool

property task_schema#
to_dict()#
to_json_like(dct=None, shared_data=None, exclude=None, path=None)#