ModelBuilder.set_data#
- ModelBuilder.set_data(name, values, coords=None)#
Changes the values of a data variable in the model.
In contrast to pm.Data().set_value, this method can also update the corresponding coordinates.
- Parameters:
- name
str
Name of a shared variable in the model.
- valuesarray_like
New values for the shared variable.
- coordsoptional,
dict
New coordinate values for dimensions of the shared variable. Must be provided for all named dimensions that change in length and already have coordinate values.
- name
- Parameters: