xarray 2025.6.1__tar.gz → 2025.7.1__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-2025.6.1 → xarray-2025.7.1}/.binder/environment.yml +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/workflows/benchmarks.yml +2 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/workflows/ci-additional.yaml +4 -4
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/workflows/ci.yaml +7 -4
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/workflows/pypi-release.yaml +9 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/.pre-commit-config.yaml +6 -7
- xarray-2025.7.1/CODE_OF_CONDUCT.md +23 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/HOW_TO_RELEASE.md +8 -6
- {xarray-2025.6.1/xarray.egg-info → xarray-2025.7.1}/PKG-INFO +15 -16
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/asv.conf.json +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/README_CI.md +2 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/dataset_io.py +1 -7
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/repr.py +28 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/ci/release_contributors.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/ci/requirements/all-but-dask.yml +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/ci/requirements/all-but-numba.yml +2 -2
- xarray-2025.7.1/ci/requirements/bare-min-and-scipy.yml +18 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/ci/requirements/bare-minimum.yml +4 -4
- {xarray-2025.6.1 → xarray-2025.7.1}/ci/requirements/doc.yml +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/ci/requirements/environment-3.14.yml +1 -1
- xarray-2025.7.1/ci/requirements/environment-benchmark.yml +23 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/ci/requirements/environment-windows-3.14.yml +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/ci/requirements/environment-windows.yml +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/ci/requirements/environment.yml +2 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/ci/requirements/min-all-deps.yml +23 -28
- {xarray-2025.6.1 → xarray-2025.7.1}/design_notes/flexible_indexes_notes.md +11 -9
- {xarray-2025.6.1 → xarray-2025.7.1}/design_notes/grouper_objects.md +5 -3
- {xarray-2025.6.1 → xarray-2025.7.1}/design_notes/named_array_design_doc.md +90 -97
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/api-hidden.rst +0 -16
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/api.rst +61 -14
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/contribute/contributing.rst +3 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/contribute/index.rst +5 -4
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/getting-started-guide/installing.rst +4 -4
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/index.rst +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/ecosystem.rst +1 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/whats-new.rst +183 -8
- {xarray-2025.6.1 → xarray-2025.7.1}/properties/test_index_manipulation.py +0 -4
- {xarray-2025.6.1 → xarray-2025.7.1}/pyproject.toml +36 -10
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/__init__.py +2 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/api.py +66 -11
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/chunks.py +4 -4
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/common.py +22 -11
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/h5netcdf_.py +2 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/memory.py +7 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/netCDF4_.py +15 -10
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/netcdf3.py +2 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/pydap_.py +6 -5
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/scipy_.py +3 -3
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/store.py +15 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/zarr.py +19 -4
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/coding/cftime_offsets.py +6 -10
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/coding/cftimeindex.py +2 -4
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/coding/common.py +4 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/coding/strings.py +39 -9
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/coding/times.py +68 -88
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/coding/variables.py +18 -15
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/computation/apply_ufunc.py +12 -8
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/computation/computation.py +1 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/computation/fit.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/computation/nanops.py +1 -3
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/computation/rolling.py +5 -9
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/conventions.py +17 -3
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/accessor_dt.py +1 -6
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/accessor_str.py +5 -4
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/common.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/coordinate_transform.py +4 -3
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/coordinates.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/dataarray.py +6 -6
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/dataset.py +26 -15
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/datatree.py +2 -3
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/datatree_mapping.py +4 -9
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/duck_array_ops.py +3 -7
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/extension_array.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/formatting.py +25 -16
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/formatting_html.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/groupby.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/indexes.py +12 -9
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/indexing.py +73 -146
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/options.py +8 -8
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/resample_cftime.py +10 -16
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/treenode.py +3 -3
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/types.py +13 -27
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/utils.py +10 -10
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/variable.py +9 -4
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/groupers.py +10 -16
- xarray-2025.7.1/xarray/indexes/__init__.py +25 -0
- xarray-2025.7.1/xarray/indexes/nd_point_index.py +398 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/indexes/range_index.py +5 -9
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/namedarray/_typing.py +2 -6
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/namedarray/core.py +3 -6
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/plot/dataarray_plot.py +2 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/plot/dataset_plot.py +2 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/plot/facetgrid.py +8 -8
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/plot/utils.py +14 -19
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/structure/alignment.py +12 -7
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/structure/chunks.py +2 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/structure/combine.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/structure/concat.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/structure/merge.py +2 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/testing/assertions.py +18 -6
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/__init__.py +14 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/conftest.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_assertions.py +13 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_backends.py +171 -24
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_backends_api.py +36 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_backends_common.py +17 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_backends_datatree.py +1 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_cftime_offsets.py +3 -3
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_coding.py +2 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_coding_strings.py +39 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_coding_times.py +86 -51
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_computation.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_conventions.py +2 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_coordinate_transform.py +11 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_dask.py +4 -3
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_dataarray.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_dataset.py +14 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_datatree.py +3 -4
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_duck_array_ops.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_formatting.py +67 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_groupby.py +2 -5
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_indexes.py +51 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_interp.py +3 -3
- xarray-2025.7.1/xarray/tests/test_nd_point_index.py +183 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_plot.py +5 -5
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_plugins.py +3 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_range_index.py +23 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_rolling.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_units.py +4 -6
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_utils.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tutorial.py +3 -3
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/ufuncs.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/util/generate_aggregations.py +1 -2
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/util/generate_ops.py +28 -27
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/util/print_versions.py +1 -1
- {xarray-2025.6.1 → xarray-2025.7.1/xarray.egg-info}/PKG-INFO +15 -16
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray.egg-info/SOURCES.txt +4 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray.egg-info/requires.txt +13 -15
- xarray-2025.6.1/CODE_OF_CONDUCT.md +0 -46
- xarray-2025.6.1/xarray/indexes/__init__.py +0 -13
- {xarray-2025.6.1 → xarray-2025.7.1}/.codecov.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.git-blame-ignore-revs +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.git_archival.txt +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.gitattributes +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/FUNDING.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/ISSUE_TEMPLATE/bugreport.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/ISSUE_TEMPLATE/misc.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/ISSUE_TEMPLATE/newfeature.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/config.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/dependabot.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/labeler.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/release.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/stale.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/workflows/benchmarks-last-release.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/workflows/configure-testpypi-version.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/workflows/hypothesis.yaml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/workflows/label-prs.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/workflows/nightly-wheels.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/workflows/publish-test-results.yaml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.github/workflows/upstream-dev-ci.yaml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.gitignore +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/.readthedocs.yaml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/CITATION.cff +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/CONTRIBUTING.md +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/CORE_TEAM_GUIDE.md +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/DATATREE_MIGRATION_GUIDE.md +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/LICENSE +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/README.md +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/accessors.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/alignment.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/coding.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/combine.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/dataarray_missing.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/dataset.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/datatree.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/groupby.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/import.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/indexing.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/interp.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/merge.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/pandas.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/polyfit.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/reindexing.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/renaming.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/rolling.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/asv_bench/benchmarks/unstacking.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/ci/install-upstream-wheels.sh +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/ci/minimum_versions.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/conftest.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/Makefile +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/README.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/.gitignore +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/advanced_selection_interpolation.svg +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/ci.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/dask-array.svg +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/dataset-diagram.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/index_api.svg +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/index_contribute.svg +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/index_getting_started.svg +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/index_user_guide.svg +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/logos/Xarray_Icon_Final.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/logos/Xarray_Icon_Final.svg +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.svg +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/logos/Xarray_Logo_RGB_Final.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/logos/Xarray_Logo_RGB_Final.svg +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/numfocus_logo.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/opendap-prism-tmax.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/style.css +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/thumbnails/ERA5-GRIB-example.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/thumbnails/ROMS_ocean_model.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/thumbnails/area_weighted_temperature.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/thumbnails/monthly-means.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/thumbnails/multidimensional-coords.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/thumbnails/toy-weather-data.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/thumbnails/visualization_gallery.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_static/view-docs.png +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_templates/autosummary/accessor.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_templates/autosummary/accessor_attribute.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_templates/autosummary/accessor_callable.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/_templates/autosummary/accessor_method.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/combined.json +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/conf.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/contribute/developers-meeting.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/examples/ERA5-GRIB-example.ipynb +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/examples/ROMS_ocean_model.ipynb +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/examples/_code/accessor_example.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/examples/apply_ufunc_vectorize_1d.ipynb +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/examples/area_weighted_temperature.ipynb +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/examples/blank_template.ipynb +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/examples/monthly-means.ipynb +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/examples/multidimensional-coords.ipynb +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/examples/visualization_gallery.ipynb +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/examples/weather-data.ipynb +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/gallery/README.txt +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/gallery/plot_cartopy_facetgrid.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/gallery/plot_colorbar_center.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/gallery/plot_control_colorbar.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/gallery/plot_lines_from_2d.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/gallery.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/gallery.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/get-help/faq.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/get-help/help-diagram.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/get-help/howdoi.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/get-help/socials.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/getting-started-guide/index.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/getting-started-guide/quick-overview.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/getting-started-guide/tutorials-and-videos.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/getting-started-guide/why-xarray.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/internals/chunked-arrays.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/internals/duck-arrays-integration.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/internals/extending-xarray.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/internals/how-to-add-new-backend.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/internals/how-to-create-custom-index.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/internals/index.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/internals/internal-design.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/internals/interoperability.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/internals/time-coding.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/internals/zarr-encoding-spec.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/roadmap.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/combining.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/complex-numbers.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/computation.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/dask.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/data-structures.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/duckarrays.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/groupby.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/hierarchical-data.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/index.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/indexing.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/interpolation.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/io.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/options.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/pandas.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/plotting.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/reshaping.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/terminology.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/testing.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/time-series.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/user-guide/weather-climate.rst +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/doc/videos.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/licenses/ANYTREE_LICENSE +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/licenses/DASK_LICENSE +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/licenses/ICOMOON_LICENSE +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/licenses/NUMPY_LICENSE +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/licenses/PANDAS_LICENSE +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/licenses/PYTHON_LICENSE +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/licenses/SCIKIT_LEARN_LICENSE +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/licenses/SEABORN_LICENSE +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/properties/README.md +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/properties/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/properties/conftest.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/properties/test_encode_decode.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/properties/test_pandas_roundtrip.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/properties/test_properties.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/setup.cfg +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/setup.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/file_manager.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/locks.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/lru_cache.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/backends/plugins.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/coders.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/coding/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/coding/calendar_ops.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/coding/frequencies.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/compat/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/compat/array_api_compat.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/compat/dask_array_compat.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/compat/dask_array_ops.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/compat/npcompat.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/compat/pdcompat.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/compat/toolzcompat.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/computation/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/computation/arithmetic.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/computation/ops.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/computation/rolling_exp.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/computation/weighted.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/convert.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/_aggregations.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/_typed_ops.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/dataset_utils.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/dataset_variables.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/datatree_io.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/datatree_render.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/dtypes.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/extensions.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/missing.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/nputils.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/parallel.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/core/resample.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/namedarray/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/namedarray/_aggregations.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/namedarray/_array_api.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/namedarray/daskmanager.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/namedarray/dtypes.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/namedarray/parallelcompat.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/namedarray/pycompat.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/namedarray/utils.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/plot/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/plot/accessor.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/py.typed +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/static/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/static/css/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/static/css/style.css +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/static/html/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/static/html/icons-svg-inline.html +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/structure/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/testing/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/testing/strategies.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/arrays.py +4 -4
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/data/bears.nc +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/data/example.grib +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/data/example.ict +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/data/example.uamiv +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/data/example_1.nc +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/data/example_1.nc.gz +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/indexes.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/namespace.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_accessor_dt.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_accessor_str.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_array_api.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_backends_chunks.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_backends_file_manager.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_backends_locks.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_backends_lru_cache.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_calendar_ops.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_cftimeindex.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_cftimeindex_resample.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_coarsen.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_combine.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_concat.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_coordinates.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_cupy.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_dataarray_typing.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_dataset_typing.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_datatree_mapping.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_datatree_typing.yml +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_deprecation_helpers.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_distributed.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_dtypes.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_duck_array_wrapping.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_error_messages.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_extensions.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_formatting_html.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_hashable.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_indexing.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_merge.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_missing.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_namedarray.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_nputils.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_options.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_pandas_to_xarray.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_parallelcompat.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_print_versions.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_sparse.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_strategies.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_treenode.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_tutorial.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_typed_ops.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_ufuncs.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_variable.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/tests/test_weighted.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/typing.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/util/__init__.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray/util/deprecation_helpers.py +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray.egg-info/dependency_links.txt +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray.egg-info/entry_points.txt +0 -0
- {xarray-2025.6.1 → xarray-2025.7.1}/xarray.egg-info/top_level.txt +0 -0
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
runs-on: ubuntu-latest
|
|
16
16
|
env:
|
|
17
17
|
ASV_DIR: "./asv_bench"
|
|
18
|
-
CONDA_ENV_FILE: ci/requirements/environment.yml
|
|
18
|
+
CONDA_ENV_FILE: ci/requirements/environment-benchmark.yml
|
|
19
19
|
|
|
20
20
|
steps:
|
|
21
21
|
# We need the full repo to avoid this issue
|
|
@@ -29,7 +29,7 @@ jobs:
|
|
|
29
29
|
with:
|
|
30
30
|
micromamba-version: "1.5.10-0"
|
|
31
31
|
environment-file: ${{env.CONDA_ENV_FILE}}
|
|
32
|
-
environment-name: xarray-
|
|
32
|
+
environment-name: xarray-benchmark
|
|
33
33
|
cache-environment: true
|
|
34
34
|
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}-benchmark"
|
|
35
35
|
# add "build" because of https://github.com/airspeed-velocity/asv/issues/1385
|
|
@@ -132,7 +132,7 @@ jobs:
|
|
|
132
132
|
fail_ci_if_error: false
|
|
133
133
|
|
|
134
134
|
mypy-min:
|
|
135
|
-
name: Mypy 3.
|
|
135
|
+
name: Mypy 3.11
|
|
136
136
|
runs-on: "ubuntu-latest"
|
|
137
137
|
needs: detect-ci-trigger
|
|
138
138
|
defaults:
|
|
@@ -140,7 +140,7 @@ jobs:
|
|
|
140
140
|
shell: bash -l {0}
|
|
141
141
|
env:
|
|
142
142
|
CONDA_ENV_FILE: ci/requirements/environment.yml
|
|
143
|
-
PYTHON_VERSION: "3.
|
|
143
|
+
PYTHON_VERSION: "3.11"
|
|
144
144
|
|
|
145
145
|
steps:
|
|
146
146
|
- uses: actions/checkout@v4
|
|
@@ -239,7 +239,7 @@ jobs:
|
|
|
239
239
|
fail_ci_if_error: false
|
|
240
240
|
|
|
241
241
|
pyright39:
|
|
242
|
-
name: Pyright 3.
|
|
242
|
+
name: Pyright 3.11
|
|
243
243
|
runs-on: "ubuntu-latest"
|
|
244
244
|
needs: detect-ci-trigger
|
|
245
245
|
if: |
|
|
@@ -252,7 +252,7 @@ jobs:
|
|
|
252
252
|
shell: bash -l {0}
|
|
253
253
|
env:
|
|
254
254
|
CONDA_ENV_FILE: ci/requirements/environment.yml
|
|
255
|
-
PYTHON_VERSION: "3.
|
|
255
|
+
PYTHON_VERSION: "3.11"
|
|
256
256
|
|
|
257
257
|
steps:
|
|
258
258
|
- uses: actions/checkout@v4
|
|
@@ -47,15 +47,18 @@ 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.11", "3.13"]
|
|
51
51
|
env: [""]
|
|
52
52
|
include:
|
|
53
53
|
# Minimum python version:
|
|
54
54
|
- env: "bare-minimum"
|
|
55
|
-
python-version: "3.
|
|
55
|
+
python-version: "3.11"
|
|
56
|
+
os: ubuntu-latest
|
|
57
|
+
- env: "bare-min-and-scipy"
|
|
58
|
+
python-version: "3.11"
|
|
56
59
|
os: ubuntu-latest
|
|
57
60
|
- env: "min-all-deps"
|
|
58
|
-
python-version: "3.
|
|
61
|
+
python-version: "3.11"
|
|
59
62
|
os: ubuntu-latest
|
|
60
63
|
# Latest python version:
|
|
61
64
|
- env: "all-but-numba"
|
|
@@ -70,7 +73,7 @@ jobs:
|
|
|
70
73
|
# The mypy tests must be executed using only 1 process in order to guarantee
|
|
71
74
|
# predictable mypy output messages for comparison to expectations.
|
|
72
75
|
- env: "mypy"
|
|
73
|
-
python-version: "3.
|
|
76
|
+
python-version: "3.11"
|
|
74
77
|
numprocesses: 1
|
|
75
78
|
os: ubuntu-latest
|
|
76
79
|
- env: "mypy"
|
|
@@ -6,11 +6,19 @@ on:
|
|
|
6
6
|
push:
|
|
7
7
|
tags:
|
|
8
8
|
- "v*"
|
|
9
|
+
pull_request:
|
|
10
|
+
types: [opened, reopened, synchronize, labeled]
|
|
11
|
+
workflow_dispatch:
|
|
9
12
|
|
|
10
13
|
jobs:
|
|
11
14
|
build-artifacts:
|
|
12
15
|
runs-on: ubuntu-latest
|
|
13
|
-
if: github.repository == 'pydata/xarray'
|
|
16
|
+
if: ${{ github.repository == 'pydata/xarray' && (
|
|
17
|
+
(contains(github.event.pull_request.labels.*.name, 'Release') && github.event_name == 'pull_request') ||
|
|
18
|
+
github.event_name == 'release' ||
|
|
19
|
+
github.event_name == 'workflow_dispatch' ||
|
|
20
|
+
startsWith(github.ref, 'refs/tags/v')
|
|
21
|
+
) }}
|
|
14
22
|
steps:
|
|
15
23
|
- uses: actions/checkout@v4
|
|
16
24
|
with:
|
|
@@ -64,7 +72,6 @@ jobs:
|
|
|
64
72
|
ls -ltrh dist
|
|
65
73
|
|
|
66
74
|
- name: Verify the built dist/wheel is valid
|
|
67
|
-
if: github.event_name == 'push'
|
|
68
75
|
run: |
|
|
69
76
|
python -m pip install --upgrade pip
|
|
70
77
|
python -m pip install dist/xarray*.whl
|
|
@@ -24,25 +24,24 @@ repos:
|
|
|
24
24
|
- id: rst-inline-touching-normal
|
|
25
25
|
- id: text-unicode-replacement-char
|
|
26
26
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
27
|
-
|
|
28
|
-
rev: v0.11.12
|
|
27
|
+
rev: v0.12.2
|
|
29
28
|
hooks:
|
|
30
|
-
- id: ruff-
|
|
31
|
-
- id: ruff
|
|
29
|
+
- id: ruff-check
|
|
32
30
|
args: ["--fix", "--show-fixes"]
|
|
31
|
+
- id: ruff-format
|
|
33
32
|
- repo: https://github.com/keewis/blackdoc
|
|
34
|
-
rev: v0.
|
|
33
|
+
rev: v0.4.1
|
|
35
34
|
hooks:
|
|
36
35
|
- id: blackdoc
|
|
37
36
|
exclude: "generate_aggregations.py"
|
|
38
37
|
additional_dependencies: ["black==24.8.0"]
|
|
39
38
|
- repo: https://github.com/rbubley/mirrors-prettier
|
|
40
|
-
rev: v3.
|
|
39
|
+
rev: v3.6.2
|
|
41
40
|
hooks:
|
|
42
41
|
- id: prettier
|
|
43
42
|
args: [--cache-location=.prettier_cache/cache]
|
|
44
43
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
45
|
-
rev: v1.16.
|
|
44
|
+
rev: v1.16.1
|
|
46
45
|
hooks:
|
|
47
46
|
- id: mypy
|
|
48
47
|
# Copied from setup.cfg
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# NUMFOCUS CODE OF CONDUCT
|
|
2
|
+
|
|
3
|
+
You can find the full Code of Conduct on the NumFOCUS website: https://numfocus.org/code-of-conduct
|
|
4
|
+
|
|
5
|
+
## THE SHORT VERSION
|
|
6
|
+
|
|
7
|
+
NumFOCUS is dedicated to providing a harassment-free community for everyone, regardless of gender, sexual orientation, gender identity and expression, disability, physical appearance, body size, race, or religion. We do not tolerate harassment of community members in any form.
|
|
8
|
+
|
|
9
|
+
Be kind to others. Do not insult or put down others. Behave professionally. Remember that harassment and sexist, racist, or exclusionary jokes are not appropriate for NumFOCUS.
|
|
10
|
+
|
|
11
|
+
All communication should be appropriate for a professional audience including people of many different backgrounds. Sexual language and imagery is not appropriate.
|
|
12
|
+
|
|
13
|
+
Thank you for helping make this a welcoming, friendly community for all.
|
|
14
|
+
|
|
15
|
+
## HOW TO REPORT
|
|
16
|
+
|
|
17
|
+
If you feel that the Code of Conduct has been violated, feel free to submit a report, by using the form: [NumFOCUS Code of Conduct Reporting Form](https://numfocus.typeform.com/to/ynjGdT?typeform-source=numfocus.org)
|
|
18
|
+
|
|
19
|
+
## WHO WILL RECEIVE YOUR REPORT
|
|
20
|
+
|
|
21
|
+
Your report will be received and handled by NumFOCUS Code of Conduct Working Group; trained, and experienced contributors with diverse backgrounds. The group is making decisions independently from the project, PyData, NumFOCUS or any other organization.
|
|
22
|
+
|
|
23
|
+
You can learn more about the current group members, as well as the reporting procedure here: https://numfocus.org/code-of-conduct
|
|
@@ -48,8 +48,11 @@ upstream https://github.com/pydata/xarray (push)
|
|
|
48
48
|
release.
|
|
49
49
|
5. Open a PR with the release summary and whatsnew changes; in particular the
|
|
50
50
|
release headline should get feedback from the team on what's important to include.
|
|
51
|
+
Apply the `Release` label to the PR to trigger a test build action.
|
|
52
|
+
|
|
51
53
|
6. After merging, again ensure your main branch is synced to upstream:
|
|
52
54
|
```sh
|
|
55
|
+
git switch main
|
|
53
56
|
git pull upstream main
|
|
54
57
|
```
|
|
55
58
|
7. If you have any doubts, run the full test suite one final time!
|
|
@@ -96,17 +99,17 @@ upstream https://github.com/pydata/xarray (push)
|
|
|
96
99
|
|
|
97
100
|
```
|
|
98
101
|
|
|
99
|
-
12.
|
|
102
|
+
12. Make a PR with these changes and merge it:
|
|
100
103
|
|
|
101
104
|
```sh
|
|
102
|
-
git
|
|
103
|
-
git
|
|
105
|
+
git checkout -b empty-whatsnew-YYYY.MM.X+1
|
|
106
|
+
git commit -am "empty whatsnew"
|
|
107
|
+
git push
|
|
104
108
|
```
|
|
105
109
|
|
|
106
|
-
|
|
110
|
+
(Note that repo branch restrictions prevent pushing to `main`, so you have to just-self-merge this.)
|
|
107
111
|
|
|
108
112
|
13. Update the version available on pyodide:
|
|
109
|
-
|
|
110
113
|
- Open the PyPI page for [Xarray downloads](https://pypi.org/project/xarray/#files)
|
|
111
114
|
- Edit [`pyodide/packages/xarray/meta.yaml`](https://github.com/pyodide/pyodide/blob/main/packages/xarray/meta.yaml) to update the
|
|
112
115
|
- version number
|
|
@@ -117,7 +120,6 @@ upstream https://github.com/pydata/xarray (push)
|
|
|
117
120
|
14. Issue the release announcement to mailing lists & Twitter (X). For bug fix releases, I
|
|
118
121
|
usually only email xarray@googlegroups.com. For major/feature releases, I will email a broader
|
|
119
122
|
list (no more than once every 3-6 months):
|
|
120
|
-
|
|
121
123
|
- pydata@googlegroups.com
|
|
122
124
|
- xarray@googlegroups.com
|
|
123
125
|
- numpy-discussion@scipy.org
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xarray
|
|
3
|
-
Version: 2025.
|
|
3
|
+
Version: 2025.7.1
|
|
4
4
|
Summary: N-D labeled arrays and datasets in Python
|
|
5
5
|
Author-email: xarray Developers <xarray@googlegroups.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -14,41 +14,40 @@ Classifier: Operating System :: OS Independent
|
|
|
14
14
|
Classifier: Intended Audience :: Science/Research
|
|
15
15
|
Classifier: Programming Language :: Python
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
21
20
|
Classifier: Topic :: Scientific/Engineering
|
|
22
|
-
Requires-Python: >=3.
|
|
21
|
+
Requires-Python: >=3.11
|
|
23
22
|
Description-Content-Type: text/markdown
|
|
24
23
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: numpy>=1.
|
|
26
|
-
Requires-Dist: packaging>=
|
|
27
|
-
Requires-Dist: pandas>=2.
|
|
24
|
+
Requires-Dist: numpy>=1.26
|
|
25
|
+
Requires-Dist: packaging>=24.1
|
|
26
|
+
Requires-Dist: pandas>=2.2
|
|
28
27
|
Provides-Extra: accel
|
|
29
|
-
Requires-Dist: scipy; extra == "accel"
|
|
28
|
+
Requires-Dist: scipy>=1.13; extra == "accel"
|
|
30
29
|
Requires-Dist: bottleneck; extra == "accel"
|
|
31
|
-
Requires-Dist: numbagg; extra == "accel"
|
|
32
|
-
Requires-Dist: numba>=0.
|
|
33
|
-
Requires-Dist: flox; extra == "accel"
|
|
30
|
+
Requires-Dist: numbagg>=0.8; extra == "accel"
|
|
31
|
+
Requires-Dist: numba>=0.59; extra == "accel"
|
|
32
|
+
Requires-Dist: flox>=0.9; extra == "accel"
|
|
34
33
|
Requires-Dist: opt_einsum; extra == "accel"
|
|
35
34
|
Provides-Extra: complete
|
|
36
35
|
Requires-Dist: xarray[accel,etc,io,parallel,viz]; extra == "complete"
|
|
37
36
|
Provides-Extra: io
|
|
38
|
-
Requires-Dist: netCDF4; extra == "io"
|
|
37
|
+
Requires-Dist: netCDF4>=1.6.0; extra == "io"
|
|
39
38
|
Requires-Dist: h5netcdf; extra == "io"
|
|
40
|
-
Requires-Dist:
|
|
41
|
-
Requires-Dist:
|
|
42
|
-
Requires-Dist: zarr; extra == "io"
|
|
39
|
+
Requires-Dist: pydap; extra == "io"
|
|
40
|
+
Requires-Dist: scipy>=1.13; extra == "io"
|
|
41
|
+
Requires-Dist: zarr>=2.18; extra == "io"
|
|
43
42
|
Requires-Dist: fsspec; extra == "io"
|
|
44
43
|
Requires-Dist: cftime; extra == "io"
|
|
45
44
|
Requires-Dist: pooch; extra == "io"
|
|
46
45
|
Provides-Extra: etc
|
|
47
|
-
Requires-Dist: sparse; extra == "etc"
|
|
46
|
+
Requires-Dist: sparse>=0.15; extra == "etc"
|
|
48
47
|
Provides-Extra: parallel
|
|
49
48
|
Requires-Dist: dask[complete]; extra == "parallel"
|
|
50
49
|
Provides-Extra: viz
|
|
51
|
-
Requires-Dist: cartopy; extra == "viz"
|
|
50
|
+
Requires-Dist: cartopy>=0.23; extra == "viz"
|
|
52
51
|
Requires-Dist: matplotlib; extra == "viz"
|
|
53
52
|
Requires-Dist: nc-time-axis; extra == "viz"
|
|
54
53
|
Requires-Dist: seaborn; extra == "viz"
|
|
@@ -115,8 +115,10 @@ To minimize the time required to run the full suite, we trimmed the parameter ma
|
|
|
115
115
|
```python
|
|
116
116
|
from . import _skip_slow # this function is defined in benchmarks.__init__
|
|
117
117
|
|
|
118
|
+
|
|
118
119
|
def time_something_slow():
|
|
119
120
|
pass
|
|
120
121
|
|
|
122
|
+
|
|
121
123
|
time_something.setup = _skip_slow
|
|
122
124
|
```
|
|
@@ -678,13 +678,7 @@ class IOReadCustomEngine:
|
|
|
678
678
|
lock: xr.backends.locks.SerializableLock | None = None,
|
|
679
679
|
autoclose: bool = False,
|
|
680
680
|
):
|
|
681
|
-
|
|
682
|
-
if mode == "r":
|
|
683
|
-
locker = xr.backends.locks.SerializableLock()
|
|
684
|
-
else:
|
|
685
|
-
locker = xr.backends.locks.SerializableLock()
|
|
686
|
-
else:
|
|
687
|
-
locker = lock
|
|
681
|
+
locker = lock or xr.backends.locks.SerializableLock()
|
|
688
682
|
|
|
689
683
|
manager = xr.backends.CachingFileManager(
|
|
690
684
|
xr.backends.DummyFileManager,
|
|
@@ -57,3 +57,31 @@ class ReprMultiIndex:
|
|
|
57
57
|
|
|
58
58
|
def time_repr_html(self):
|
|
59
59
|
self.da._repr_html_()
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class ReprPandasRangeIndex:
|
|
63
|
+
# display a memory-saving pandas.RangeIndex shouldn't trigger memory
|
|
64
|
+
# expensive conversion into a numpy array
|
|
65
|
+
def setup(self):
|
|
66
|
+
index = xr.indexes.PandasIndex(pd.RangeIndex(1_000_000), "x")
|
|
67
|
+
self.ds = xr.Dataset(coords=xr.Coordinates.from_xindex(index))
|
|
68
|
+
|
|
69
|
+
def time_repr(self):
|
|
70
|
+
repr(self.ds.x)
|
|
71
|
+
|
|
72
|
+
def time_repr_html(self):
|
|
73
|
+
self.ds.x._repr_html_()
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class ReprXarrayRangeIndex:
|
|
77
|
+
# display an Xarray RangeIndex shouldn't trigger memory expensive conversion
|
|
78
|
+
# of its lazy coordinate into a numpy array
|
|
79
|
+
def setup(self):
|
|
80
|
+
index = xr.indexes.RangeIndex.arange(1_000_000, dim="x")
|
|
81
|
+
self.ds = xr.Dataset(coords=xr.Coordinates.from_xindex(index))
|
|
82
|
+
|
|
83
|
+
def time_repr(self):
|
|
84
|
+
repr(self.ds.x)
|
|
85
|
+
|
|
86
|
+
def time_repr_html(self):
|
|
87
|
+
self.ds.x._repr_html_()
|
|
@@ -10,7 +10,7 @@ co_author_re = re.compile(r"Co-authored-by: (?P<name>[^<]+?) <(?P<email>.+)>")
|
|
|
10
10
|
def main():
|
|
11
11
|
repo = git.Repo(".")
|
|
12
12
|
|
|
13
|
-
most_recent_release = last(repo.tags)
|
|
13
|
+
most_recent_release = last(list(repo.tags))
|
|
14
14
|
|
|
15
15
|
# extract information from commits
|
|
16
16
|
contributors = {}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: xarray-tests
|
|
2
|
+
channels:
|
|
3
|
+
- conda-forge
|
|
4
|
+
- nodefaults
|
|
5
|
+
dependencies:
|
|
6
|
+
- python=3.11
|
|
7
|
+
- coveralls
|
|
8
|
+
- pip
|
|
9
|
+
- pytest
|
|
10
|
+
- pytest-cov
|
|
11
|
+
- pytest-env
|
|
12
|
+
- pytest-mypy-plugins
|
|
13
|
+
- pytest-timeout
|
|
14
|
+
- pytest-xdist
|
|
15
|
+
- numpy=1.26
|
|
16
|
+
- packaging=24.1
|
|
17
|
+
- pandas=2.2
|
|
18
|
+
- scipy=1.13
|
|
@@ -3,7 +3,7 @@ channels:
|
|
|
3
3
|
- conda-forge
|
|
4
4
|
- nodefaults
|
|
5
5
|
dependencies:
|
|
6
|
-
- python=3.
|
|
6
|
+
- python=3.11
|
|
7
7
|
- coveralls
|
|
8
8
|
- pip
|
|
9
9
|
- pytest
|
|
@@ -12,6 +12,6 @@ dependencies:
|
|
|
12
12
|
- pytest-mypy-plugins
|
|
13
13
|
- pytest-timeout
|
|
14
14
|
- pytest-xdist
|
|
15
|
-
- numpy=1.
|
|
16
|
-
- packaging=
|
|
17
|
-
- pandas=2.
|
|
15
|
+
- numpy=1.26
|
|
16
|
+
- packaging=24.1
|
|
17
|
+
- pandas=2.2
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: xarray-benchmark
|
|
2
|
+
channels:
|
|
3
|
+
- conda-forge
|
|
4
|
+
- nodefaults
|
|
5
|
+
dependencies:
|
|
6
|
+
- bottleneck
|
|
7
|
+
- cftime
|
|
8
|
+
- dask-core
|
|
9
|
+
- distributed
|
|
10
|
+
- flox
|
|
11
|
+
- netcdf4
|
|
12
|
+
- numba
|
|
13
|
+
- numbagg
|
|
14
|
+
- numexpr
|
|
15
|
+
- numpy>=2.2,<2.3 # https://github.com/numba/numba/issues/10105
|
|
16
|
+
- opt_einsum
|
|
17
|
+
- packaging
|
|
18
|
+
- pandas
|
|
19
|
+
- pyarrow # pandas raises a deprecation warning without this, breaking doctests
|
|
20
|
+
- sparse
|
|
21
|
+
- scipy
|
|
22
|
+
- toolz
|
|
23
|
+
- zarr
|
|
@@ -4,7 +4,7 @@ channels:
|
|
|
4
4
|
- nodefaults
|
|
5
5
|
dependencies:
|
|
6
6
|
- aiobotocore
|
|
7
|
-
- array-api-strict
|
|
7
|
+
- array-api-strict<2.4
|
|
8
8
|
- boto3
|
|
9
9
|
- bottleneck
|
|
10
10
|
- cartopy
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
- numba
|
|
27
27
|
- numbagg
|
|
28
28
|
- numexpr
|
|
29
|
-
- numpy>=2
|
|
29
|
+
- numpy>=2.2
|
|
30
30
|
- opt_einsum
|
|
31
31
|
- packaging
|
|
32
32
|
- pandas
|
|
@@ -7,42 +7,38 @@ dependencies:
|
|
|
7
7
|
# Run ci/min_deps_check.py to verify that this file respects the policy.
|
|
8
8
|
# When upgrading python, numpy, or pandas, must also change
|
|
9
9
|
# doc/user-guide/installing.rst, doc/user-guide/plotting.rst and setup.py.
|
|
10
|
-
- python=3.
|
|
11
|
-
- array-api-strict=1.
|
|
12
|
-
- boto3=1.
|
|
13
|
-
- bottleneck=1.
|
|
14
|
-
- cartopy=0.
|
|
10
|
+
- python=3.11
|
|
11
|
+
- array-api-strict=1.1 # dependency for testing the array api compat
|
|
12
|
+
- boto3=1.34
|
|
13
|
+
- bottleneck=1.4
|
|
14
|
+
- cartopy=0.23
|
|
15
15
|
- cftime=1.6
|
|
16
16
|
- coveralls
|
|
17
|
-
- dask-core=
|
|
18
|
-
- distributed=
|
|
19
|
-
|
|
20
|
-
# It will require numbagg > 0.6
|
|
21
|
-
# so we should just skip that series eventually
|
|
22
|
-
# or keep flox pinned for longer than necessary
|
|
23
|
-
- flox=0.7
|
|
17
|
+
- dask-core=2024.6
|
|
18
|
+
- distributed=2024.6
|
|
19
|
+
- flox=0.9
|
|
24
20
|
- h5netcdf=1.3
|
|
25
21
|
# h5py and hdf5 tend to cause conflicts
|
|
26
22
|
# for e.g. hdf5 1.12 conflicts with h5py=3.1
|
|
27
23
|
# prioritize bumping other packages instead
|
|
28
|
-
- h5py=3.
|
|
29
|
-
- hdf5=1.
|
|
24
|
+
- h5py=3.11
|
|
25
|
+
- hdf5=1.14
|
|
30
26
|
- hypothesis
|
|
31
|
-
- iris=3.
|
|
32
|
-
- lxml=
|
|
27
|
+
- iris=3.9
|
|
28
|
+
- lxml=5.1 # Optional dep of pydap
|
|
33
29
|
- matplotlib-base=3.8
|
|
34
30
|
- nc-time-axis=1.4
|
|
35
31
|
# netcdf follows a 1.major.minor[.patch] convention
|
|
36
32
|
# (see https://github.com/Unidata/netcdf4-python/issues/1090)
|
|
37
|
-
- netcdf4=1.6
|
|
38
|
-
- numba=0.
|
|
39
|
-
- numbagg=0.
|
|
40
|
-
- numpy=1.
|
|
41
|
-
- packaging=
|
|
42
|
-
- pandas=2.
|
|
43
|
-
- pint=0.
|
|
33
|
+
- netcdf4=1.6
|
|
34
|
+
- numba=0.60
|
|
35
|
+
- numbagg=0.8
|
|
36
|
+
- numpy=1.26
|
|
37
|
+
- packaging=24.1
|
|
38
|
+
- pandas=2.2
|
|
39
|
+
- pint=0.24
|
|
44
40
|
- pip
|
|
45
|
-
- pydap=3.5
|
|
41
|
+
- pydap=3.5.0
|
|
46
42
|
- pytest
|
|
47
43
|
- pytest-cov
|
|
48
44
|
- pytest-env
|
|
@@ -50,9 +46,8 @@ dependencies:
|
|
|
50
46
|
- pytest-timeout
|
|
51
47
|
- pytest-xdist
|
|
52
48
|
- rasterio=1.3
|
|
53
|
-
- scipy=1.
|
|
49
|
+
- scipy=1.13
|
|
54
50
|
- seaborn=0.13
|
|
55
|
-
- sparse=0.
|
|
51
|
+
- sparse=0.15
|
|
56
52
|
- toolz=0.12
|
|
57
|
-
-
|
|
58
|
-
- zarr=2.16
|
|
53
|
+
- zarr=2.18
|
|
@@ -97,12 +97,12 @@ The new `indexes` argument of Dataset/DataArray constructors may be used to spec
|
|
|
97
97
|
```python
|
|
98
98
|
>>> da = xr.DataArray(
|
|
99
99
|
... data=[[275.2, 273.5], [270.8, 278.6]],
|
|
100
|
-
... dims=(
|
|
100
|
+
... dims=("x", "y"),
|
|
101
101
|
... coords={
|
|
102
|
-
...
|
|
103
|
-
...
|
|
102
|
+
... "lat": (("x", "y"), [[45.6, 46.5], [50.2, 51.6]]),
|
|
103
|
+
... "lon": (("x", "y"), [[5.7, 10.5], [6.2, 12.8]]),
|
|
104
104
|
... },
|
|
105
|
-
... indexes={(
|
|
105
|
+
... indexes={("lat", "lon"): SpatialIndex},
|
|
106
106
|
... )
|
|
107
107
|
<xarray.DataArray (x: 2, y: 2)>
|
|
108
108
|
array([[275.2, 273.5],
|
|
@@ -120,7 +120,7 @@ More formally, `indexes` would accept `Mapping[CoordinateNames, IndexSpec]` wher
|
|
|
120
120
|
Currently index objects like `pandas.MultiIndex` can be passed directly to `coords`, which in this specific case results in the implicit creation of virtual coordinates. With the new `indexes` argument this behavior may become even more confusing than it currently is. For the sake of clarity, it would be appropriate to eventually drop support for this specific behavior and treat any given mapping value given in `coords` as an array that can be wrapped into an Xarray variable, i.e., in the case of a multi-index:
|
|
121
121
|
|
|
122
122
|
```python
|
|
123
|
-
>>> xr.DataArray([1.0, 2.0], dims=
|
|
123
|
+
>>> xr.DataArray([1.0, 2.0], dims="x", coords={"x": midx})
|
|
124
124
|
<xarray.DataArray (x: 2)>
|
|
125
125
|
array([1., 2.])
|
|
126
126
|
Coordinates:
|
|
@@ -169,8 +169,8 @@ Like for the indexes, explicit coordinate creation should be preferred over impl
|
|
|
169
169
|
For example, it is currently possible to pass a `pandas.MultiIndex` object as a coordinate to the Dataset/DataArray constructor:
|
|
170
170
|
|
|
171
171
|
```python
|
|
172
|
-
>>> midx = pd.MultiIndex.from_arrays([[
|
|
173
|
-
>>> da = xr.DataArray([1.0, 2.0], dims=
|
|
172
|
+
>>> midx = pd.MultiIndex.from_arrays([["a", "b"], [0, 1]], names=["lvl1", "lvl2"])
|
|
173
|
+
>>> da = xr.DataArray([1.0, 2.0], dims="x", coords={"x": midx})
|
|
174
174
|
>>> da
|
|
175
175
|
<xarray.DataArray (x: 2)>
|
|
176
176
|
array([1., 2.])
|
|
@@ -201,7 +201,9 @@ Besides `pandas.MultiIndex`, there may be other situations where we would like t
|
|
|
201
201
|
The example given here is quite confusing, though: this is not an easily predictable behavior. We could entirely avoid the implicit creation of coordinates, e.g., using a helper function that generates coordinate + index dictionaries that we could then pass directly to the DataArray/Dataset constructor:
|
|
202
202
|
|
|
203
203
|
```python
|
|
204
|
-
>>> coords_dict, index_dict = create_coords_from_index(
|
|
204
|
+
>>> coords_dict, index_dict = create_coords_from_index(
|
|
205
|
+
... midx, dims="x", include_dim_coord=True
|
|
206
|
+
... )
|
|
205
207
|
>>> coords_dict
|
|
206
208
|
{'x': <xarray.Variable (x: 2)>
|
|
207
209
|
array([('a', 0), ('b', 1)], dtype=object),
|
|
@@ -211,7 +213,7 @@ The example given here is quite confusing, though: this is not an easily predict
|
|
|
211
213
|
array([0, 1])}
|
|
212
214
|
>>> index_dict
|
|
213
215
|
{('lvl1', 'lvl2'): midx}
|
|
214
|
-
>>> xr.DataArray([1.0, 2.0], dims=
|
|
216
|
+
>>> xr.DataArray([1.0, 2.0], dims="x", coords=coords_dict, indexes=index_dict)
|
|
215
217
|
<xarray.DataArray (x: 2)>
|
|
216
218
|
array([1., 2.])
|
|
217
219
|
Coordinates:
|