def master_clock_dim(self):
"""Dimension used as master clock for model runs. Returns None
if no dimension is set as master clock.
See Also
--------
:meth:`Dataset.xsimlab.update_clocks`
"""
if self._master_clock_dim is not None:
return self._master_clock_dim
else:
for c in self._obj.coords.values():
if c.attrs.get(self._master_clock_key, False):
dim = c.dims[0]
self._master_clock_dim = dim
return dim
return None
评论列表
文章目录