hpcflow.app.InputFileGenerator#

class hpcflow.app.InputFileGenerator(input_file: 'app.FileSpec', inputs: 'List[app.Parameter]', script: 'str' = None, environment: 'app.Environment' = None, abortable: 'Optional[bool]' = False)#

Bases: InputFileGenerator

Methods

compose_source

Generate the file contents of this input file generator source.

from_json_like

get_action_rule

Get the rule that allows testing if this input file generator must be run or not for a given element.

to_dict

to_json_like

write_source

Attributes

abortable

app

environment

script

input_file

inputs

Parameters:
abortable: bool | None = False#
app = BaseApp(name='hpcFlow', version='0.2.0a54')#
compose_source()#

Generate the file contents of this input file generator source.

Return type:

str

environment: app.Environment = None#
classmethod from_json_like(json_like, shared_data=None)#
Parameters:
  • json_like (Union[Dict, List]) –

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

get_action_rule()#

Get the rule that allows testing if this input file generator must be run or not for a given element.

input_file: app.FileSpec#
inputs: List[app.Parameter]#
script: str = None#
to_dict()#
to_json_like(dct=None, shared_data=None, exclude=None, path=None)#
write_source(action)#