xarray 2024.6.0__tar.gz → 2024.9.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xarray-2024.9.0/.github/release.yml +5 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/workflows/benchmarks.yml +5 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/workflows/ci-additional.yaml +22 -26
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/workflows/ci.yaml +4 -4
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/workflows/hypothesis.yaml +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/workflows/pypi-release.yaml +2 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/workflows/upstream-dev-ci.yaml +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/.pre-commit-config.yaml +6 -5
- {xarray-2024.6.0 → xarray-2024.9.0}/.readthedocs.yaml +2 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/HOW_TO_RELEASE.md +5 -6
- {xarray-2024.6.0/xarray.egg-info → xarray-2024.9.0}/PKG-INFO +15 -16
- {xarray-2024.6.0 → xarray-2024.9.0}/README.md +11 -11
- xarray-2024.9.0/asv_bench/benchmarks/coding.py +18 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/dataset_io.py +113 -2
- xarray-2024.9.0/asv_bench/benchmarks/datatree.py +15 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/groupby.py +17 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/rolling.py +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/ci/install-upstream-wheels.sh +1 -4
- xarray-2024.9.0/ci/release_contributors.py +49 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/ci/requirements/bare-minimum.yml +3 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/ci/requirements/doc.yml +6 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/ci/requirements/environment.yml +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/ci/requirements/min-all-deps.yml +13 -13
- {xarray-2024.6.0 → xarray-2024.9.0}/design_notes/flexible_indexes_notes.md +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/design_notes/grouper_objects.md +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/design_notes/named_array_design_doc.md +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/api-hidden.rst +4 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/api.rst +23 -4
- xarray-2024.9.0/doc/combined.json +30 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/conf.py +17 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/ecosystem.rst +1 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/getting-started-guide/faq.rst +2 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/getting-started-guide/installing.rst +3 -3
- xarray-2024.9.0/doc/help-diagram.rst +75 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/index.rst +3 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/internals/chunked-arrays.rst +2 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/internals/how-to-add-new-backend.rst +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/computation.rst +3 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/dask.rst +16 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/data-structures.rst +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/duckarrays.rst +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/groupby.rst +114 -25
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/interpolation.rst +2 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/io.rst +219 -84
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/pandas.rst +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/reshaping.rst +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/terminology.rst +3 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/testing.rst +4 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/whats-new.rst +181 -2
- xarray-2024.9.0/properties/test_encode_decode.py +45 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/properties/test_pandas_roundtrip.py +24 -17
- xarray-2024.9.0/properties/test_properties.py +17 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/pyproject.toml +9 -17
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/__init__.py +2 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/api.py +133 -46
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/common.py +18 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/file_manager.py +3 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/h5netcdf_.py +56 -16
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/lru_cache.py +2 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/netCDF4_.py +54 -16
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/plugins.py +9 -16
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/scipy_.py +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/zarr.py +44 -16
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/coding/calendar_ops.py +76 -55
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/coding/cftime_offsets.py +152 -101
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/coding/cftimeindex.py +46 -24
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/coding/frequencies.py +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/coding/strings.py +3 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/coding/times.py +42 -37
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/coding/variables.py +136 -99
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/conventions.py +23 -15
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/_aggregations.py +54 -106
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/_typed_ops.py +69 -68
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/accessor_dt.py +42 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/accessor_str.py +4 -4
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/alignment.py +10 -9
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/array_api_compat.py +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/combine.py +10 -7
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/common.py +42 -58
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/computation.py +34 -67
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/concat.py +32 -25
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/coordinates.py +107 -14
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/dataarray.py +178 -129
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/dataset.py +289 -135
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/datatree.py +375 -311
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/datatree_io.py +2 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/datatree_mapping.py +12 -8
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/datatree_ops.py +2 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/datatree_render.py +36 -26
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/dtypes.py +4 -4
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/duck_array_ops.py +9 -33
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/extension_array.py +7 -7
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/formatting.py +158 -53
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/formatting_html.py +2 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/groupby.py +378 -765
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/indexes.py +56 -40
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/indexing.py +31 -24
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/iterators.py +18 -24
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/merge.py +8 -8
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/missing.py +16 -10
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/npcompat.py +21 -8
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/nputils.py +2 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/options.py +8 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/parallel.py +14 -11
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/pdcompat.py +0 -22
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/resample.py +15 -54
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/resample_cftime.py +22 -35
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/rolling.py +9 -7
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/treenode.py +17 -9
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/types.py +54 -17
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/utils.py +34 -61
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/variable.py +48 -42
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/weighted.py +5 -3
- xarray-2024.9.0/xarray/groupers.py +487 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/namedarray/_aggregations.py +2 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/namedarray/_typing.py +14 -12
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/namedarray/core.py +18 -13
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/namedarray/daskmanager.py +6 -6
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/namedarray/dtypes.py +1 -7
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/namedarray/parallelcompat.py +6 -13
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/namedarray/utils.py +3 -7
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/plot/dataarray_plot.py +6 -4
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/plot/dataset_plot.py +13 -8
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/plot/facetgrid.py +18 -15
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/plot/utils.py +28 -15
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/static/css/style.css +8 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/testing/assertions.py +16 -14
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/testing/strategies.py +15 -14
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/__init__.py +3 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/arrays.py +2 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/conftest.py +31 -8
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_accessor_dt.py +56 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_accessor_str.py +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_array_api.py +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_assertions.py +6 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_backends.py +166 -15
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_backends_api.py +7 -5
- xarray-2024.9.0/xarray/tests/test_backends_datatree.py +307 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_backends_file_manager.py +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_backends_lru_cache.py +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_calendar_ops.py +24 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_cftime_offsets.py +93 -44
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_cftimeindex.py +20 -20
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_cftimeindex_resample.py +20 -93
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_coding.py +2 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_coding_strings.py +2 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_coding_times.py +81 -65
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_combine.py +8 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_computation.py +25 -19
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_concat.py +21 -13
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_conventions.py +3 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_coordinates.py +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_dask.py +30 -13
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_dataarray.py +113 -76
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_dataset.py +234 -51
- xarray-2024.9.0/xarray/tests/test_datatree.py +1586 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_datatree_mapping.py +5 -6
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_distributed.py +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_dtypes.py +3 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_duck_array_ops.py +7 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_extensions.py +3 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_formatting.py +124 -98
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_formatting_html.py +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_groupby.py +490 -233
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_indexes.py +17 -14
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_indexing.py +3 -9
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_interp.py +3 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_missing.py +24 -34
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_namedarray.py +25 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_parallelcompat.py +6 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_plot.py +173 -99
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_plugins.py +7 -18
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_rolling.py +15 -9
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_strategies.py +4 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_treenode.py +14 -5
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_ufuncs.py +1 -1
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_units.py +19 -16
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_utils.py +7 -2
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_variable.py +62 -55
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_weighted.py +1 -1
- xarray-2024.9.0/xarray/util/__init__.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/util/deprecation_helpers.py +6 -3
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/util/generate_aggregations.py +2 -28
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/util/generate_ops.py +14 -12
- {xarray-2024.6.0 → xarray-2024.9.0/xarray.egg-info}/PKG-INFO +15 -16
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray.egg-info/SOURCES.txt +9 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray.egg-info/requires.txt +2 -2
- xarray-2024.6.0/properties/test_encode_decode.py +0 -52
- xarray-2024.6.0/xarray/tests/test_backends_datatree.py +0 -121
- xarray-2024.6.0/xarray/tests/test_datatree.py +0 -904
- {xarray-2024.6.0 → xarray-2024.9.0}/.binder/environment.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.codecov.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.git-blame-ignore-revs +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.git_archival.txt +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.gitattributes +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/FUNDING.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/ISSUE_TEMPLATE/bugreport.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/ISSUE_TEMPLATE/misc.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/ISSUE_TEMPLATE/newfeature.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/config.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/dependabot.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/stale.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/workflows/benchmarks-last-release.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/workflows/configure-testpypi-version.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/workflows/nightly-wheels.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.github/workflows/publish-test-results.yaml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.gitignore +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/.pep8speaks.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/CITATION.cff +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/CODE_OF_CONDUCT.md +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/CONTRIBUTING.md +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/CORE_TEAM_GUIDE.md +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/LICENSE +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/MANIFEST.in +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/asv.conf.json +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/README_CI.md +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/__init__.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/accessors.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/alignment.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/combine.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/dataarray_missing.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/dataset.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/import.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/indexing.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/interp.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/merge.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/pandas.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/polyfit.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/reindexing.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/renaming.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/repr.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/asv_bench/benchmarks/unstacking.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/ci/min_deps_check.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/ci/requirements/all-but-dask.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/ci/requirements/environment-3.13.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/ci/requirements/environment-windows-3.13.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/ci/requirements/environment-windows.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/conftest.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/Makefile +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/README.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/.gitignore +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/advanced_selection_interpolation.svg +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/ci.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/dask_array.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/dataset-diagram.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/index_api.svg +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/index_contribute.svg +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/index_getting_started.svg +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/index_user_guide.svg +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/logos/Xarray_Icon_Final.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/logos/Xarray_Icon_Final.svg +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.svg +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/logos/Xarray_Logo_RGB_Final.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/logos/Xarray_Logo_RGB_Final.svg +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/numfocus_logo.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/opendap-prism-tmax.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/style.css +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/thumbnails/ERA5-GRIB-example.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/thumbnails/ROMS_ocean_model.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/thumbnails/area_weighted_temperature.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/thumbnails/monthly-means.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/thumbnails/multidimensional-coords.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/thumbnails/toy-weather-data.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/thumbnails/visualization_gallery.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_static/view-docs.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_templates/autosummary/accessor.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_templates/autosummary/accessor_attribute.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_templates/autosummary/accessor_callable.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/_templates/autosummary/accessor_method.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/contributing.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/developers-meeting.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/examples/ERA5-GRIB-example.ipynb +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/examples/ROMS_ocean_model.ipynb +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/examples/_code/accessor_example.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/examples/apply_ufunc_vectorize_1d.ipynb +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/examples/area_weighted_temperature.ipynb +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/examples/blank_template.ipynb +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/examples/monthly-means.ipynb +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/examples/monthly_means_output.png +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/examples/multidimensional-coords.ipynb +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/examples/visualization_gallery.ipynb +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/examples/weather-data.ipynb +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/gallery/README.txt +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/gallery/plot_cartopy_facetgrid.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/gallery/plot_colorbar_center.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/gallery/plot_control_colorbar.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/gallery/plot_lines_from_2d.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/gallery.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/gallery.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/getting-started-guide/index.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/getting-started-guide/quick-overview.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/getting-started-guide/why-xarray.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/howdoi.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/internals/duck-arrays-integration.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/internals/extending-xarray.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/internals/how-to-create-custom-index.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/internals/index.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/internals/internal-design.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/internals/interoperability.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/internals/zarr-encoding-spec.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/roadmap.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/tutorials-and-videos.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/combining.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/index.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/indexing.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/options.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/plotting.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/time-series.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/user-guide/weather-climate.rst +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/doc/videos.yml +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/licenses/ANYTREE_LICENSE +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/licenses/DASK_LICENSE +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/licenses/ICOMOON_LICENSE +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/licenses/NUMPY_LICENSE +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/licenses/PANDAS_LICENSE +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/licenses/PYTHON_LICENSE +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/licenses/SCIKIT_LEARN_LICENSE +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/licenses/SEABORN_LICENSE +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/properties/README.md +0 -0
- {xarray-2024.6.0/xarray/coding → xarray-2024.9.0/properties}/__init__.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/properties/conftest.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/properties/test_index_manipulation.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/setup.cfg +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/setup.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/__init__.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/locks.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/memory.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/netcdf3.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/pydap_.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/backends/store.py +0 -0
- {xarray-2024.6.0/xarray/core → xarray-2024.9.0/xarray/coding}/__init__.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/convert.py +0 -0
- {xarray-2024.6.0/xarray/namedarray → xarray-2024.9.0/xarray/core}/__init__.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/arithmetic.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/dask_array_ops.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/extensions.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/nanops.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/ops.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/core/rolling_exp.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/datatree_/datatree/__init__.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/indexes/__init__.py +0 -0
- {xarray-2024.6.0/xarray/static → xarray-2024.9.0/xarray/namedarray}/__init__.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/namedarray/_array_api.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/namedarray/pycompat.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/plot/__init__.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/plot/accessor.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/py.typed +0 -0
- {xarray-2024.6.0/xarray/static/css → xarray-2024.9.0/xarray/static}/__init__.py +0 -0
- {xarray-2024.6.0/xarray/static/html → xarray-2024.9.0/xarray/static/css}/__init__.py +0 -0
- {xarray-2024.6.0/xarray/util → xarray-2024.9.0/xarray/static/html}/__init__.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/static/html/icons-svg-inline.html +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/testing/__init__.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/data/bears.nc +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/data/example.grib +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/data/example.ict +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/data/example.uamiv +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/data/example_1.nc +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/data/example_1.nc.gz +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_backends_common.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_backends_locks.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_coarsen.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_cupy.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_deprecation_helpers.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_error_messages.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_hashable.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_merge.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_nputils.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_options.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_print_versions.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_sparse.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_tutorial.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tests/test_typed_ops.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/tutorial.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray/util/print_versions.py +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray.egg-info/dependency_links.txt +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray.egg-info/entry_points.txt +0 -0
- {xarray-2024.6.0 → xarray-2024.9.0}/xarray.egg-info/top_level.txt +0 -0
|
@@ -5,6 +5,9 @@ on:
|
|
|
5
5
|
types: [opened, reopened, synchronize, labeled]
|
|
6
6
|
workflow_dispatch:
|
|
7
7
|
|
|
8
|
+
env:
|
|
9
|
+
PR_HEAD_LABEL: ${{ github.event.pull_request.head.label }}
|
|
10
|
+
|
|
8
11
|
jobs:
|
|
9
12
|
benchmark:
|
|
10
13
|
if: ${{ contains( github.event.pull_request.labels.*.name, 'run-benchmark') && github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
|
|
@@ -31,7 +34,7 @@ jobs:
|
|
|
31
34
|
# add "build" because of https://github.com/airspeed-velocity/asv/issues/1385
|
|
32
35
|
create-args: >-
|
|
33
36
|
asv
|
|
34
|
-
build
|
|
37
|
+
python-build
|
|
35
38
|
mamba
|
|
36
39
|
|
|
37
40
|
|
|
@@ -49,7 +52,7 @@ jobs:
|
|
|
49
52
|
# ID this runner
|
|
50
53
|
asv machine --yes
|
|
51
54
|
echo "Baseline: ${{ github.event.pull_request.base.sha }} (${{ github.event.pull_request.base.label }})"
|
|
52
|
-
echo "Contender: ${GITHUB_SHA} ($
|
|
55
|
+
echo "Contender: ${GITHUB_SHA} ($PR_HEAD_LABEL)"
|
|
53
56
|
# Run benchmarks for current commit against base
|
|
54
57
|
ASV_OPTIONS="--split --show-stderr --factor $ASV_FACTOR"
|
|
55
58
|
asv continuous $ASV_OPTIONS ${{ github.event.pull_request.base.sha }} ${GITHUB_SHA} \
|
|
@@ -123,14 +123,14 @@ jobs:
|
|
|
123
123
|
python xarray/util/print_versions.py
|
|
124
124
|
- name: Install mypy
|
|
125
125
|
run: |
|
|
126
|
-
python -m pip install "mypy
|
|
126
|
+
python -m pip install "mypy" --force-reinstall
|
|
127
127
|
|
|
128
128
|
- name: Run mypy
|
|
129
129
|
run: |
|
|
130
|
-
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
|
|
130
|
+
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
|
|
131
131
|
|
|
132
132
|
- name: Upload mypy coverage to Codecov
|
|
133
|
-
uses: codecov/codecov-action@v4.
|
|
133
|
+
uses: codecov/codecov-action@v4.5.0
|
|
134
134
|
with:
|
|
135
135
|
file: mypy_report/cobertura.xml
|
|
136
136
|
flags: mypy
|
|
@@ -138,8 +138,8 @@ jobs:
|
|
|
138
138
|
name: codecov-umbrella
|
|
139
139
|
fail_ci_if_error: false
|
|
140
140
|
|
|
141
|
-
|
|
142
|
-
name: Mypy 3.
|
|
141
|
+
mypy-min:
|
|
142
|
+
name: Mypy 3.10
|
|
143
143
|
runs-on: "ubuntu-latest"
|
|
144
144
|
needs: detect-ci-trigger
|
|
145
145
|
defaults:
|
|
@@ -147,7 +147,7 @@ jobs:
|
|
|
147
147
|
shell: bash -l {0}
|
|
148
148
|
env:
|
|
149
149
|
CONDA_ENV_FILE: ci/requirements/environment.yml
|
|
150
|
-
PYTHON_VERSION: "3.
|
|
150
|
+
PYTHON_VERSION: "3.10"
|
|
151
151
|
|
|
152
152
|
steps:
|
|
153
153
|
- uses: actions/checkout@v4
|
|
@@ -177,32 +177,30 @@ jobs:
|
|
|
177
177
|
python xarray/util/print_versions.py
|
|
178
178
|
- name: Install mypy
|
|
179
179
|
run: |
|
|
180
|
-
python -m pip install "mypy
|
|
180
|
+
python -m pip install "mypy" --force-reinstall
|
|
181
181
|
|
|
182
182
|
- name: Run mypy
|
|
183
183
|
run: |
|
|
184
|
-
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
|
|
184
|
+
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
|
|
185
185
|
|
|
186
186
|
- name: Upload mypy coverage to Codecov
|
|
187
|
-
uses: codecov/codecov-action@v4.
|
|
187
|
+
uses: codecov/codecov-action@v4.5.0
|
|
188
188
|
with:
|
|
189
189
|
file: mypy_report/cobertura.xml
|
|
190
|
-
flags:
|
|
190
|
+
flags: mypy-min
|
|
191
191
|
env_vars: PYTHON_VERSION
|
|
192
192
|
name: codecov-umbrella
|
|
193
193
|
fail_ci_if_error: false
|
|
194
194
|
|
|
195
|
-
|
|
196
|
-
|
|
197
195
|
pyright:
|
|
198
196
|
name: Pyright
|
|
199
197
|
runs-on: "ubuntu-latest"
|
|
200
198
|
needs: detect-ci-trigger
|
|
201
199
|
if: |
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
200
|
+
always()
|
|
201
|
+
&& (
|
|
202
|
+
contains( github.event.pull_request.labels.*.name, 'run-pyright')
|
|
203
|
+
)
|
|
206
204
|
defaults:
|
|
207
205
|
run:
|
|
208
206
|
shell: bash -l {0}
|
|
@@ -245,7 +243,7 @@ jobs:
|
|
|
245
243
|
python -m pyright xarray/
|
|
246
244
|
|
|
247
245
|
- name: Upload pyright coverage to Codecov
|
|
248
|
-
uses: codecov/codecov-action@v4.
|
|
246
|
+
uses: codecov/codecov-action@v4.5.0
|
|
249
247
|
with:
|
|
250
248
|
file: pyright_report/cobertura.xml
|
|
251
249
|
flags: pyright
|
|
@@ -254,20 +252,20 @@ jobs:
|
|
|
254
252
|
fail_ci_if_error: false
|
|
255
253
|
|
|
256
254
|
pyright39:
|
|
257
|
-
name: Pyright 3.
|
|
255
|
+
name: Pyright 3.10
|
|
258
256
|
runs-on: "ubuntu-latest"
|
|
259
257
|
needs: detect-ci-trigger
|
|
260
258
|
if: |
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
259
|
+
always()
|
|
260
|
+
&& (
|
|
261
|
+
contains( github.event.pull_request.labels.*.name, 'run-pyright')
|
|
262
|
+
)
|
|
265
263
|
defaults:
|
|
266
264
|
run:
|
|
267
265
|
shell: bash -l {0}
|
|
268
266
|
env:
|
|
269
267
|
CONDA_ENV_FILE: ci/requirements/environment.yml
|
|
270
|
-
PYTHON_VERSION: "3.
|
|
268
|
+
PYTHON_VERSION: "3.10"
|
|
271
269
|
|
|
272
270
|
steps:
|
|
273
271
|
- uses: actions/checkout@v4
|
|
@@ -304,7 +302,7 @@ jobs:
|
|
|
304
302
|
python -m pyright xarray/
|
|
305
303
|
|
|
306
304
|
- name: Upload pyright coverage to Codecov
|
|
307
|
-
uses: codecov/codecov-action@v4.
|
|
305
|
+
uses: codecov/codecov-action@v4.5.0
|
|
308
306
|
with:
|
|
309
307
|
file: pyright_report/cobertura.xml
|
|
310
308
|
flags: pyright39
|
|
@@ -312,8 +310,6 @@ jobs:
|
|
|
312
310
|
name: codecov-umbrella
|
|
313
311
|
fail_ci_if_error: false
|
|
314
312
|
|
|
315
|
-
|
|
316
|
-
|
|
317
313
|
min-version-policy:
|
|
318
314
|
name: Minimum Version Policy
|
|
319
315
|
runs-on: "ubuntu-latest"
|
|
@@ -47,15 +47,15 @@ jobs:
|
|
|
47
47
|
matrix:
|
|
48
48
|
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
|
|
49
49
|
# Bookend python versions
|
|
50
|
-
python-version: ["3.
|
|
50
|
+
python-version: ["3.10", "3.12"]
|
|
51
51
|
env: [""]
|
|
52
52
|
include:
|
|
53
53
|
# Minimum python version:
|
|
54
54
|
- env: "bare-minimum"
|
|
55
|
-
python-version: "3.
|
|
55
|
+
python-version: "3.10"
|
|
56
56
|
os: ubuntu-latest
|
|
57
57
|
- env: "min-all-deps"
|
|
58
|
-
python-version: "3.
|
|
58
|
+
python-version: "3.10"
|
|
59
59
|
os: ubuntu-latest
|
|
60
60
|
# Latest python version:
|
|
61
61
|
- env: "all-but-dask"
|
|
@@ -159,7 +159,7 @@ jobs:
|
|
|
159
159
|
path: pytest.xml
|
|
160
160
|
|
|
161
161
|
- name: Upload code coverage to Codecov
|
|
162
|
-
uses: codecov/codecov-action@v4.
|
|
162
|
+
uses: codecov/codecov-action@v4.5.0
|
|
163
163
|
with:
|
|
164
164
|
file: ./coverage.xml
|
|
165
165
|
flags: unittests
|
|
@@ -20,7 +20,7 @@ jobs:
|
|
|
20
20
|
runs-on: ubuntu-latest
|
|
21
21
|
if: |
|
|
22
22
|
github.repository == 'pydata/xarray'
|
|
23
|
-
&& (github.event_name == 'push' || github.event_name == 'pull_request')
|
|
23
|
+
&& (github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule')
|
|
24
24
|
outputs:
|
|
25
25
|
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
|
|
26
26
|
steps:
|
|
@@ -88,7 +88,7 @@ jobs:
|
|
|
88
88
|
path: dist
|
|
89
89
|
- name: Publish package to TestPyPI
|
|
90
90
|
if: github.event_name == 'push'
|
|
91
|
-
uses: pypa/gh-action-pypi-publish@v1.
|
|
91
|
+
uses: pypa/gh-action-pypi-publish@v1.10.1
|
|
92
92
|
with:
|
|
93
93
|
repository_url: https://test.pypi.org/legacy/
|
|
94
94
|
verbose: true
|
|
@@ -111,6 +111,6 @@ jobs:
|
|
|
111
111
|
name: releases
|
|
112
112
|
path: dist
|
|
113
113
|
- name: Publish package to PyPI
|
|
114
|
-
uses: pypa/gh-action-pypi-publish@v1.
|
|
114
|
+
uses: pypa/gh-action-pypi-publish@v1.10.1
|
|
115
115
|
with:
|
|
116
116
|
verbose: true
|
|
@@ -146,7 +146,7 @@ jobs:
|
|
|
146
146
|
run: |
|
|
147
147
|
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
|
|
148
148
|
- name: Upload mypy coverage to Codecov
|
|
149
|
-
uses: codecov/codecov-action@v4.
|
|
149
|
+
uses: codecov/codecov-action@v4.5.0
|
|
150
150
|
with:
|
|
151
151
|
file: mypy_report/cobertura.xml
|
|
152
152
|
flags: mypy
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# https://pre-commit.com/
|
|
2
2
|
ci:
|
|
3
3
|
autoupdate_schedule: monthly
|
|
4
|
+
autoupdate_commit_msg: 'Update pre-commit hooks'
|
|
4
5
|
exclude: 'xarray/datatree_.*'
|
|
5
6
|
repos:
|
|
6
7
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
@@ -13,13 +14,13 @@ repos:
|
|
|
13
14
|
- id: mixed-line-ending
|
|
14
15
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
15
16
|
# Ruff version.
|
|
16
|
-
rev: 'v0.
|
|
17
|
+
rev: 'v0.6.3'
|
|
17
18
|
hooks:
|
|
18
19
|
- id: ruff
|
|
19
20
|
args: ["--fix", "--show-fixes"]
|
|
20
21
|
# https://github.com/python/black#version-control-integration
|
|
21
22
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
22
|
-
rev: 24.
|
|
23
|
+
rev: 24.8.0
|
|
23
24
|
hooks:
|
|
24
25
|
- id: black-jupyter
|
|
25
26
|
- repo: https://github.com/keewis/blackdoc
|
|
@@ -27,10 +28,10 @@ repos:
|
|
|
27
28
|
hooks:
|
|
28
29
|
- id: blackdoc
|
|
29
30
|
exclude: "generate_aggregations.py"
|
|
30
|
-
additional_dependencies: ["black==24.
|
|
31
|
+
additional_dependencies: ["black==24.8.0"]
|
|
31
32
|
- id: blackdoc-autoupdate-black
|
|
32
33
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
33
|
-
rev: v1.
|
|
34
|
+
rev: v1.11.2
|
|
34
35
|
hooks:
|
|
35
36
|
- id: mypy
|
|
36
37
|
# Copied from setup.cfg
|
|
@@ -41,7 +42,7 @@ repos:
|
|
|
41
42
|
additional_dependencies: [
|
|
42
43
|
# Type stubs
|
|
43
44
|
types-python-dateutil,
|
|
44
|
-
types-
|
|
45
|
+
types-setuptools,
|
|
45
46
|
types-PyYAML,
|
|
46
47
|
types-pytz,
|
|
47
48
|
typing-extensions>=4.1.0,
|
|
@@ -23,14 +23,13 @@ upstream https://github.com/pydata/xarray (push)
|
|
|
23
23
|
```sh
|
|
24
24
|
git fetch upstream --tags
|
|
25
25
|
```
|
|
26
|
-
|
|
26
|
+
Then run
|
|
27
27
|
```sh
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
This will return the total number of contributors:
|
|
31
|
-
```sh
|
|
32
|
-
git log "$(git tag --sort=v:refname | tail -1).." --format=%aN | sort -u | wc -l
|
|
28
|
+
python ci/release_contributors.py
|
|
33
29
|
```
|
|
30
|
+
(needs `gitpython` and `toolz` / `cytoolz`)
|
|
31
|
+
|
|
32
|
+
and copy the output.
|
|
34
33
|
3. Write a release summary: ~50 words describing the high level features. This
|
|
35
34
|
will be used in the release emails, tweets, GitHub release notes, etc.
|
|
36
35
|
4. Look over whats-new.rst and the docs. Make sure "What's New" is complete
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: xarray
|
|
3
|
-
Version: 2024.
|
|
3
|
+
Version: 2024.9.0
|
|
4
4
|
Summary: N-D labeled arrays and datasets in Python
|
|
5
5
|
Author-email: xarray Developers <xarray@googlegroups.com>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -15,17 +15,16 @@ Classifier: Operating System :: OS Independent
|
|
|
15
15
|
Classifier: Intended Audience :: Science/Research
|
|
16
16
|
Classifier: Programming Language :: Python
|
|
17
17
|
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
21
|
Classifier: Topic :: Scientific/Engineering
|
|
23
|
-
Requires-Python: >=3.
|
|
22
|
+
Requires-Python: >=3.10
|
|
24
23
|
Description-Content-Type: text/markdown
|
|
25
24
|
License-File: LICENSE
|
|
26
|
-
Requires-Dist: numpy>=1.
|
|
25
|
+
Requires-Dist: numpy>=1.24
|
|
27
26
|
Requires-Dist: packaging>=23.1
|
|
28
|
-
Requires-Dist: pandas>=2.
|
|
27
|
+
Requires-Dist: pandas>=2.1
|
|
29
28
|
Provides-Extra: accel
|
|
30
29
|
Requires-Dist: scipy; extra == "accel"
|
|
31
30
|
Requires-Dist: bottleneck; extra == "accel"
|
|
@@ -70,7 +69,7 @@ Requires-Dist: nc-time-axis; extra == "viz"
|
|
|
70
69
|
[](https://pypi.python.org/pypi/xarray/)
|
|
71
70
|
[](https://github.com/python/black)
|
|
72
71
|
[](http://mypy-lang.org/)
|
|
73
|
-
[](https://doi.org/10.5281/zenodo.11183201)
|
|
74
73
|
[](https://mybinder.org/v2/gh/pydata/xarray/main?urlpath=lab/tree/doc/examples/weather-data.ipynb)
|
|
75
74
|
[](https://twitter.com/xarray_dev)
|
|
76
75
|
|
|
@@ -109,15 +108,15 @@ provide a powerful and concise interface. For example:
|
|
|
109
108
|
|
|
110
109
|
- Apply operations over dimensions by name: `x.sum('time')`.
|
|
111
110
|
- Select values by label instead of integer location:
|
|
112
|
-
|
|
111
|
+
`x.loc['2014-01-01']` or `x.sel(time='2014-01-01')`.
|
|
113
112
|
- Mathematical operations (e.g., `x - y`) vectorize across multiple
|
|
114
|
-
|
|
113
|
+
dimensions (array broadcasting) based on dimension names, not shape.
|
|
115
114
|
- Flexible split-apply-combine operations with groupby:
|
|
116
|
-
|
|
115
|
+
`x.groupby('time.dayofyear').mean()`.
|
|
117
116
|
- Database like alignment based on coordinate labels that smoothly
|
|
118
|
-
|
|
117
|
+
handles missing values: `x, y = xr.align(x, y, join='outer')`.
|
|
119
118
|
- Keep track of arbitrary metadata in the form of a Python dictionary:
|
|
120
|
-
|
|
119
|
+
`x.attrs`.
|
|
121
120
|
|
|
122
121
|
## Documentation
|
|
123
122
|
|
|
@@ -136,12 +135,12 @@ page](https://docs.xarray.dev/en/stable/contributing.html).
|
|
|
136
135
|
## Get in touch
|
|
137
136
|
|
|
138
137
|
- Ask usage questions ("How do I?") on
|
|
139
|
-
|
|
138
|
+
[GitHub Discussions](https://github.com/pydata/xarray/discussions).
|
|
140
139
|
- Report bugs, suggest features or view the source code [on
|
|
141
|
-
|
|
140
|
+
GitHub](https://github.com/pydata/xarray).
|
|
142
141
|
- For less well defined questions or ideas, or to announce other
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
projects of interest to xarray users, use the [mailing
|
|
143
|
+
list](https://groups.google.com/forum/#!forum/xarray).
|
|
145
144
|
|
|
146
145
|
## NumFOCUS
|
|
147
146
|
|
|
@@ -177,7 +176,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you
|
|
|
177
176
|
may not use this file except in compliance with the License. You may
|
|
178
177
|
obtain a copy of the License at
|
|
179
178
|
|
|
180
|
-
|
|
179
|
+
<https://www.apache.org/licenses/LICENSE-2.0>
|
|
181
180
|
|
|
182
181
|
Unless required by applicable law or agreed to in writing, software
|
|
183
182
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://pypi.python.org/pypi/xarray/)
|
|
8
8
|
[](https://github.com/python/black)
|
|
9
9
|
[](http://mypy-lang.org/)
|
|
10
|
-
[](https://doi.org/10.5281/zenodo.11183201)
|
|
11
11
|
[](https://mybinder.org/v2/gh/pydata/xarray/main?urlpath=lab/tree/doc/examples/weather-data.ipynb)
|
|
12
12
|
[](https://twitter.com/xarray_dev)
|
|
13
13
|
|
|
@@ -46,15 +46,15 @@ provide a powerful and concise interface. For example:
|
|
|
46
46
|
|
|
47
47
|
- Apply operations over dimensions by name: `x.sum('time')`.
|
|
48
48
|
- Select values by label instead of integer location:
|
|
49
|
-
|
|
49
|
+
`x.loc['2014-01-01']` or `x.sel(time='2014-01-01')`.
|
|
50
50
|
- Mathematical operations (e.g., `x - y`) vectorize across multiple
|
|
51
|
-
|
|
51
|
+
dimensions (array broadcasting) based on dimension names, not shape.
|
|
52
52
|
- Flexible split-apply-combine operations with groupby:
|
|
53
|
-
|
|
53
|
+
`x.groupby('time.dayofyear').mean()`.
|
|
54
54
|
- Database like alignment based on coordinate labels that smoothly
|
|
55
|
-
|
|
55
|
+
handles missing values: `x, y = xr.align(x, y, join='outer')`.
|
|
56
56
|
- Keep track of arbitrary metadata in the form of a Python dictionary:
|
|
57
|
-
|
|
57
|
+
`x.attrs`.
|
|
58
58
|
|
|
59
59
|
## Documentation
|
|
60
60
|
|
|
@@ -73,12 +73,12 @@ page](https://docs.xarray.dev/en/stable/contributing.html).
|
|
|
73
73
|
## Get in touch
|
|
74
74
|
|
|
75
75
|
- Ask usage questions ("How do I?") on
|
|
76
|
-
|
|
76
|
+
[GitHub Discussions](https://github.com/pydata/xarray/discussions).
|
|
77
77
|
- Report bugs, suggest features or view the source code [on
|
|
78
|
-
|
|
78
|
+
GitHub](https://github.com/pydata/xarray).
|
|
79
79
|
- For less well defined questions or ideas, or to announce other
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
projects of interest to xarray users, use the [mailing
|
|
81
|
+
list](https://groups.google.com/forum/#!forum/xarray).
|
|
82
82
|
|
|
83
83
|
## NumFOCUS
|
|
84
84
|
|
|
@@ -114,7 +114,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you
|
|
|
114
114
|
may not use this file except in compliance with the License. You may
|
|
115
115
|
obtain a copy of the License at
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
<https://www.apache.org/licenses/LICENSE-2.0>
|
|
118
118
|
|
|
119
119
|
Unless required by applicable law or agreed to in writing, software
|
|
120
120
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import numpy as np
|
|
2
|
+
|
|
3
|
+
import xarray as xr
|
|
4
|
+
|
|
5
|
+
from . import parameterized
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@parameterized(["calendar"], [("standard", "noleap")])
|
|
9
|
+
class EncodeCFDatetime:
|
|
10
|
+
def setup(self, calendar):
|
|
11
|
+
self.units = "days since 2000-01-01"
|
|
12
|
+
self.dtype = np.dtype("int64")
|
|
13
|
+
self.times = xr.date_range(
|
|
14
|
+
"2000", freq="D", periods=10000, calendar=calendar
|
|
15
|
+
).values
|
|
16
|
+
|
|
17
|
+
def time_encode_cf_datetime(self, calendar):
|
|
18
|
+
xr.coding.times.encode_cf_datetime(self.times, self.units, calendar, self.dtype)
|
|
@@ -7,6 +7,8 @@ import numpy as np
|
|
|
7
7
|
import pandas as pd
|
|
8
8
|
|
|
9
9
|
import xarray as xr
|
|
10
|
+
from xarray.backends.api import open_datatree
|
|
11
|
+
from xarray.core.datatree import DataTree
|
|
10
12
|
|
|
11
13
|
from . import _skip_slow, parameterized, randint, randn, requires_dask
|
|
12
14
|
|
|
@@ -16,7 +18,6 @@ try:
|
|
|
16
18
|
except ImportError:
|
|
17
19
|
pass
|
|
18
20
|
|
|
19
|
-
|
|
20
21
|
os.environ["HDF5_USE_FILE_LOCKING"] = "FALSE"
|
|
21
22
|
|
|
22
23
|
_ENGINES = tuple(xr.backends.list_engines().keys() - {"store"})
|
|
@@ -469,6 +470,116 @@ def create_delayed_write():
|
|
|
469
470
|
return ds.to_netcdf("file.nc", engine="netcdf4", compute=False)
|
|
470
471
|
|
|
471
472
|
|
|
473
|
+
class IONestedDataTree:
|
|
474
|
+
"""
|
|
475
|
+
A few examples that benchmark reading/writing a heavily nested netCDF datatree with
|
|
476
|
+
xarray
|
|
477
|
+
"""
|
|
478
|
+
|
|
479
|
+
timeout = 300.0
|
|
480
|
+
repeat = 1
|
|
481
|
+
number = 5
|
|
482
|
+
|
|
483
|
+
def make_datatree(self, nchildren=10):
|
|
484
|
+
# multiple Dataset
|
|
485
|
+
self.ds = xr.Dataset()
|
|
486
|
+
self.nt = 1000
|
|
487
|
+
self.nx = 90
|
|
488
|
+
self.ny = 45
|
|
489
|
+
self.nchildren = nchildren
|
|
490
|
+
|
|
491
|
+
self.block_chunks = {
|
|
492
|
+
"time": self.nt / 4,
|
|
493
|
+
"lon": self.nx / 3,
|
|
494
|
+
"lat": self.ny / 3,
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
self.time_chunks = {"time": int(self.nt / 36)}
|
|
498
|
+
|
|
499
|
+
times = pd.date_range("1970-01-01", periods=self.nt, freq="D")
|
|
500
|
+
lons = xr.DataArray(
|
|
501
|
+
np.linspace(0, 360, self.nx),
|
|
502
|
+
dims=("lon",),
|
|
503
|
+
attrs={"units": "degrees east", "long_name": "longitude"},
|
|
504
|
+
)
|
|
505
|
+
lats = xr.DataArray(
|
|
506
|
+
np.linspace(-90, 90, self.ny),
|
|
507
|
+
dims=("lat",),
|
|
508
|
+
attrs={"units": "degrees north", "long_name": "latitude"},
|
|
509
|
+
)
|
|
510
|
+
self.ds["foo"] = xr.DataArray(
|
|
511
|
+
randn((self.nt, self.nx, self.ny), frac_nan=0.2),
|
|
512
|
+
coords={"lon": lons, "lat": lats, "time": times},
|
|
513
|
+
dims=("time", "lon", "lat"),
|
|
514
|
+
name="foo",
|
|
515
|
+
attrs={"units": "foo units", "description": "a description"},
|
|
516
|
+
)
|
|
517
|
+
self.ds["bar"] = xr.DataArray(
|
|
518
|
+
randn((self.nt, self.nx, self.ny), frac_nan=0.2),
|
|
519
|
+
coords={"lon": lons, "lat": lats, "time": times},
|
|
520
|
+
dims=("time", "lon", "lat"),
|
|
521
|
+
name="bar",
|
|
522
|
+
attrs={"units": "bar units", "description": "a description"},
|
|
523
|
+
)
|
|
524
|
+
self.ds["baz"] = xr.DataArray(
|
|
525
|
+
randn((self.nx, self.ny), frac_nan=0.2).astype(np.float32),
|
|
526
|
+
coords={"lon": lons, "lat": lats},
|
|
527
|
+
dims=("lon", "lat"),
|
|
528
|
+
name="baz",
|
|
529
|
+
attrs={"units": "baz units", "description": "a description"},
|
|
530
|
+
)
|
|
531
|
+
|
|
532
|
+
self.ds.attrs = {"history": "created for xarray benchmarking"}
|
|
533
|
+
|
|
534
|
+
self.oinds = {
|
|
535
|
+
"time": randint(0, self.nt, 120),
|
|
536
|
+
"lon": randint(0, self.nx, 20),
|
|
537
|
+
"lat": randint(0, self.ny, 10),
|
|
538
|
+
}
|
|
539
|
+
self.vinds = {
|
|
540
|
+
"time": xr.DataArray(randint(0, self.nt, 120), dims="x"),
|
|
541
|
+
"lon": xr.DataArray(randint(0, self.nx, 120), dims="x"),
|
|
542
|
+
"lat": slice(3, 20),
|
|
543
|
+
}
|
|
544
|
+
root = {f"group_{group}": self.ds for group in range(self.nchildren)}
|
|
545
|
+
nested_tree1 = {
|
|
546
|
+
f"group_{group}/subgroup_1": xr.Dataset() for group in range(self.nchildren)
|
|
547
|
+
}
|
|
548
|
+
nested_tree2 = {
|
|
549
|
+
f"group_{group}/subgroup_2": xr.DataArray(np.arange(1, 10)).to_dataset(
|
|
550
|
+
name="a"
|
|
551
|
+
)
|
|
552
|
+
for group in range(self.nchildren)
|
|
553
|
+
}
|
|
554
|
+
nested_tree3 = {
|
|
555
|
+
f"group_{group}/subgroup_2/sub-subgroup_1": self.ds
|
|
556
|
+
for group in range(self.nchildren)
|
|
557
|
+
}
|
|
558
|
+
dtree = root | nested_tree1 | nested_tree2 | nested_tree3
|
|
559
|
+
self.dtree = DataTree.from_dict(dtree)
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
class IOReadDataTreeNetCDF4(IONestedDataTree):
|
|
563
|
+
def setup(self):
|
|
564
|
+
# TODO: Lazily skipped in CI as it is very demanding and slow.
|
|
565
|
+
# Improve times and remove errors.
|
|
566
|
+
_skip_slow()
|
|
567
|
+
|
|
568
|
+
requires_dask()
|
|
569
|
+
|
|
570
|
+
self.make_datatree()
|
|
571
|
+
self.format = "NETCDF4"
|
|
572
|
+
self.filepath = "datatree.nc4.nc"
|
|
573
|
+
dtree = self.dtree
|
|
574
|
+
dtree.to_netcdf(filepath=self.filepath)
|
|
575
|
+
|
|
576
|
+
def time_load_datatree_netcdf4(self):
|
|
577
|
+
open_datatree(self.filepath, engine="netcdf4").load()
|
|
578
|
+
|
|
579
|
+
def time_open_datatree_netcdf4(self):
|
|
580
|
+
open_datatree(self.filepath, engine="netcdf4")
|
|
581
|
+
|
|
582
|
+
|
|
472
583
|
class IOWriteNetCDFDask:
|
|
473
584
|
timeout = 60
|
|
474
585
|
repeat = 1
|
|
@@ -613,7 +724,7 @@ class IOReadCustomEngine:
|
|
|
613
724
|
def open_dataset(
|
|
614
725
|
self,
|
|
615
726
|
filename_or_obj: str | os.PathLike | None,
|
|
616
|
-
drop_variables: tuple[str] = None,
|
|
727
|
+
drop_variables: tuple[str, ...] = None,
|
|
617
728
|
*,
|
|
618
729
|
mask_and_scale=True,
|
|
619
730
|
decode_times=True,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import xarray as xr
|
|
2
|
+
from xarray.core.datatree import DataTree
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Datatree:
|
|
6
|
+
def setup(self):
|
|
7
|
+
run1 = DataTree.from_dict({"run1": xr.Dataset({"a": 1})})
|
|
8
|
+
self.d_few = {"run1": run1}
|
|
9
|
+
self.d_many = {f"run{i}": xr.Dataset({"a": 1}) for i in range(100)}
|
|
10
|
+
|
|
11
|
+
def time_from_dict_few(self):
|
|
12
|
+
DataTree.from_dict(self.d_few)
|
|
13
|
+
|
|
14
|
+
def time_from_dict_many(self):
|
|
15
|
+
DataTree.from_dict(self.d_many)
|