libpyvinyl.Parameters.Collections.MasterParameters

libpyvinyl.Parameters.Collections.MasterParameters

class libpyvinyl.Parameters.Collections.MasterParameters(parameters_dict, *args, **kwargs)

Master Parameters object that contain all master parameters with the additional ability to set values for the other parameters this master should control.

__init__(parameters_dict, *args, **kwargs)

Create MasterParameters object with given parameters dict

The parameters_dict contains all the Parameters objects in the ParametersCollection, and provides the access for the master parameters so they can control the other Parameters objects of which they are responsible.

Methods

__init__(parameters_dict, *args, **kwargs)

Create MasterParameters object with given parameters dict

add(parameter)

Adds parameters to this parameters object, either single or list

check_list_type(parameter_list)

Checks given list of parameters is a list and contains only parameter objects

check_type(parameter)

Checks given parameter is of type Parameter

from_dict(params_dict)

Initialize an instance from a dict.

from_json(fname)

Initialize an instance from a json file.

new_parameter(*args, **kwargs)

Creates a new parameter with given arguments and adds to this Parameters object

print_indented(indents)

returns string describing this object, can optionally be indented

to_dict()

to_json(fname)

Save this parameters class to a human readable json file.