Open
Description
There's a lot of other discussion in #9063, but I wanted to pull out this suggestion for independent discussion:
- Our list of internal attributes on a
DataTree
node is still not just those on aDataset
plus the inherited coordinatesThis is indeed a bit of a con, but in my mind the right fix is probably to adjust the
Dataset
data model to using dictionaries ofdata_variables
andcoord_variables
, rather than the current solution of a dict ofvariables
and a set ofcoord_names
. Using a separate dictionary forcoord_variables
would also be more aligned with howDataArray
is implemented. The internalDataset
data model is a hold-over from the very early days of Xarray, before we had a notion of coordinate variables that are not indexes.
Originally posted by @shoyer in #9063 (comment)