matflow.ValuePerturbation#

class matflow.ValuePerturbation(name: 'str', path: 'Optional[Sequence[Union[str, int, float]]]' = None, multiplicative_factor: 'Optional[Numeric]' = 1, additive_factor: 'Optional[Numeric]' = 0)#

Bases: ValuePerturbation

Methods

from_json_like

from_spec

make_persistent

Save value to a persistent workflow.

to_dict

to_json_like

Attributes

additive_factor

app

multiplicative_factor

path

value

workflow

name

Parameters:
additive_factor: Numeric | None = 0#
app = App(name='MatFlow', version='0.3.0a129')#
classmethod from_json_like(json_like, shared_data=None)#
Parameters:
  • json_like (Union[Dict, List]) –

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

classmethod from_spec(spec)#
make_persistent(workflow, source)#

Save value to a persistent workflow.

Returns:

  • String is the data path for this task input and single item integer list

  • contains the index of the parameter data Zarr group where the data is

  • stored.

Parameters:
Return type:

Tuple[str, List[int], bool]

multiplicative_factor: Numeric | None = 1#
name: str#
path: Sequence[str | int | float] | None = None#
to_dict()#
to_json_like(dct=None, shared_data=None, exclude=None, path=None)#
property value#
property workflow#