-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTree
: missing methods
#10015
Comments
Here is a more complete list (code-generated):
I think these are not available because they where defined directly on import xarray as xr
dt_methods = set(m for m in dir(xr.DataTree) if not m.startswith("_"))
ds_methods = set(m for m in dir(xr.Dataset) if not m.startswith("_"))
for m in sorted(ds_methods - dt_methods):
print(f"- [ ] {m}") |
I don't think so, we might have forgotten to make an issue for this.
Available time? 🤷
So does
So I don't think these are all equally important. We deliberately prioritized methods to manipulate and iterate over tree contents above implementing data analysis methods. A large number of the methods on that list could be implemented in one line using The things that are important to add that are still missing are to do with manipulating and viewing tree contents, such as Also as an aside I actually feel like some of those methods on the list shouldn't even exist on |
Is your feature request related to a problem?
There are still missing methods on
DataTree
and I did not find an issue tracking those.e.g.:
(I am sure there are more but these are the ones I need.)
Describe the solution you'd like
No response
Describe alternatives you've considered
We could use
map_over_datasets(xr.Dataset.transpose, dt)
but (1) that's annoying, (2)obj.transpose()
would work forDataTree
andDataset
etc.Additional context
No response
The text was updated successfully, but these errors were encountered: