matflow.ParametersList#

class matflow.ParametersList(_objects)#

Bases: ParametersList

A list-like container for parameters with dot-notation access by parameter type.

Methods

add_object

add_objects

from_json_like

param is_hashed:

If True, accept a dict whose keys are hashes of the dict values.

get

Get a single object from the object list, by specifying the value of the access attribute, and optionally additional keyword-argument attribute values.

get_all

Overridden to provide a default Parameter object if none exists.

list_attrs

Get a tuple of the unique access-attribute values of the constituent objects.

to_dict

to_json_like

add_object(obj, index=-1, skip_duplicates=False)#
add_objects(objs, index=-1, skip_duplicates=False)#
classmethod from_json_like(json_like, shared_data=None, is_hashed=False)#
Parameters:

is_hashed (bool) – If True, accept a dict whose keys are hashes of the dict values.

get(access_attribute_value=None, **kwargs)#

Get a single object from the object list, by specifying the value of the access attribute, and optionally additional keyword-argument attribute values.

get_all(access_attribute_value=None, **kwargs)#

Overridden to provide a default Parameter object if none exists.

list_attrs()#

Get a tuple of the unique access-attribute values of the constituent objects.

to_dict()#
to_json_like(dct=None, shared_data=None, exclude=None, path=None)#