-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into open-groups-zarr
- Loading branch information
Showing
71 changed files
with
1,166 additions
and
602 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,11 +123,11 @@ jobs: | |
python xarray/util/print_versions.py | ||
- name: Install mypy | ||
run: | | ||
python -m pip install "mypy<1.9" --force-reinstall | ||
python -m pip install "mypy" --force-reinstall | ||
- name: Run mypy | ||
run: | | ||
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/ | ||
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report | ||
- name: Upload mypy coverage to Codecov | ||
uses: codecov/[email protected] | ||
|
@@ -138,7 +138,7 @@ jobs: | |
name: codecov-umbrella | ||
fail_ci_if_error: false | ||
|
||
mypy39: | ||
mypy-min: | ||
name: Mypy 3.10 | ||
runs-on: "ubuntu-latest" | ||
needs: detect-ci-trigger | ||
|
@@ -177,32 +177,30 @@ jobs: | |
python xarray/util/print_versions.py | ||
- name: Install mypy | ||
run: | | ||
python -m pip install "mypy<1.9" --force-reinstall | ||
python -m pip install "mypy" --force-reinstall | ||
- name: Run mypy | ||
run: | | ||
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/ | ||
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report | ||
- name: Upload mypy coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
file: mypy_report/cobertura.xml | ||
flags: mypy39 | ||
flags: mypy-min | ||
env_vars: PYTHON_VERSION | ||
name: codecov-umbrella | ||
fail_ci_if_error: false | ||
|
||
|
||
|
||
pyright: | ||
name: Pyright | ||
runs-on: "ubuntu-latest" | ||
needs: detect-ci-trigger | ||
if: | | ||
always() | ||
&& ( | ||
contains( github.event.pull_request.labels.*.name, 'run-pyright') | ||
) | ||
always() | ||
&& ( | ||
contains( github.event.pull_request.labels.*.name, 'run-pyright') | ||
) | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
@@ -258,10 +256,10 @@ jobs: | |
runs-on: "ubuntu-latest" | ||
needs: detect-ci-trigger | ||
if: | | ||
always() | ||
&& ( | ||
contains( github.event.pull_request.labels.*.name, 'run-pyright') | ||
) | ||
always() | ||
&& ( | ||
contains( github.event.pull_request.labels.*.name, 'run-pyright') | ||
) | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
@@ -312,8 +310,6 @@ jobs: | |
name: codecov-umbrella | ||
fail_ci_if_error: false | ||
|
||
|
||
|
||
min-version-policy: | ||
name: Minimum Version Policy | ||
runs-on: "ubuntu-latest" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import xarray as xr | ||
from xarray.core.datatree import DataTree | ||
|
||
|
||
class Datatree: | ||
def setup(self): | ||
run1 = DataTree.from_dict({"run1": xr.Dataset({"a": 1})}) | ||
self.d_few = {"run1": run1} | ||
self.d_many = {f"run{i}": run1.copy() for i in range(100)} | ||
|
||
def time_from_dict_few(self): | ||
DataTree.from_dict(self.d_few) | ||
|
||
def time_from_dict_many(self): | ||
DataTree.from_dict(self.d_many) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.