Skip to content

add DataTree.subset #10400

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Update xarray/tests/test_datatree.py
Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com>
  • Loading branch information
mathause and Illviljan authored Jun 11, 2025
commit 911a7d3023b37256d7af064a91039a5c9b6dfd3a
2 changes: 1 addition & 1 deletion xarray/tests/test_datatree.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def test_getitem_dict_like_selection_access_to_dataset(self) -> None:
assert_identical(results[{"temp": 1}], data[{"temp": 1}]) # type: ignore[index]


def test_subset():
def test_subset() -> None:
ds1 = xr.Dataset(data_vars={"var1": ("x", [1, 2]), "var2": ("x", [0, 1])})
ds2 = xr.Dataset(data_vars={"var1": ("x", [1, 2])})
dt = xr.DataTree.from_dict({"ds1": ds1, "ds2": ds2})
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy