xarray.Dataset.xsimlab.update_vars

Dataset.xsimlab.update_vars(model=None, input_vars=None, output_vars=None)

Update model input values and/or output variable names.

More details about the values allowed for the parameters below can be found in the doc of xsimlab.create_setup().

Parameters
  • model (xsimlab.Model object, optional) – Reference model. If None, tries to get model from context.

  • input_vars (dict, optional) – Model input values (may be grouped per process name, as dict of dicts).

  • output_vars (dict, optional) – Model variables to save as simulation output (time-dependent or time-independent).

Returns

updated – Another Dataset with new or replaced variables (inputs) and/or attributes (snapshots).

Return type

Dataset