Previously in 2024.09.0, subtrees appeared to inherit all parent coordinates, so the DataTree.isel statement in the MCVE worked. However in 2024.10.0, this inheritance no longer seems to apply, so a DataTree.isel fails when applying selection logic on the subtree with a parent dimension. Furthermore DataTree.isel(..., missing_dims="ignore") also fails.
What did you expect to happen?
I'm not sure if the 2024.09.0 coordinate inheritance should still apply if the inherited coordinates aren't present on the subtree.
However, DataTree.isel(..., missing_dims="ignore") should work
Likely this is failing due to missing_dims not being applied in apply_indxers here:
What happened?
Previously in 2024.09.0, subtrees appeared to inherit all parent coordinates, so the
DataTree.isel
statement in the MCVE worked. However in 2024.10.0, this inheritance no longer seems to apply, so aDataTree.isel
fails when applying selection logic on the subtree with a parent dimension. FurthermoreDataTree.isel(..., missing_dims="ignore")
also fails.What did you expect to happen?
I'm not sure if the 2024.09.0 coordinate inheritance should still apply if the inherited coordinates aren't present on the subtree.
However,
DataTree.isel(..., missing_dims="ignore")
should workLikely this is failing due to
missing_dims
not being applied inapply_indxers
here:https://github.com/pydata/xarray/blob/038436365d4757a322cac37307503c132d1fe2a7/xarray/core/datatree.py#L1831-L1836
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
No response
Anything else we need to know?
DataTree.isel
was not part of the disabling.Environment