hpcflow.sdk.core.test_utils.P1_sub_parameter_cls#

class hpcflow.sdk.core.test_utils.P1_sub_parameter_cls(e=0)#

Bases: ParameterValue

Parameter value handler: p1_sub

Methods

CLI_format

dump_to_HDF5_group

Write this parameter value to an HDF5 group.

prepare_JSON_dump

Prepare this parameter value for serialisation as JSON.

save_from_HDF5_group

Extract a parameter value from an HDF5 group.

save_from_JSON

Extract a parameter value from JSON data.

to_dict

Serialise this parameter value as a dictionary.

Attributes

e

twice_e

Parameters:

e (int) –

CLI_format()#
Return type:

str

dump_to_HDF5_group(group)#

Write this parameter value to an HDF5 group.

Parameters:

group (HDFSGroup) –

e: int = 0#
prepare_JSON_dump()#

Prepare this parameter value for serialisation as JSON.

Return type:

dict[str, Any]

classmethod save_from_HDF5_group(group, param_id, workflow)#

Extract a parameter value from an HDF5 group.

Parameters:
  • group (Group) –

  • param_id (int) –

  • workflow (Workflow) –

classmethod save_from_JSON(data, param_id, workflow)#

Extract a parameter value from JSON data.

Parameters:
to_dict()#

Serialise this parameter value as a dictionary.

Return type:

dict[str, Any]

property twice_e#