def __init__(self,
instance: int,
data: xr.Dataset,
mutable: bool = False):
"""
Create a new _Instance view representing the specified instance of the specified xarray data set.
Parameters
----------
instance: int
The index of the instance in the specified xarray data set
data: xarray.Dataset
The xarray data set containing the instance
mutable: bool, optional
If True, attributes of this instance may be modified. If False (default), any attempt to modify the instance
will result in an AttributeError
"""
self._instance = instance
self._data = data
self._mutable = mutable
评论列表
文章目录