xarray 2024.11.0__tar.gz → 2025.1.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-2024.11.0 → xarray-2025.1.1}/.github/workflows/ci-additional.yaml +4 -4
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/workflows/ci.yaml +3 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/workflows/pypi-release.yaml +2 -2
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/workflows/upstream-dev-ci.yaml +1 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/.pre-commit-config.yaml +13 -3
- {xarray-2024.11.0 → xarray-2025.1.1}/.readthedocs.yaml +4 -3
- {xarray-2024.11.0/xarray.egg-info → xarray-2025.1.1}/PKG-INFO +3 -3
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/__init__.py +4 -4
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/dataset_io.py +1 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/reindexing.py +1 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/rolling.py +4 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/unstacking.py +1 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/ci/requirements/doc.yml +1 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/ci/requirements/environment-3.13.yml +2 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/ci/requirements/environment.yml +2 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/api.rst +14 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/getting-started-guide/faq.rst +3 -3
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/computation.rst +2 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/dask.rst +1 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/io.rst +35 -3
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/pandas.rst +1 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/whats-new.rst +93 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/properties/test_encode_decode.py +16 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/pyproject.toml +18 -7
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/__init__.py +5 -4
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/api.py +46 -14
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/common.py +108 -3
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/zarr.py +83 -26
- xarray-2025.1.1/xarray/coders.py +10 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/coding/cftime_offsets.py +19 -72
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/coding/cftimeindex.py +6 -74
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/coding/times.py +171 -43
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/conventions.py +46 -116
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/convert.py +2 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/array_api_compat.py +38 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/common.py +5 -2
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/computation.py +16 -11
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/dask_array_ops.py +43 -28
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/dataarray.py +19 -32
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/dataset.py +57 -80
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/duck_array_ops.py +92 -48
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/groupby.py +0 -2
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/indexing.py +54 -7
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/missing.py +173 -163
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/nanops.py +1 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/nputils.py +9 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/pdcompat.py +16 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/rolling.py +7 -2
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/types.py +1 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/utils.py +1 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/variable.py +33 -25
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/weighted.py +0 -7
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/namedarray/core.py +3 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/namedarray/parallelcompat.py +26 -7
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/plot/dataarray_plot.py +1 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/plot/utils.py +11 -12
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/testing/assertions.py +4 -4
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/testing/strategies.py +35 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/__init__.py +5 -6
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_backends.py +166 -101
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_backends_common.py +14 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_cftime_offsets.py +0 -48
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_cftimeindex.py +72 -9
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_coding_times.py +45 -18
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_computation.py +3 -3
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_conventions.py +3 -20
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_dask.py +16 -2
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_dataarray.py +15 -12
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_dataset.py +30 -31
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_duck_array_ops.py +4 -4
- xarray-2025.1.1/xarray/tests/test_duck_array_wrapping.py +510 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_formatting.py +9 -10
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_formatting_html.py +1 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_groupby.py +1 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_indexing.py +25 -6
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_interp.py +116 -4
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_missing.py +1 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_parallelcompat.py +25 -6
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_plot.py +24 -5
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_strategies.py +10 -9
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_variable.py +39 -34
- {xarray-2024.11.0 → xarray-2025.1.1/xarray.egg-info}/PKG-INFO +3 -3
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray.egg-info/SOURCES.txt +2 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray.egg-info/requires.txt +1 -1
- {xarray-2024.11.0 → xarray-2025.1.1}/.binder/environment.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.codecov.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.git-blame-ignore-revs +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.git_archival.txt +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.gitattributes +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/FUNDING.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/ISSUE_TEMPLATE/bugreport.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/ISSUE_TEMPLATE/misc.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/ISSUE_TEMPLATE/newfeature.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/config.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/dependabot.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/release.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/stale.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/workflows/benchmarks-last-release.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/workflows/benchmarks.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/workflows/configure-testpypi-version.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/workflows/hypothesis.yaml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/workflows/nightly-wheels.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.github/workflows/publish-test-results.yaml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/.gitignore +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/CITATION.cff +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/CODE_OF_CONDUCT.md +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/CONTRIBUTING.md +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/CORE_TEAM_GUIDE.md +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/DATATREE_MIGRATION_GUIDE.md +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/HOW_TO_RELEASE.md +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/LICENSE +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/README.md +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/asv.conf.json +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/README_CI.md +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/accessors.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/alignment.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/coding.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/combine.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/dataarray_missing.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/dataset.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/datatree.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/groupby.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/import.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/indexing.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/interp.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/merge.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/pandas.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/polyfit.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/renaming.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/asv_bench/benchmarks/repr.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/ci/install-upstream-wheels.sh +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/ci/minimum_versions.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/ci/release_contributors.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/ci/requirements/all-but-dask.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/ci/requirements/all-but-numba.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/ci/requirements/bare-minimum.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/ci/requirements/environment-windows-3.13.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/ci/requirements/environment-windows.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/ci/requirements/min-all-deps.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/conftest.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/design_notes/flexible_indexes_notes.md +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/design_notes/grouper_objects.md +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/design_notes/named_array_design_doc.md +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/Makefile +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/README.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/.gitignore +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/advanced_selection_interpolation.svg +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/ci.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/dask-array.svg +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/dataset-diagram.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/index_api.svg +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/index_contribute.svg +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/index_getting_started.svg +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/index_user_guide.svg +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/logos/Xarray_Icon_Final.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/logos/Xarray_Icon_Final.svg +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.svg +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/logos/Xarray_Logo_RGB_Final.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/logos/Xarray_Logo_RGB_Final.svg +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/numfocus_logo.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/opendap-prism-tmax.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/style.css +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/thumbnails/ERA5-GRIB-example.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/thumbnails/ROMS_ocean_model.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/thumbnails/area_weighted_temperature.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/thumbnails/monthly-means.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/thumbnails/multidimensional-coords.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/thumbnails/toy-weather-data.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/thumbnails/visualization_gallery.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_static/view-docs.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_templates/autosummary/accessor.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_templates/autosummary/accessor_attribute.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_templates/autosummary/accessor_callable.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/_templates/autosummary/accessor_method.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/api-hidden.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/combined.json +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/conf.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/contributing.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/developers-meeting.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/ecosystem.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/examples/ERA5-GRIB-example.ipynb +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/examples/ROMS_ocean_model.ipynb +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/examples/_code/accessor_example.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/examples/apply_ufunc_vectorize_1d.ipynb +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/examples/area_weighted_temperature.ipynb +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/examples/blank_template.ipynb +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/examples/monthly-means.ipynb +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/examples/monthly_means_output.png +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/examples/multidimensional-coords.ipynb +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/examples/visualization_gallery.ipynb +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/examples/weather-data.ipynb +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/gallery/README.txt +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/gallery/plot_cartopy_facetgrid.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/gallery/plot_colorbar_center.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/gallery/plot_control_colorbar.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/gallery/plot_lines_from_2d.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/gallery.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/gallery.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/getting-started-guide/index.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/getting-started-guide/installing.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/getting-started-guide/quick-overview.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/getting-started-guide/why-xarray.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/help-diagram.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/howdoi.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/index.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/internals/chunked-arrays.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/internals/duck-arrays-integration.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/internals/extending-xarray.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/internals/how-to-add-new-backend.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/internals/how-to-create-custom-index.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/internals/index.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/internals/internal-design.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/internals/interoperability.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/internals/zarr-encoding-spec.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/roadmap.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/tutorials-and-videos.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/combining.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/data-structures.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/duckarrays.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/groupby.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/hierarchical-data.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/index.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/indexing.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/interpolation.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/options.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/plotting.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/reshaping.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/terminology.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/testing.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/time-series.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/user-guide/weather-climate.rst +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/doc/videos.yml +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/licenses/ANYTREE_LICENSE +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/licenses/DASK_LICENSE +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/licenses/ICOMOON_LICENSE +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/licenses/NUMPY_LICENSE +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/licenses/PANDAS_LICENSE +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/licenses/PYTHON_LICENSE +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/licenses/SCIKIT_LEARN_LICENSE +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/licenses/SEABORN_LICENSE +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/properties/README.md +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/properties/__init__.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/properties/conftest.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/properties/test_index_manipulation.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/properties/test_pandas_roundtrip.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/properties/test_properties.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/setup.cfg +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/setup.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/__init__.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/file_manager.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/h5netcdf_.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/locks.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/lru_cache.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/memory.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/netCDF4_.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/netcdf3.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/plugins.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/pydap_.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/scipy_.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/backends/store.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/coding/__init__.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/coding/calendar_ops.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/coding/frequencies.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/coding/strings.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/coding/variables.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/__init__.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/_aggregations.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/_typed_ops.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/accessor_dt.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/accessor_str.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/alignment.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/arithmetic.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/combine.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/concat.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/coordinates.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/dask_array_compat.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/datatree.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/datatree_io.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/datatree_mapping.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/datatree_render.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/dtypes.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/extension_array.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/extensions.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/formatting.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/formatting_html.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/indexes.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/merge.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/npcompat.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/ops.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/options.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/parallel.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/resample.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/resample_cftime.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/rolling_exp.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/core/treenode.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/groupers.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/indexes/__init__.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/namedarray/__init__.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/namedarray/_aggregations.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/namedarray/_array_api.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/namedarray/_typing.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/namedarray/daskmanager.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/namedarray/dtypes.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/namedarray/pycompat.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/namedarray/utils.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/plot/__init__.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/plot/accessor.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/plot/dataset_plot.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/plot/facetgrid.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/py.typed +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/static/__init__.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/static/css/__init__.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/static/css/style.css +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/static/html/__init__.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/static/html/icons-svg-inline.html +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/testing/__init__.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/arrays.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/conftest.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/data/bears.nc +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/data/example.grib +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/data/example.ict +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/data/example.uamiv +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/data/example_1.nc +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/data/example_1.nc.gz +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_accessor_dt.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_accessor_str.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_array_api.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_assertions.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_backends_api.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_backends_datatree.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_backends_file_manager.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_backends_locks.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_backends_lru_cache.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_calendar_ops.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_cftimeindex_resample.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_coarsen.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_coding.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_coding_strings.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_combine.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_concat.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_coordinates.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_cupy.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_datatree.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_datatree_mapping.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_deprecation_helpers.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_distributed.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_dtypes.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_error_messages.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_extensions.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_hashable.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_indexes.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_merge.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_namedarray.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_nputils.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_options.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_plugins.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_print_versions.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_rolling.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_sparse.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_treenode.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_tutorial.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_typed_ops.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_ufuncs.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_units.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_utils.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tests/test_weighted.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/tutorial.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/ufuncs.py +41 -41
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/util/__init__.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/util/deprecation_helpers.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/util/generate_aggregations.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/util/generate_ops.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray/util/print_versions.py +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray.egg-info/dependency_links.txt +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray.egg-info/entry_points.txt +0 -0
- {xarray-2024.11.0 → xarray-2025.1.1}/xarray.egg-info/top_level.txt +0 -0
|
@@ -123,7 +123,7 @@ jobs:
|
|
|
123
123
|
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
|
|
124
124
|
|
|
125
125
|
- name: Upload mypy coverage to Codecov
|
|
126
|
-
uses: codecov/codecov-action@v5.
|
|
126
|
+
uses: codecov/codecov-action@v5.1.2
|
|
127
127
|
with:
|
|
128
128
|
file: mypy_report/cobertura.xml
|
|
129
129
|
flags: mypy
|
|
@@ -174,7 +174,7 @@ jobs:
|
|
|
174
174
|
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
|
|
175
175
|
|
|
176
176
|
- name: Upload mypy coverage to Codecov
|
|
177
|
-
uses: codecov/codecov-action@v5.
|
|
177
|
+
uses: codecov/codecov-action@v5.1.2
|
|
178
178
|
with:
|
|
179
179
|
file: mypy_report/cobertura.xml
|
|
180
180
|
flags: mypy-min
|
|
@@ -230,7 +230,7 @@ jobs:
|
|
|
230
230
|
python -m pyright xarray/
|
|
231
231
|
|
|
232
232
|
- name: Upload pyright coverage to Codecov
|
|
233
|
-
uses: codecov/codecov-action@v5.
|
|
233
|
+
uses: codecov/codecov-action@v5.1.2
|
|
234
234
|
with:
|
|
235
235
|
file: pyright_report/cobertura.xml
|
|
236
236
|
flags: pyright
|
|
@@ -286,7 +286,7 @@ jobs:
|
|
|
286
286
|
python -m pyright xarray/
|
|
287
287
|
|
|
288
288
|
- name: Upload pyright coverage to Codecov
|
|
289
|
-
uses: codecov/codecov-action@v5.
|
|
289
|
+
uses: codecov/codecov-action@v5.1.2
|
|
290
290
|
with:
|
|
291
291
|
file: pyright_report/cobertura.xml
|
|
292
292
|
flags: pyright39
|
|
@@ -159,7 +159,9 @@ jobs:
|
|
|
159
159
|
path: pytest.xml
|
|
160
160
|
|
|
161
161
|
- name: Upload code coverage to Codecov
|
|
162
|
-
uses: codecov/codecov-action@v5.
|
|
162
|
+
uses: codecov/codecov-action@v5.1.2
|
|
163
|
+
env:
|
|
164
|
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
163
165
|
with:
|
|
164
166
|
file: ./coverage.xml
|
|
165
167
|
flags: unittests
|
|
@@ -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.12.
|
|
91
|
+
uses: pypa/gh-action-pypi-publish@v1.12.3
|
|
92
92
|
with:
|
|
93
93
|
repository_url: https://test.pypi.org/legacy/
|
|
94
94
|
verbose: true
|
|
@@ -110,6 +110,6 @@ jobs:
|
|
|
110
110
|
name: releases
|
|
111
111
|
path: dist
|
|
112
112
|
- name: Publish package to PyPI
|
|
113
|
-
uses: pypa/gh-action-pypi-publish@v1.12.
|
|
113
|
+
uses: pypa/gh-action-pypi-publish@v1.12.3
|
|
114
114
|
with:
|
|
115
115
|
verbose: true
|
|
@@ -140,7 +140,7 @@ jobs:
|
|
|
140
140
|
run: |
|
|
141
141
|
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
|
|
142
142
|
- name: Upload mypy coverage to Codecov
|
|
143
|
-
uses: codecov/codecov-action@v5.
|
|
143
|
+
uses: codecov/codecov-action@v5.1.2
|
|
144
144
|
with:
|
|
145
145
|
file: mypy_report/cobertura.xml
|
|
146
146
|
flags: mypy
|
|
@@ -25,7 +25,7 @@ repos:
|
|
|
25
25
|
- id: text-unicode-replacement-char
|
|
26
26
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
27
27
|
# Ruff version.
|
|
28
|
-
rev: v0.
|
|
28
|
+
rev: v0.8.6
|
|
29
29
|
hooks:
|
|
30
30
|
- id: ruff-format
|
|
31
31
|
- id: ruff
|
|
@@ -37,12 +37,12 @@ repos:
|
|
|
37
37
|
exclude: "generate_aggregations.py"
|
|
38
38
|
additional_dependencies: ["black==24.8.0"]
|
|
39
39
|
- repo: https://github.com/rbubley/mirrors-prettier
|
|
40
|
-
rev: v3.
|
|
40
|
+
rev: v3.4.2
|
|
41
41
|
hooks:
|
|
42
42
|
- id: prettier
|
|
43
43
|
args: [--cache-location=.prettier_cache/cache]
|
|
44
44
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
45
|
-
rev: v1.
|
|
45
|
+
rev: v1.14.1
|
|
46
46
|
hooks:
|
|
47
47
|
- id: mypy
|
|
48
48
|
# Copied from setup.cfg
|
|
@@ -63,3 +63,13 @@ repos:
|
|
|
63
63
|
rev: ebf0b5e44d67f8beaa1cd13a0d0393ea04c6058d
|
|
64
64
|
hooks:
|
|
65
65
|
- id: validate-cff
|
|
66
|
+
- repo: https://github.com/ComPWA/taplo-pre-commit
|
|
67
|
+
rev: v0.9.3
|
|
68
|
+
hooks:
|
|
69
|
+
- id: taplo-format
|
|
70
|
+
args: ["--option", "array_auto_collapse=false"]
|
|
71
|
+
- repo: https://github.com/abravalheri/validate-pyproject
|
|
72
|
+
rev: v0.23
|
|
73
|
+
hooks:
|
|
74
|
+
- id: validate-pyproject
|
|
75
|
+
additional_dependencies: ["validate-pyproject-schema-store[all]"]
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
version: 2
|
|
2
2
|
|
|
3
|
+
sphinx:
|
|
4
|
+
configuration: doc/conf.py
|
|
5
|
+
fail_on_warning: true
|
|
6
|
+
|
|
3
7
|
build:
|
|
4
8
|
os: ubuntu-lts-latest
|
|
5
9
|
tools:
|
|
@@ -14,7 +18,4 @@ build:
|
|
|
14
18
|
conda:
|
|
15
19
|
environment: ci/requirements/doc.yml
|
|
16
20
|
|
|
17
|
-
sphinx:
|
|
18
|
-
fail_on_warning: true
|
|
19
|
-
|
|
20
21
|
formats: []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: xarray
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2025.1.1
|
|
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
|
|
@@ -44,7 +44,7 @@ Requires-Dist: pytest-cov; extra == "dev"
|
|
|
44
44
|
Requires-Dist: pytest-env; extra == "dev"
|
|
45
45
|
Requires-Dist: pytest-xdist; extra == "dev"
|
|
46
46
|
Requires-Dist: pytest-timeout; extra == "dev"
|
|
47
|
-
Requires-Dist: ruff; extra == "dev"
|
|
47
|
+
Requires-Dist: ruff>=0.8.0; extra == "dev"
|
|
48
48
|
Requires-Dist: sphinx; extra == "dev"
|
|
49
49
|
Requires-Dist: sphinx_autosummary_accessors; extra == "dev"
|
|
50
50
|
Requires-Dist: xarray[complete]; extra == "dev"
|
|
@@ -30,13 +30,13 @@ def requires_sparse():
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def randn(shape, frac_nan=None, chunks=None, seed=0):
|
|
33
|
-
rng = np.random.
|
|
33
|
+
rng = np.random.default_rng(seed)
|
|
34
34
|
if chunks is None:
|
|
35
35
|
x = rng.standard_normal(shape)
|
|
36
36
|
else:
|
|
37
37
|
import dask.array as da
|
|
38
38
|
|
|
39
|
-
rng = da.random.
|
|
39
|
+
rng = da.random.default_rng(seed)
|
|
40
40
|
x = rng.standard_normal(shape, chunks=chunks)
|
|
41
41
|
|
|
42
42
|
if frac_nan is not None:
|
|
@@ -47,8 +47,8 @@ def randn(shape, frac_nan=None, chunks=None, seed=0):
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
def randint(low, high=None, size=None, frac_minus=None, seed=0):
|
|
50
|
-
rng = np.random.
|
|
51
|
-
x = rng.
|
|
50
|
+
rng = np.random.default_rng(seed)
|
|
51
|
+
x = rng.integers(low, high, size)
|
|
52
52
|
if frac_minus is not None:
|
|
53
53
|
inds = rng.choice(range(x.size), int(x.size * frac_minus))
|
|
54
54
|
x.flat[inds] = -1
|
|
@@ -305,7 +305,7 @@ class IOMultipleNetCDF:
|
|
|
305
305
|
ds.attrs = {"history": "created for xarray benchmarking"}
|
|
306
306
|
|
|
307
307
|
self.ds_list.append(ds)
|
|
308
|
-
self.filenames_list.append("test_netcdf_
|
|
308
|
+
self.filenames_list.append(f"test_netcdf_{i}.nc")
|
|
309
309
|
|
|
310
310
|
|
|
311
311
|
class IOWriteMultipleNetCDF3(IOMultipleNetCDF):
|
|
@@ -11,7 +11,7 @@ ny = 50
|
|
|
11
11
|
|
|
12
12
|
class Reindex:
|
|
13
13
|
def setup(self):
|
|
14
|
-
data = np.random.
|
|
14
|
+
data = np.random.default_rng(0).random((ntime, nx, ny))
|
|
15
15
|
self.ds = xr.Dataset(
|
|
16
16
|
{"temperature": (("time", "x", "y"), data)},
|
|
17
17
|
coords={"time": np.arange(ntime), "x": np.arange(nx), "y": np.arange(ny)},
|
|
@@ -3,7 +3,7 @@ import pandas as pd
|
|
|
3
3
|
|
|
4
4
|
import xarray as xr
|
|
5
5
|
|
|
6
|
-
from . import parameterized, randn, requires_dask
|
|
6
|
+
from . import _skip_slow, parameterized, randn, requires_dask
|
|
7
7
|
|
|
8
8
|
nx = 3000
|
|
9
9
|
long_nx = 30000
|
|
@@ -80,6 +80,9 @@ class Rolling:
|
|
|
80
80
|
class RollingDask(Rolling):
|
|
81
81
|
def setup(self, *args, **kwargs):
|
|
82
82
|
requires_dask()
|
|
83
|
+
# TODO: Lazily skipped in CI as it is very demanding and slow.
|
|
84
|
+
# Improve times and remove errors.
|
|
85
|
+
_skip_slow()
|
|
83
86
|
super().setup(**kwargs)
|
|
84
87
|
self.ds = self.ds.chunk({"x": 100, "y": 50, "t": 50})
|
|
85
88
|
self.da_long = self.da_long.chunk({"x": 10000})
|
|
@@ -8,7 +8,7 @@ from . import requires_dask, requires_sparse
|
|
|
8
8
|
|
|
9
9
|
class Unstacking:
|
|
10
10
|
def setup(self):
|
|
11
|
-
data = np.random.
|
|
11
|
+
data = np.random.default_rng(0).random((250, 500))
|
|
12
12
|
self.da_full = xr.DataArray(data, dims=list("ab")).stack(flat_dim=[...])
|
|
13
13
|
self.da_missing = self.da_full[:-1]
|
|
14
14
|
self.df_missing = self.da_missing.to_pandas()
|
|
@@ -626,12 +626,14 @@ Attributes relating to the recursive tree-like structure of a ``DataTree``.
|
|
|
626
626
|
DataTree.depth
|
|
627
627
|
DataTree.width
|
|
628
628
|
DataTree.subtree
|
|
629
|
+
DataTree.subtree_with_keys
|
|
629
630
|
DataTree.descendants
|
|
630
631
|
DataTree.siblings
|
|
631
632
|
DataTree.lineage
|
|
632
633
|
DataTree.parents
|
|
633
634
|
DataTree.ancestors
|
|
634
635
|
DataTree.groups
|
|
636
|
+
DataTree.xindexes
|
|
635
637
|
|
|
636
638
|
Data Contents
|
|
637
639
|
-------------
|
|
@@ -645,6 +647,7 @@ This interface echoes that of ``xarray.Dataset``.
|
|
|
645
647
|
DataTree.dims
|
|
646
648
|
DataTree.sizes
|
|
647
649
|
DataTree.data_vars
|
|
650
|
+
DataTree.ds
|
|
648
651
|
DataTree.coords
|
|
649
652
|
DataTree.attrs
|
|
650
653
|
DataTree.encoding
|
|
@@ -1093,6 +1096,17 @@ DataTree methods
|
|
|
1093
1096
|
.. Missing:
|
|
1094
1097
|
.. ``open_mfdatatree``
|
|
1095
1098
|
|
|
1099
|
+
Encoding/Decoding
|
|
1100
|
+
=================
|
|
1101
|
+
|
|
1102
|
+
Coder objects
|
|
1103
|
+
-------------
|
|
1104
|
+
|
|
1105
|
+
.. autosummary::
|
|
1106
|
+
:toctree: generated/
|
|
1107
|
+
|
|
1108
|
+
coders.CFDatetimeCoder
|
|
1109
|
+
|
|
1096
1110
|
Coordinates objects
|
|
1097
1111
|
===================
|
|
1098
1112
|
|
|
@@ -173,9 +173,9 @@ integration with Cartopy_.
|
|
|
173
173
|
|
|
174
174
|
We think the design decisions we have made for xarray (namely, basing it on
|
|
175
175
|
pandas) make it a faster and more flexible data analysis tool. That said, Iris
|
|
176
|
-
has some great domain specific functionality, and
|
|
177
|
-
|
|
178
|
-
:
|
|
176
|
+
has some great domain specific functionality, and there are dedicated methods for
|
|
177
|
+
converting back and forth between xarray and Iris. See
|
|
178
|
+
:ref:`Reading and Writing Iris data <io.iris>` for more details.
|
|
179
179
|
|
|
180
180
|
What other projects leverage xarray?
|
|
181
181
|
------------------------------------
|
|
@@ -30,7 +30,8 @@ numpy) over all array values:
|
|
|
30
30
|
.. ipython:: python
|
|
31
31
|
|
|
32
32
|
arr = xr.DataArray(
|
|
33
|
-
np.random.
|
|
33
|
+
np.random.default_rng(0).random((2, 3)),
|
|
34
|
+
[("x", ["a", "b"]), ("y", [10, 20, 30])],
|
|
34
35
|
)
|
|
35
36
|
arr - 3
|
|
36
37
|
abs(arr)
|
|
@@ -292,7 +292,7 @@ work as a streaming operation, when run on arrays loaded from disk:
|
|
|
292
292
|
.. ipython::
|
|
293
293
|
:verbatim:
|
|
294
294
|
|
|
295
|
-
In [56]: rs = np.random.
|
|
295
|
+
In [56]: rs = np.random.default_rng(0)
|
|
296
296
|
|
|
297
297
|
In [57]: array1 = xr.DataArray(rs.randn(1000, 100000), dims=["place", "time"]) # 800MB
|
|
298
298
|
|
|
@@ -13,6 +13,8 @@ format (recommended).
|
|
|
13
13
|
|
|
14
14
|
import os
|
|
15
15
|
|
|
16
|
+
import iris
|
|
17
|
+
import ncdata.iris_xarray
|
|
16
18
|
import numpy as np
|
|
17
19
|
import pandas as pd
|
|
18
20
|
import xarray as xr
|
|
@@ -1072,8 +1074,11 @@ Iris
|
|
|
1072
1074
|
|
|
1073
1075
|
The Iris_ tool allows easy reading of common meteorological and climate model formats
|
|
1074
1076
|
(including GRIB and UK MetOffice PP files) into ``Cube`` objects which are in many ways very
|
|
1075
|
-
similar to ``DataArray`` objects, while enforcing a CF-compliant data model.
|
|
1076
|
-
|
|
1077
|
+
similar to ``DataArray`` objects, while enforcing a CF-compliant data model.
|
|
1078
|
+
|
|
1079
|
+
DataArray ``to_iris`` and ``from_iris``
|
|
1080
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
1081
|
+
If iris is installed, xarray can convert a ``DataArray`` into a ``Cube`` using
|
|
1077
1082
|
:py:meth:`DataArray.to_iris`:
|
|
1078
1083
|
|
|
1079
1084
|
.. ipython:: python
|
|
@@ -1095,9 +1100,36 @@ Conversely, we can create a new ``DataArray`` object from a ``Cube`` using
|
|
|
1095
1100
|
da_cube = xr.DataArray.from_iris(cube)
|
|
1096
1101
|
da_cube
|
|
1097
1102
|
|
|
1103
|
+
Ncdata
|
|
1104
|
+
~~~~~~
|
|
1105
|
+
Ncdata_ provides more sophisticated means of transferring data, including entire
|
|
1106
|
+
datasets. It uses the file saving and loading functions in both projects to provide a
|
|
1107
|
+
more "correct" translation between them, but still with very low overhead and not
|
|
1108
|
+
using actual disk files.
|
|
1098
1109
|
|
|
1099
|
-
|
|
1110
|
+
For example:
|
|
1111
|
+
|
|
1112
|
+
.. ipython:: python
|
|
1113
|
+
:okwarning:
|
|
1100
1114
|
|
|
1115
|
+
ds = xr.tutorial.open_dataset("air_temperature_gradient")
|
|
1116
|
+
cubes = ncdata.iris_xarray.cubes_from_xarray(ds)
|
|
1117
|
+
print(cubes)
|
|
1118
|
+
print(cubes[1])
|
|
1119
|
+
|
|
1120
|
+
.. ipython:: python
|
|
1121
|
+
:okwarning:
|
|
1122
|
+
|
|
1123
|
+
ds = ncdata.iris_xarray.cubes_to_xarray(cubes)
|
|
1124
|
+
print(ds)
|
|
1125
|
+
|
|
1126
|
+
Ncdata can also adjust file data within load and save operations, to fix data loading
|
|
1127
|
+
problems or provide exact save formatting without needing to modify files on disk.
|
|
1128
|
+
See for example : `ncdata usage examples`_
|
|
1129
|
+
|
|
1130
|
+
.. _Iris: https://scitools.org.uk/iris
|
|
1131
|
+
.. _Ncdata: https://ncdata.readthedocs.io/en/latest/index.html
|
|
1132
|
+
.. _ncdata usage examples: https://github.com/pp-mo/ncdata/tree/v0.1.2?tab=readme-ov-file#correct-a-miscoded-attribute-in-iris-input
|
|
1101
1133
|
|
|
1102
1134
|
OPeNDAP
|
|
1103
1135
|
-------
|
|
@@ -202,7 +202,7 @@ Let's take a look:
|
|
|
202
202
|
|
|
203
203
|
.. ipython:: python
|
|
204
204
|
|
|
205
|
-
data = np.random.
|
|
205
|
+
data = np.random.default_rng(0).rand(2, 3, 4)
|
|
206
206
|
items = list("ab")
|
|
207
207
|
major_axis = list("mno")
|
|
208
208
|
minor_axis = pd.date_range(start="2000", periods=4, name="date")
|
|
@@ -14,7 +14,99 @@ What's New
|
|
|
14
14
|
|
|
15
15
|
np.random.seed(123456)
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
.. _whats-new.2025.01.1:
|
|
19
|
+
|
|
20
|
+
v2025.01.1 (Jan 9, 2025)
|
|
21
|
+
------------------------
|
|
22
|
+
|
|
23
|
+
This is a quick release to bring compatibility with the Zarr V3 release. It also includes an update to the time decoding
|
|
24
|
+
infrastructure as a step toward `enabling non-nanosecond datetime support <https://github.com/pydata/xarray/pull/9618>`_!
|
|
25
|
+
|
|
26
|
+
New Features
|
|
27
|
+
~~~~~~~~~~~~
|
|
28
|
+
- Split out :py:class:`coders.CFDatetimeCoder` as public API in ``xr.coders``, make ``decode_times`` keyword argument
|
|
29
|
+
consume :py:class:`coders.CFDatetimeCoder` (:pull:`9901`).
|
|
30
|
+
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
|
|
31
|
+
|
|
32
|
+
Deprecations
|
|
33
|
+
~~~~~~~~~~~~
|
|
34
|
+
- Time decoding related kwarg ``use_cftime`` is deprecated. Use keyword argument
|
|
35
|
+
``decode_times=CFDatetimeCoder(use_cftime=True)`` in :py:func:`~xarray.open_dataset`, :py:func:`~xarray.open_dataarray`, :py:func:`~xarray.open_datatree`, :py:func:`~xarray.open_groups`, :py:func:`~xarray.open_zarr` and :py:func:`~xarray.decode_cf` instead (:pull:`9901`).
|
|
36
|
+
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
|
|
37
|
+
|
|
38
|
+
.. _whats-new.2025.01.0:
|
|
39
|
+
|
|
40
|
+
v.2025.01.0 (Jan 3, 2025)
|
|
41
|
+
-------------------------
|
|
42
|
+
|
|
43
|
+
This release brings much improved read performance with Zarr arrays (without consolidated metadata), better support for additional array types, as well as
|
|
44
|
+
bugfixes and performance improvements.
|
|
45
|
+
Thanks to the 20 contributors to this release:
|
|
46
|
+
Bruce Merry, Davis Bennett, Deepak Cherian, Dimitri Papadopoulos Orfanos, Florian Jetter, Illviljan, Janukan Sivajeyan, Justus Magin, Kai Germaschewski, Kai Mühlbauer, Max Jones, Maximilian Roos, Michael Niklas, Patrick Peglar, Sam Levang, Scott Huberty, Spencer Clark, Stephan Hoyer, Tom Nicholas and Vecko
|
|
47
|
+
|
|
48
|
+
New Features
|
|
49
|
+
~~~~~~~~~~~~
|
|
50
|
+
- Improve the error message raised when using chunked-array methods if no chunk manager is available or if the requested chunk manager is missing (:pull:`9676`)
|
|
51
|
+
By `Justus Magin <https://github.com/keewis>`_. (:pull:`9676`)
|
|
52
|
+
- Better support wrapping additional array types (e.g. ``cupy`` or ``jax``) by calling generalized
|
|
53
|
+
duck array operations throughout more xarray methods. (:issue:`7848`, :pull:`9798`).
|
|
54
|
+
By `Sam Levang <https://github.com/slevang>`_.
|
|
55
|
+
- Better performance for reading Zarr arrays in the ``ZarrStore`` class by caching the state of Zarr
|
|
56
|
+
storage and avoiding redundant IO operations. By default, ``ZarrStore`` stores a snapshot of names and metadata of the in-scope Zarr arrays; this cache
|
|
57
|
+
is then used when iterating over those Zarr arrays, which avoids IO operations and thereby reduces
|
|
58
|
+
latency. (:issue:`9853`, :pull:`9861`). By `Davis Bennett <https://github.com/d-v-b>`_.
|
|
59
|
+
- Add ``unit`` - keyword argument to :py:func:`date_range` and ``microsecond`` parsing to
|
|
60
|
+
iso8601-parser (:pull:`9885`).
|
|
61
|
+
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
Breaking changes
|
|
65
|
+
~~~~~~~~~~~~~~~~
|
|
66
|
+
- Methods including ``dropna``, ``rank``, ``idxmax``, ``idxmin`` require
|
|
67
|
+
non-dimension arguments to be passed as keyword arguments. The previous
|
|
68
|
+
behavior, which allowed ``.idxmax('foo', 'all')`` was too easily confused with
|
|
69
|
+
``'all'`` being a dimension. The updated equivalent is ``.idxmax('foo',
|
|
70
|
+
how='all')``. The previous behavior was deprecated in v2023.10.0.
|
|
71
|
+
By `Maximilian Roos <https://github.com/max-sixty>`_.
|
|
72
|
+
|
|
73
|
+
Deprecations
|
|
74
|
+
~~~~~~~~~~~~
|
|
75
|
+
- Finalize deprecation of ``closed`` parameters of :py:func:`cftime_range` and
|
|
76
|
+
:py:func:`date_range` (:pull:`9882`).
|
|
77
|
+
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
|
|
78
|
+
|
|
79
|
+
Performance
|
|
80
|
+
~~~~~~~~~~~
|
|
81
|
+
- Better preservation of chunksizes in :py:meth:`Dataset.idxmin` and :py:meth:`Dataset.idxmax` (:issue:`9425`, :pull:`9800`).
|
|
82
|
+
By `Deepak Cherian <https://github.com/dcherian>`_.
|
|
83
|
+
- Much better implementation of vectorized interpolation for dask arrays (:pull:`9881`).
|
|
84
|
+
By `Deepak Cherian <https://github.com/dcherian>`_.
|
|
85
|
+
|
|
86
|
+
Bug fixes
|
|
87
|
+
~~~~~~~~~
|
|
88
|
+
- Fix type annotations for ``get_axis_num``. (:issue:`9822`, :pull:`9827`).
|
|
89
|
+
By `Bruce Merry <https://github.com/bmerry>`_.
|
|
90
|
+
- Fix unintended load on datasets when calling :py:meth:`DataArray.plot.scatter` (:pull:`9818`).
|
|
91
|
+
By `Jimmy Westling <https://github.com/illviljan>`_.
|
|
92
|
+
- Fix interpolation when non-numeric coordinate variables are present (:issue:`8099`, :issue:`9839`).
|
|
93
|
+
By `Deepak Cherian <https://github.com/dcherian>`_.
|
|
94
|
+
|
|
95
|
+
Internal Changes
|
|
96
|
+
~~~~~~~~~~~~~~~~
|
|
97
|
+
- Move non-CF related ``ensure_dtype_not_object`` from conventions to backends (:pull:`9828`).
|
|
98
|
+
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
|
|
99
|
+
- Move handling of scalar datetimes into ``_possibly_convert_objects``
|
|
100
|
+
within ``as_compatible_data``. This is consistent with how lists of these objects
|
|
101
|
+
will be converted (:pull:`9900`).
|
|
102
|
+
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
|
|
103
|
+
- Move ISO-8601 parser from coding.cftimeindex to coding.times to make it available there (prevents circular import), add capability to parse negative and/or five-digit years (:pull:`9899`).
|
|
104
|
+
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
|
|
105
|
+
- Refactor of time coding to prepare for relaxing nanosecond restriction (:pull:`9906`).
|
|
106
|
+
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
.. _whats-new.2024.11.0:
|
|
18
110
|
|
|
19
111
|
v.2024.11.0 (Nov 22, 2024)
|
|
20
112
|
--------------------------
|
|
@@ -5,17 +5,22 @@ These ones pass, just as you'd hope!
|
|
|
5
5
|
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
+
import warnings
|
|
9
|
+
|
|
8
10
|
import pytest
|
|
9
11
|
|
|
10
12
|
pytest.importorskip("hypothesis")
|
|
11
13
|
# isort: split
|
|
12
14
|
|
|
13
15
|
import hypothesis.extra.numpy as npst
|
|
16
|
+
import hypothesis.strategies as st
|
|
14
17
|
import numpy as np
|
|
15
18
|
from hypothesis import given
|
|
16
19
|
|
|
17
20
|
import xarray as xr
|
|
18
|
-
from xarray.
|
|
21
|
+
from xarray.coding.times import _parse_iso8601
|
|
22
|
+
from xarray.testing.strategies import CFTimeStrategyISO8601, variables
|
|
23
|
+
from xarray.tests import requires_cftime
|
|
19
24
|
|
|
20
25
|
|
|
21
26
|
@pytest.mark.slow
|
|
@@ -43,3 +48,13 @@ def test_CFScaleOffset_coder_roundtrip(original) -> None:
|
|
|
43
48
|
coder = xr.coding.variables.CFScaleOffsetCoder()
|
|
44
49
|
roundtripped = coder.decode(coder.encode(original))
|
|
45
50
|
xr.testing.assert_identical(original, roundtripped)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@requires_cftime
|
|
54
|
+
@given(dt=st.datetimes() | CFTimeStrategyISO8601())
|
|
55
|
+
def test_iso8601_decode(dt):
|
|
56
|
+
iso = dt.isoformat()
|
|
57
|
+
with warnings.catch_warnings():
|
|
58
|
+
warnings.filterwarnings("ignore", message=".*date/calendar/year zero.*")
|
|
59
|
+
parsed, _ = _parse_iso8601(type(dt), iso)
|
|
60
|
+
assert dt == parsed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
authors = [
|
|
3
|
-
{name = "xarray Developers", email = "xarray@googlegroups.com"},
|
|
3
|
+
{ name = "xarray Developers", email = "xarray@googlegroups.com" },
|
|
4
4
|
]
|
|
5
5
|
classifiers = [
|
|
6
6
|
"Development Status :: 5 - Production/Stable",
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
]
|
|
17
17
|
description = "N-D labeled arrays and datasets in Python"
|
|
18
18
|
dynamic = ["version"]
|
|
19
|
-
license = {text = "Apache-2.0"}
|
|
19
|
+
license = { text = "Apache-2.0" }
|
|
20
20
|
name = "xarray"
|
|
21
21
|
readme = "README.md"
|
|
22
22
|
requires-python = ">=3.10"
|
|
@@ -45,12 +45,21 @@ dev = [
|
|
|
45
45
|
"pytest-env",
|
|
46
46
|
"pytest-xdist",
|
|
47
47
|
"pytest-timeout",
|
|
48
|
-
"ruff",
|
|
48
|
+
"ruff>=0.8.0",
|
|
49
49
|
"sphinx",
|
|
50
50
|
"sphinx_autosummary_accessors",
|
|
51
51
|
"xarray[complete]",
|
|
52
52
|
]
|
|
53
|
-
io = [
|
|
53
|
+
io = [
|
|
54
|
+
"netCDF4",
|
|
55
|
+
"h5netcdf",
|
|
56
|
+
"scipy",
|
|
57
|
+
'pydap; python_version<"3.10"',
|
|
58
|
+
"zarr",
|
|
59
|
+
"fsspec",
|
|
60
|
+
"cftime",
|
|
61
|
+
"pooch",
|
|
62
|
+
]
|
|
54
63
|
etc = ["sparse"]
|
|
55
64
|
parallel = ["dask[complete]"]
|
|
56
65
|
viz = ["cartopy", "matplotlib", "nc-time-axis", "seaborn"]
|
|
@@ -249,14 +258,13 @@ extend-select = [
|
|
|
249
258
|
"RUF",
|
|
250
259
|
]
|
|
251
260
|
extend-safe-fixes = [
|
|
252
|
-
"TID252",
|
|
261
|
+
"TID252", # absolute imports
|
|
253
262
|
]
|
|
254
263
|
ignore = [
|
|
255
264
|
"E402", # module level import not at top of file
|
|
256
265
|
"E501", # line too long - let the formatter worry about that
|
|
257
266
|
"E731", # do not assign a lambda expression, use a def
|
|
258
267
|
"UP007", # use X | Y for type annotations
|
|
259
|
-
"UP027", # deprecated
|
|
260
268
|
"C40", # unnecessary generator, comprehension, or literal
|
|
261
269
|
"PIE790", # unnecessary pass statement
|
|
262
270
|
"PERF203", # try-except within a loop incurs performance overhead
|
|
@@ -328,7 +336,10 @@ filterwarnings = [
|
|
|
328
336
|
"default:the `pandas.MultiIndex` object:FutureWarning:xarray.tests.test_variable",
|
|
329
337
|
"default:Using a non-tuple sequence for multidimensional indexing is deprecated:FutureWarning",
|
|
330
338
|
"default:Duplicate dimension names present:UserWarning:xarray.namedarray.core",
|
|
331
|
-
|
|
339
|
+
# TODO: this is raised for vlen-utf8, consolidated metadata, U1 dtype
|
|
340
|
+
"ignore:is currently not part .* the Zarr version 3 specification.",
|
|
341
|
+
# TODO: remove once we know how to deal with a changed signature in protocols
|
|
342
|
+
"default:::xarray.tests.test_strategies",
|
|
332
343
|
]
|
|
333
344
|
|
|
334
345
|
log_cli_level = "INFO"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from importlib.metadata import version as _version
|
|
2
2
|
|
|
3
|
-
from xarray import groupers, testing, tutorial, ufuncs
|
|
3
|
+
from xarray import coders, groupers, testing, tutorial, ufuncs
|
|
4
4
|
from xarray.backends.api import (
|
|
5
5
|
load_dataarray,
|
|
6
6
|
load_dataset,
|
|
@@ -64,8 +64,9 @@ except Exception:
|
|
|
64
64
|
|
|
65
65
|
# A hardcoded __all__ variable is necessary to appease
|
|
66
66
|
# `mypy --strict` running in projects that import xarray.
|
|
67
|
-
__all__ = (
|
|
67
|
+
__all__ = ( # noqa: RUF022
|
|
68
68
|
# Sub-packages
|
|
69
|
+
"coders",
|
|
69
70
|
"groupers",
|
|
70
71
|
"testing",
|
|
71
72
|
"tutorial",
|
|
@@ -117,8 +118,8 @@ __all__ = (
|
|
|
117
118
|
"Context",
|
|
118
119
|
"Coordinates",
|
|
119
120
|
"DataArray",
|
|
120
|
-
"Dataset",
|
|
121
121
|
"DataTree",
|
|
122
|
+
"Dataset",
|
|
122
123
|
"Index",
|
|
123
124
|
"IndexSelResult",
|
|
124
125
|
"IndexVariable",
|
|
@@ -131,6 +132,6 @@ __all__ = (
|
|
|
131
132
|
"SerializationWarning",
|
|
132
133
|
"TreeIsomorphismError",
|
|
133
134
|
# Constants
|
|
134
|
-
"__version__",
|
|
135
135
|
"ALL_DIMS",
|
|
136
|
+
"__version__",
|
|
136
137
|
)
|