hpcflow.sdk.core.test_utils.P1_parameter_cls#
- class hpcflow.sdk.core.test_utils.P1_parameter_cls(a=0, d=None, sub_param=None)#
Bases:
ParameterValue
Parameter value handler:
p1c
Note
This is a composite value handler.
Methods
Used for testing custom object CLI formatting.
Write this parameter value to an HDF5 group.
Prepare this parameter value for serialisation as JSON.
Extract a parameter value from an HDF5 group.
Extract a parameter value from JSON data.
Serialise this parameter value as a dictionary.
Attributes
- Parameters:
a (int) –
d (int | None) –
sub_param (P1_sub_parameter_cls | None) –
- classmethod CLI_parse(a_str, double='', e=None)#
- custom_CLI_format(add=None, sub=None)#
- custom_CLI_format_prep(reps=None)#
Used for testing custom object CLI formatting.
For example, with a command like this:
<<join[delim=”,”](parameter:p1c.custom_CLI_format_prep(reps=4))>>.
- dump_to_HDF5_group(group)#
Write this parameter value to an HDF5 group.
- Parameters:
group (HDFSGroup) –
- prepare_JSON_dump()#
Prepare this parameter value for serialisation as JSON.
- classmethod save_from_HDF5_group(group, param_id, workflow)#
Extract a parameter value from an HDF5 group.
- classmethod save_from_JSON(data, param_id, workflow)#
Extract a parameter value from JSON data.
- sub_param: P1_sub_parameter_cls | None = None#
- property sub_param_prop: P1_sub_parameter_cls#