hpcflow.sdk.core.actions.ElementActionRun#

class hpcflow.sdk.core.actions.ElementActionRun(element_action, run_idx, index, data_idx, metadata)#

Bases: object

Methods

compose_commands

returns:
  • commands

compose_source

Generate the file contents of this source.

get

get_EAR_dependencies

Get EARs that this EAR depends on.

get_IFG_input_values

get_OFP_output_files

get_data_idx

get_environment

get_input_dependencies

Get information about locally defined input, sequence, and schema-default values that this EAR depends on.

get_input_values

get_parameter_names

get_parameter_sources

get_resources

Resolve specific resources for this EAR, considering all applicable scopes and template-level resources.

get_template_resources

Get template-level resources.

write_source

Attributes

EAR_ID

EAR index object.

action

data_idx

element

element_action

element_iteration

end_time

index

Task-wide EAR index.

input_files

inputs

metadata

output_files

outputs

resources

run_idx

start_time

submission_idx

submission_status

success

task

workflow

Parameters:
  • run_idx (int) –

  • index (int) –

  • data_idx (Dict) –

  • metadata (Dict) –

property EAR_ID#

EAR index object.

property action#
compose_commands(jobscript)#
Returns:

  • commands

  • shell_vars – List of shell variable names that must be saved as workflow parameter data as strings.

Parameters:

jobscript (Jobscript) –

Return type:

Tuple[str, List[str]]

compose_source()#

Generate the file contents of this source.

Return type:

str

property data_idx#
property element#
property element_action#
property element_iteration#
property end_time#
get(path=None, default=None, raise_on_missing=False)#
Parameters:
  • path (str | None) –

  • default (Any | None) –

  • raise_on_missing (bool) –

get_EAR_dependencies(as_objects=False)#

Get EARs that this EAR depends on.

get_IFG_input_values()#
Return type:

Dict[str, Any]

get_OFP_output_files()#
Return type:

Dict[str, str | List[str]]

get_data_idx(path=None)#
Parameters:

path (str | None) –

get_environment()#
get_input_dependencies()#

Get information about locally defined input, sequence, and schema-default values that this EAR depends on. Note this does not get values from this EAR’s task/schema, because the aim of this method is to help determine which upstream tasks this EAR depends on.

get_input_values()#
Return type:

Dict[str, Any]

get_parameter_names(prefix)#
get_parameter_sources(path=None, typ=None, as_strings=False, use_task_index=False)#
Parameters:
  • path (str | None) –

  • typ (str | None) –

  • as_strings (bool) –

  • use_task_index (bool) –

get_resources()#

Resolve specific resources for this EAR, considering all applicable scopes and template-level resources.

get_template_resources()#

Get template-level resources.

property index#

Task-wide EAR index.

property input_files#
property inputs#
property metadata#
property output_files#
property outputs#
property resources#
property run_idx#
property start_time#
property submission_idx#
property submission_status#
property success#
property task#
property workflow#
write_source()#