MNLogit.set_idata_attrs#

MNLogit.set_idata_attrs(idata=None)[source]#

Set attributes on a DataTree object.

Parameters:
idataxr.DataTree, optional

The DataTree object to set attributes on.

Returns:
DataTree

The DataTree instance with the attrs set

Raises:
ValueError

If the attrs are missing for a property initialization of the class

RuntimeError

If no DataTree object is provided.

Examples

Set the attrs for a DataTree object manually.

idata: xr.DataTree = ...
model.set_idata_attrs(idata=idata)