hpcflow.app.OutputFileParser#

class hpcflow.app.OutputFileParser(output_files, output=None, script=None, environment=None, inputs=None, outputs=None, options=None, abortable=False, save_files=True, clean_up=None)#

Bases: OutputFileParser

Parameters:
  • output (hpcflow.app.Parameter | None) – The singular output parsed by this parser. Not to be confused with outputs (plural).

  • outputs (List[str]) – Optional multiple outputs from the upstream actions of the schema that are required to parametrise this parser.

  • output_files (List[FileSpec]) –

  • script (str) –

  • environment (Environment) –

  • inputs (List[str]) –

  • options (Dict) –

  • abortable (bool | None) –

  • save_files (List[str] | bool) –

  • clean_up (List[str] | None) –

Methods

compose_source

Generate the file contents of this output file parser source.

from_json_like

to_dict

to_json_like

write_source

Attributes

abortable

app

clean_up

environment

inputs

options

output

outputs

save_files

script

output_files

abortable: bool | None = False#
app = BaseApp(name='hpcFlow', version='0.2.0a127')#
clean_up: List[str] | None = None#
compose_source(action)#

Generate the file contents of this output file parser source.

Return type:

str

environment: Environment = None#
classmethod from_json_like(json_like, shared_data=None)#
inputs: List[str] = None#
options: Dict = None#
output: app.Parameter | None = None#
output_files: List[app.FileSpec]#
outputs: List[str] = None#
save_files: List[str] | bool = True#
script: str = None#
to_dict()#
to_json_like(dct=None, shared_data=None, exclude=None, path=None)#
write_source(action)#