xarray 2024.3.0__tar.gz → 2024.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xarray-2024.3.0 → xarray-2024.6.0}/.binder/environment.yml +0 -1
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/workflows/benchmarks.yml +3 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/workflows/ci-additional.yaml +11 -9
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/workflows/ci.yaml +27 -11
- xarray-2024.6.0/.github/workflows/hypothesis.yaml +119 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/workflows/pypi-release.yaml +2 -2
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/workflows/upstream-dev-ci.yaml +4 -1
- {xarray-2024.3.0 → xarray-2024.6.0}/.gitignore +3 -2
- {xarray-2024.3.0 → xarray-2024.6.0}/.pre-commit-config.yaml +5 -5
- {xarray-2024.3.0 → xarray-2024.6.0}/CITATION.cff +14 -0
- xarray-2024.6.0/MANIFEST.in +2 -0
- {xarray-2024.3.0/xarray.egg-info → xarray-2024.6.0}/PKG-INFO +4 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/asv.conf.json +8 -4
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/dataarray_missing.py +1 -1
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/groupby.py +9 -8
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/indexing.py +11 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/ci/install-upstream-wheels.sh +23 -29
- {xarray-2024.3.0 → xarray-2024.6.0}/ci/min_deps_check.py +6 -6
- {xarray-2024.3.0 → xarray-2024.6.0}/ci/requirements/bare-minimum.yml +2 -2
- {xarray-2024.3.0 → xarray-2024.6.0}/ci/requirements/doc.yml +2 -2
- {xarray-2024.3.0 → xarray-2024.6.0}/ci/requirements/environment-windows.yml +1 -1
- {xarray-2024.3.0 → xarray-2024.6.0}/ci/requirements/environment.yml +1 -1
- {xarray-2024.3.0 → xarray-2024.6.0}/ci/requirements/min-all-deps.yml +11 -11
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/style.css +2 -5
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/conf.py +1 -1
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/ecosystem.rst +1 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/examples/multidimensional-coords.ipynb +0 -7
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/getting-started-guide/installing.rst +0 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/computation.rst +1 -1
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/data-structures.rst +33 -20
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/io.rst +8 -25
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/pandas.rst +20 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/whats-new.rst +133 -3
- xarray-2024.6.0/licenses/ANYTREE_LICENSE +201 -0
- xarray-2024.6.0/properties/conftest.py +29 -0
- xarray-2024.6.0/properties/test_index_manipulation.py +273 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/properties/test_pandas_roundtrip.py +30 -1
- {xarray-2024.3.0 → xarray-2024.6.0}/pyproject.toml +61 -15
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/__init__.py +0 -2
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/api.py +32 -181
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/common.py +0 -30
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/h5netcdf_.py +51 -5
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/netCDF4_.py +50 -5
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/zarr.py +342 -105
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/coding/calendar_ops.py +45 -8
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/coding/cftime_offsets.py +15 -2
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/coding/times.py +1 -9
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/coding/variables.py +1 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/arithmetic.py +2 -2
- xarray-2024.6.0/xarray/core/array_api_compat.py +44 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/common.py +18 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/computation.py +1 -5
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/concat.py +52 -15
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/dataarray.py +49 -23
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/dataset.py +187 -73
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/datatree.py +64 -23
- xarray-2024.6.0/xarray/core/datatree_io.py +171 -0
- xarray-2024.6.0/xarray/core/datatree_mapping.py +314 -0
- xarray-2024.6.0/xarray/core/datatree_ops.py +309 -0
- xarray-2024.6.0/xarray/core/datatree_render.py +266 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/dtypes.py +96 -25
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/duck_array_ops.py +90 -31
- xarray-2024.6.0/xarray/core/extension_array.py +134 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/extensions.py +18 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/formatting.py +117 -2
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/formatting_html.py +131 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/indexes.py +61 -8
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/indexing.py +46 -19
- xarray-2024.6.0/xarray/core/iterators.py +130 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/missing.py +4 -4
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/npcompat.py +30 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/resample.py +5 -4
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/treenode.py +2 -2
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/types.py +4 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/variable.py +73 -49
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/weighted.py +3 -2
- xarray-2024.6.0/xarray/datatree_/datatree/__init__.py +7 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/namedarray/_array_api.py +10 -19
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/namedarray/core.py +19 -1
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/testing/__init__.py +1 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/testing/assertions.py +123 -10
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/testing/strategies.py +30 -6
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/__init__.py +57 -58
- xarray-2024.6.0/xarray/tests/arrays.py +179 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_array_api.py +8 -17
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_assertions.py +20 -1
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_backends.py +171 -51
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_backends_datatree.py +1 -1
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_calendar_ops.py +39 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_cftime_offsets.py +14 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_coding_times.py +6 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_combine.py +6 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_computation.py +12 -12
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_concat.py +112 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_dataarray.py +20 -7
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_dataset.py +107 -19
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_datatree.py +216 -44
- xarray-2024.6.0/xarray/tests/test_datatree_mapping.py +347 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_dtypes.py +80 -4
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_duck_array_ops.py +115 -2
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_extensions.py +9 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_formatting.py +107 -5
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_formatting_html.py +195 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_groupby.py +31 -15
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_merge.py +1 -1
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_missing.py +4 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_namedarray.py +19 -30
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_plot.py +44 -37
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_plugins.py +0 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_rolling.py +3 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_sparse.py +3 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_strategies.py +17 -8
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_treenode.py +5 -22
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_units.py +5 -8
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_variable.py +29 -14
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/util/deprecation_helpers.py +4 -4
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/util/print_versions.py +0 -1
- {xarray-2024.3.0 → xarray-2024.6.0/xarray.egg-info}/PKG-INFO +4 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray.egg-info/SOURCES.txt +15 -3
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray.egg-info/requires.txt +3 -2
- xarray-2024.3.0/MANIFEST.in +0 -1
- xarray-2024.3.0/properties/conftest.py +0 -8
- xarray-2024.3.0/xarray/backends/pynio_.py +0 -164
- {xarray-2024.3.0 → xarray-2024.6.0}/.codecov.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.git-blame-ignore-revs +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.git_archival.txt +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.gitattributes +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/FUNDING.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/ISSUE_TEMPLATE/bugreport.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/ISSUE_TEMPLATE/misc.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/ISSUE_TEMPLATE/newfeature.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/config.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/dependabot.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/stale.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/workflows/benchmarks-last-release.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/workflows/configure-testpypi-version.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/workflows/nightly-wheels.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.github/workflows/publish-test-results.yaml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.pep8speaks.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/.readthedocs.yaml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/CODE_OF_CONDUCT.md +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/CONTRIBUTING.md +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/CORE_TEAM_GUIDE.md +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/HOW_TO_RELEASE.md +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/LICENSE +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/README.md +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/README_CI.md +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/__init__.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/accessors.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/alignment.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/combine.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/dataset.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/dataset_io.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/import.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/interp.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/merge.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/pandas.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/polyfit.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/reindexing.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/renaming.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/repr.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/rolling.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/asv_bench/benchmarks/unstacking.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/ci/requirements/all-but-dask.yml +0 -0
- /xarray-2024.3.0/ci/requirements/environment-3.12.yml → /xarray-2024.6.0/ci/requirements/environment-3.13.yml +0 -0
- /xarray-2024.3.0/ci/requirements/environment-windows-3.12.yml → /xarray-2024.6.0/ci/requirements/environment-windows-3.13.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/conftest.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/design_notes/flexible_indexes_notes.md +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/design_notes/grouper_objects.md +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/design_notes/named_array_design_doc.md +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/Makefile +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/README.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/.gitignore +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/advanced_selection_interpolation.svg +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/ci.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/dask_array.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/dataset-diagram.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/index_api.svg +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/index_contribute.svg +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/index_getting_started.svg +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/index_user_guide.svg +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/logos/Xarray_Icon_Final.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/logos/Xarray_Icon_Final.svg +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.svg +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/logos/Xarray_Logo_RGB_Final.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/logos/Xarray_Logo_RGB_Final.svg +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/numfocus_logo.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/opendap-prism-tmax.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/thumbnails/ERA5-GRIB-example.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/thumbnails/ROMS_ocean_model.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/thumbnails/area_weighted_temperature.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/thumbnails/monthly-means.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/thumbnails/multidimensional-coords.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/thumbnails/toy-weather-data.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/thumbnails/visualization_gallery.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_static/view-docs.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_templates/autosummary/accessor.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_templates/autosummary/accessor_attribute.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_templates/autosummary/accessor_callable.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/_templates/autosummary/accessor_method.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/api-hidden.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/api.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/contributing.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/developers-meeting.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/examples/ERA5-GRIB-example.ipynb +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/examples/ROMS_ocean_model.ipynb +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/examples/_code/accessor_example.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/examples/apply_ufunc_vectorize_1d.ipynb +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/examples/area_weighted_temperature.ipynb +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/examples/blank_template.ipynb +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/examples/monthly-means.ipynb +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/examples/monthly_means_output.png +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/examples/visualization_gallery.ipynb +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/examples/weather-data.ipynb +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/gallery/README.txt +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/gallery/plot_cartopy_facetgrid.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/gallery/plot_colorbar_center.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/gallery/plot_control_colorbar.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/gallery/plot_lines_from_2d.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/gallery.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/gallery.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/getting-started-guide/faq.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/getting-started-guide/index.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/getting-started-guide/quick-overview.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/getting-started-guide/why-xarray.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/howdoi.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/index.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/internals/chunked-arrays.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/internals/duck-arrays-integration.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/internals/extending-xarray.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/internals/how-to-add-new-backend.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/internals/how-to-create-custom-index.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/internals/index.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/internals/internal-design.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/internals/interoperability.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/internals/zarr-encoding-spec.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/roadmap.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/tutorials-and-videos.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/combining.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/dask.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/duckarrays.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/groupby.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/index.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/indexing.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/interpolation.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/options.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/plotting.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/reshaping.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/terminology.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/testing.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/time-series.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/user-guide/weather-climate.rst +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/doc/videos.yml +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/licenses/DASK_LICENSE +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/licenses/ICOMOON_LICENSE +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/licenses/NUMPY_LICENSE +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/licenses/PANDAS_LICENSE +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/licenses/PYTHON_LICENSE +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/licenses/SCIKIT_LEARN_LICENSE +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/licenses/SEABORN_LICENSE +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/properties/README.md +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/properties/test_encode_decode.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/setup.cfg +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/setup.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/__init__.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/file_manager.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/locks.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/lru_cache.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/memory.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/netcdf3.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/plugins.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/pydap_.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/scipy_.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/backends/store.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/coding/__init__.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/coding/cftimeindex.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/coding/frequencies.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/coding/strings.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/conventions.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/convert.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/__init__.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/_aggregations.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/_typed_ops.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/accessor_dt.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/accessor_str.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/alignment.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/combine.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/coordinates.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/dask_array_ops.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/groupby.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/merge.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/nanops.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/nputils.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/ops.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/options.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/parallel.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/pdcompat.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/resample_cftime.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/rolling.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/rolling_exp.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/core/utils.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/indexes/__init__.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/namedarray/__init__.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/namedarray/_aggregations.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/namedarray/_typing.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/namedarray/daskmanager.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/namedarray/dtypes.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/namedarray/parallelcompat.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/namedarray/pycompat.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/namedarray/utils.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/plot/__init__.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/plot/accessor.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/plot/dataarray_plot.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/plot/dataset_plot.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/plot/facetgrid.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/plot/utils.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/py.typed +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/static/__init__.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/static/css/__init__.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/static/css/style.css +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/static/html/__init__.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/static/html/icons-svg-inline.html +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/conftest.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/data/bears.nc +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/data/example.grib +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/data/example.ict +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/data/example.uamiv +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/data/example_1.nc +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/data/example_1.nc.gz +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_accessor_dt.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_accessor_str.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_backends_api.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_backends_common.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_backends_file_manager.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_backends_locks.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_backends_lru_cache.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_cftimeindex.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_cftimeindex_resample.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_coarsen.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_coding.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_coding_strings.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_conventions.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_coordinates.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_cupy.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_dask.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_deprecation_helpers.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_distributed.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_error_messages.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_hashable.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_indexes.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_indexing.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_interp.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_nputils.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_options.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_parallelcompat.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_print_versions.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_tutorial.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_typed_ops.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_ufuncs.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_utils.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tests/test_weighted.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/tutorial.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/util/__init__.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/util/generate_aggregations.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray/util/generate_ops.py +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray.egg-info/dependency_links.txt +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray.egg-info/entry_points.txt +0 -0
- {xarray-2024.3.0 → xarray-2024.6.0}/xarray.egg-info/top_level.txt +0 -0
|
@@ -28,8 +28,11 @@ jobs:
|
|
|
28
28
|
environment-name: xarray-tests
|
|
29
29
|
cache-environment: true
|
|
30
30
|
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}-benchmark"
|
|
31
|
+
# add "build" because of https://github.com/airspeed-velocity/asv/issues/1385
|
|
31
32
|
create-args: >-
|
|
32
33
|
asv
|
|
34
|
+
build
|
|
35
|
+
mamba
|
|
33
36
|
|
|
34
37
|
|
|
35
38
|
- name: Run benchmarks
|
|
@@ -47,9 +50,6 @@ jobs:
|
|
|
47
50
|
asv machine --yes
|
|
48
51
|
echo "Baseline: ${{ github.event.pull_request.base.sha }} (${{ github.event.pull_request.base.label }})"
|
|
49
52
|
echo "Contender: ${GITHUB_SHA} (${{ github.event.pull_request.head.label }})"
|
|
50
|
-
# Use mamba for env creation
|
|
51
|
-
# export CONDA_EXE=$(which mamba)
|
|
52
|
-
export CONDA_EXE=$(which conda)
|
|
53
53
|
# Run benchmarks for current commit against base
|
|
54
54
|
ASV_OPTIONS="--split --show-stderr --factor $ASV_FACTOR"
|
|
55
55
|
asv continuous $ASV_OPTIONS ${{ github.event.pull_request.base.sha }} ${GITHUB_SHA} \
|
|
@@ -12,6 +12,9 @@ concurrency:
|
|
|
12
12
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
13
13
|
cancel-in-progress: true
|
|
14
14
|
|
|
15
|
+
env:
|
|
16
|
+
FORCE_COLOR: 3
|
|
17
|
+
|
|
15
18
|
jobs:
|
|
16
19
|
detect-ci-trigger:
|
|
17
20
|
name: detect ci trigger
|
|
@@ -35,14 +38,13 @@ jobs:
|
|
|
35
38
|
runs-on: "ubuntu-latest"
|
|
36
39
|
needs: detect-ci-trigger
|
|
37
40
|
if: needs.detect-ci-trigger.outputs.triggered == 'false'
|
|
41
|
+
|
|
38
42
|
defaults:
|
|
39
43
|
run:
|
|
40
44
|
shell: bash -l {0}
|
|
41
|
-
|
|
42
45
|
env:
|
|
43
46
|
CONDA_ENV_FILE: ci/requirements/environment.yml
|
|
44
|
-
PYTHON_VERSION: "3.
|
|
45
|
-
|
|
47
|
+
PYTHON_VERSION: "3.12"
|
|
46
48
|
steps:
|
|
47
49
|
- uses: actions/checkout@v4
|
|
48
50
|
with:
|
|
@@ -128,7 +130,7 @@ jobs:
|
|
|
128
130
|
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
|
|
129
131
|
|
|
130
132
|
- name: Upload mypy coverage to Codecov
|
|
131
|
-
uses: codecov/codecov-action@v4.1
|
|
133
|
+
uses: codecov/codecov-action@v4.4.1
|
|
132
134
|
with:
|
|
133
135
|
file: mypy_report/cobertura.xml
|
|
134
136
|
flags: mypy
|
|
@@ -182,7 +184,7 @@ jobs:
|
|
|
182
184
|
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
|
|
183
185
|
|
|
184
186
|
- name: Upload mypy coverage to Codecov
|
|
185
|
-
uses: codecov/codecov-action@v4.1
|
|
187
|
+
uses: codecov/codecov-action@v4.4.1
|
|
186
188
|
with:
|
|
187
189
|
file: mypy_report/cobertura.xml
|
|
188
190
|
flags: mypy39
|
|
@@ -206,7 +208,7 @@ jobs:
|
|
|
206
208
|
shell: bash -l {0}
|
|
207
209
|
env:
|
|
208
210
|
CONDA_ENV_FILE: ci/requirements/environment.yml
|
|
209
|
-
PYTHON_VERSION: "3.
|
|
211
|
+
PYTHON_VERSION: "3.12"
|
|
210
212
|
|
|
211
213
|
steps:
|
|
212
214
|
- uses: actions/checkout@v4
|
|
@@ -243,7 +245,7 @@ jobs:
|
|
|
243
245
|
python -m pyright xarray/
|
|
244
246
|
|
|
245
247
|
- name: Upload pyright coverage to Codecov
|
|
246
|
-
uses: codecov/codecov-action@v4.1
|
|
248
|
+
uses: codecov/codecov-action@v4.4.1
|
|
247
249
|
with:
|
|
248
250
|
file: pyright_report/cobertura.xml
|
|
249
251
|
flags: pyright
|
|
@@ -302,7 +304,7 @@ jobs:
|
|
|
302
304
|
python -m pyright xarray/
|
|
303
305
|
|
|
304
306
|
- name: Upload pyright coverage to Codecov
|
|
305
|
-
uses: codecov/codecov-action@v4.1
|
|
307
|
+
uses: codecov/codecov-action@v4.4.1
|
|
306
308
|
with:
|
|
307
309
|
file: pyright_report/cobertura.xml
|
|
308
310
|
flags: pyright39
|
|
@@ -331,7 +333,7 @@ jobs:
|
|
|
331
333
|
with:
|
|
332
334
|
environment-name: xarray-tests
|
|
333
335
|
create-args: >-
|
|
334
|
-
python=3.
|
|
336
|
+
python=3.12
|
|
335
337
|
pyyaml
|
|
336
338
|
conda
|
|
337
339
|
python-dateutil
|
|
@@ -12,6 +12,9 @@ concurrency:
|
|
|
12
12
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
13
13
|
cancel-in-progress: true
|
|
14
14
|
|
|
15
|
+
env:
|
|
16
|
+
FORCE_COLOR: 3
|
|
17
|
+
|
|
15
18
|
jobs:
|
|
16
19
|
detect-ci-trigger:
|
|
17
20
|
name: detect ci trigger
|
|
@@ -44,7 +47,7 @@ jobs:
|
|
|
44
47
|
matrix:
|
|
45
48
|
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
|
|
46
49
|
# Bookend python versions
|
|
47
|
-
python-version: ["3.9",
|
|
50
|
+
python-version: ["3.9", "3.12"]
|
|
48
51
|
env: [""]
|
|
49
52
|
include:
|
|
50
53
|
# Minimum python version:
|
|
@@ -56,10 +59,11 @@ jobs:
|
|
|
56
59
|
os: ubuntu-latest
|
|
57
60
|
# Latest python version:
|
|
58
61
|
- env: "all-but-dask"
|
|
59
|
-
|
|
62
|
+
# Not 3.12 because of pint
|
|
63
|
+
python-version: "3.11"
|
|
60
64
|
os: ubuntu-latest
|
|
61
65
|
- env: "flaky"
|
|
62
|
-
python-version: "3.
|
|
66
|
+
python-version: "3.12"
|
|
63
67
|
os: ubuntu-latest
|
|
64
68
|
steps:
|
|
65
69
|
- uses: actions/checkout@v4
|
|
@@ -71,25 +75,30 @@ jobs:
|
|
|
71
75
|
|
|
72
76
|
if [[ ${{ matrix.os }} == windows* ]] ;
|
|
73
77
|
then
|
|
74
|
-
if [[ ${{ matrix.python-version }} != "3.
|
|
78
|
+
if [[ ${{ matrix.python-version }} != "3.13" ]]; then
|
|
75
79
|
echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV
|
|
76
80
|
else
|
|
77
|
-
echo "CONDA_ENV_FILE=ci/requirements/environment-windows-3.
|
|
81
|
+
echo "CONDA_ENV_FILE=ci/requirements/environment-windows-3.13.yml" >> $GITHUB_ENV
|
|
78
82
|
fi
|
|
79
83
|
elif [[ "${{ matrix.env }}" != "" ]] ;
|
|
80
84
|
then
|
|
81
85
|
if [[ "${{ matrix.env }}" == "flaky" ]] ;
|
|
82
86
|
then
|
|
83
87
|
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
|
|
84
|
-
echo "
|
|
88
|
+
echo "PYTEST_ADDOPTS=-m 'flaky or network' --run-flaky --run-network-tests -W default" >> $GITHUB_ENV
|
|
85
89
|
else
|
|
86
90
|
echo "CONDA_ENV_FILE=ci/requirements/${{ matrix.env }}.yml" >> $GITHUB_ENV
|
|
87
91
|
fi
|
|
92
|
+
if [[ "${{ matrix.env }}" == "min-all-deps" ]] ;
|
|
93
|
+
then
|
|
94
|
+
# Don't raise on warnings
|
|
95
|
+
echo "PYTEST_ADDOPTS=-W default" >> $GITHUB_ENV
|
|
96
|
+
fi
|
|
88
97
|
else
|
|
89
|
-
if [[ ${{ matrix.python-version }} != "3.
|
|
98
|
+
if [[ ${{ matrix.python-version }} != "3.13" ]]; then
|
|
90
99
|
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
|
|
91
100
|
else
|
|
92
|
-
echo "CONDA_ENV_FILE=ci/requirements/environment-3.
|
|
101
|
+
echo "CONDA_ENV_FILE=ci/requirements/environment-3.13.yml" >> $GITHUB_ENV
|
|
93
102
|
fi
|
|
94
103
|
fi
|
|
95
104
|
|
|
@@ -109,7 +118,7 @@ jobs:
|
|
|
109
118
|
# We only want to install this on one run, because otherwise we'll have
|
|
110
119
|
# duplicate annotations.
|
|
111
120
|
- name: Install error reporter
|
|
112
|
-
if: ${{ matrix.os }} == 'ubuntu-latest' and ${{ matrix.python-version }} == '3.
|
|
121
|
+
if: ${{ matrix.os }} == 'ubuntu-latest' and ${{ matrix.python-version }} == '3.12'
|
|
113
122
|
run: |
|
|
114
123
|
python -m pip install pytest-github-actions-annotate-failures
|
|
115
124
|
|
|
@@ -127,13 +136,20 @@ jobs:
|
|
|
127
136
|
run: |
|
|
128
137
|
python -c "import xarray"
|
|
129
138
|
|
|
139
|
+
- name: Restore cached hypothesis directory
|
|
140
|
+
uses: actions/cache@v4
|
|
141
|
+
with:
|
|
142
|
+
path: .hypothesis/
|
|
143
|
+
key: cache-hypothesis
|
|
144
|
+
enableCrossOsArchive: true
|
|
145
|
+
save-always: true
|
|
146
|
+
|
|
130
147
|
- name: Run tests
|
|
131
148
|
run: python -m pytest -n 4
|
|
132
149
|
--timeout 180
|
|
133
150
|
--cov=xarray
|
|
134
151
|
--cov-report=xml
|
|
135
152
|
--junitxml=pytest.xml
|
|
136
|
-
$PYTEST_EXTRA_FLAGS
|
|
137
153
|
|
|
138
154
|
- name: Upload test results
|
|
139
155
|
if: always()
|
|
@@ -143,7 +159,7 @@ jobs:
|
|
|
143
159
|
path: pytest.xml
|
|
144
160
|
|
|
145
161
|
- name: Upload code coverage to Codecov
|
|
146
|
-
uses: codecov/codecov-action@v4.1
|
|
162
|
+
uses: codecov/codecov-action@v4.4.1
|
|
147
163
|
with:
|
|
148
164
|
file: ./coverage.xml
|
|
149
165
|
flags: unittests
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
name: Slow Hypothesis CI
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- "main"
|
|
6
|
+
pull_request:
|
|
7
|
+
branches:
|
|
8
|
+
- "main"
|
|
9
|
+
types: [opened, reopened, synchronize, labeled]
|
|
10
|
+
schedule:
|
|
11
|
+
- cron: "0 0 * * *" # Daily “At 00:00” UTC
|
|
12
|
+
workflow_dispatch: # allows you to trigger manually
|
|
13
|
+
|
|
14
|
+
env:
|
|
15
|
+
FORCE_COLOR: 3
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
detect-ci-trigger:
|
|
19
|
+
name: detect ci trigger
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
if: |
|
|
22
|
+
github.repository == 'pydata/xarray'
|
|
23
|
+
&& (github.event_name == 'push' || github.event_name == 'pull_request')
|
|
24
|
+
outputs:
|
|
25
|
+
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v4
|
|
28
|
+
with:
|
|
29
|
+
fetch-depth: 2
|
|
30
|
+
- uses: xarray-contrib/ci-trigger@v1
|
|
31
|
+
id: detect-trigger
|
|
32
|
+
with:
|
|
33
|
+
keyword: "[skip-ci]"
|
|
34
|
+
|
|
35
|
+
hypothesis:
|
|
36
|
+
name: Slow Hypothesis Tests
|
|
37
|
+
runs-on: "ubuntu-latest"
|
|
38
|
+
needs: detect-ci-trigger
|
|
39
|
+
if: |
|
|
40
|
+
always()
|
|
41
|
+
&& (
|
|
42
|
+
needs.detect-ci-trigger.outputs.triggered == 'false'
|
|
43
|
+
&& ( (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
|
|
44
|
+
|| contains( github.event.pull_request.labels.*.name, 'run-slow-hypothesis'))
|
|
45
|
+
)
|
|
46
|
+
defaults:
|
|
47
|
+
run:
|
|
48
|
+
shell: bash -l {0}
|
|
49
|
+
|
|
50
|
+
env:
|
|
51
|
+
CONDA_ENV_FILE: ci/requirements/environment.yml
|
|
52
|
+
PYTHON_VERSION: "3.12"
|
|
53
|
+
|
|
54
|
+
steps:
|
|
55
|
+
- uses: actions/checkout@v4
|
|
56
|
+
with:
|
|
57
|
+
fetch-depth: 0 # Fetch all history for all branches and tags.
|
|
58
|
+
|
|
59
|
+
- name: set environment variables
|
|
60
|
+
run: |
|
|
61
|
+
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
|
|
62
|
+
|
|
63
|
+
- name: Setup micromamba
|
|
64
|
+
uses: mamba-org/setup-micromamba@v1
|
|
65
|
+
with:
|
|
66
|
+
environment-file: ci/requirements/environment.yml
|
|
67
|
+
environment-name: xarray-tests
|
|
68
|
+
create-args: >-
|
|
69
|
+
python=${{env.PYTHON_VERSION}}
|
|
70
|
+
pytest-reportlog
|
|
71
|
+
cache-environment: true
|
|
72
|
+
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
|
|
73
|
+
|
|
74
|
+
- name: Install xarray
|
|
75
|
+
run: |
|
|
76
|
+
python -m pip install --no-deps -e .
|
|
77
|
+
- name: Version info
|
|
78
|
+
run: |
|
|
79
|
+
conda info -a
|
|
80
|
+
conda list
|
|
81
|
+
python xarray/util/print_versions.py
|
|
82
|
+
|
|
83
|
+
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
|
|
84
|
+
- name: Restore cached hypothesis directory
|
|
85
|
+
id: restore-hypothesis-cache
|
|
86
|
+
uses: actions/cache/restore@v4
|
|
87
|
+
with:
|
|
88
|
+
path: .hypothesis/
|
|
89
|
+
key: cache-hypothesis-${{ runner.os }}-${{ github.run_id }}
|
|
90
|
+
restore-keys: |
|
|
91
|
+
cache-hypothesis-
|
|
92
|
+
|
|
93
|
+
- name: Run slow Hypothesis tests
|
|
94
|
+
if: success()
|
|
95
|
+
id: status
|
|
96
|
+
run: |
|
|
97
|
+
python -m pytest --hypothesis-show-statistics --run-slow-hypothesis properties/*.py \
|
|
98
|
+
--report-log output-${{ matrix.python-version }}-log.jsonl
|
|
99
|
+
|
|
100
|
+
# explicitly save the cache so it gets updated, also do this even if it fails.
|
|
101
|
+
- name: Save cached hypothesis directory
|
|
102
|
+
id: save-hypothesis-cache
|
|
103
|
+
if: always() && steps.status.outcome != 'skipped'
|
|
104
|
+
uses: actions/cache/save@v4
|
|
105
|
+
with:
|
|
106
|
+
path: .hypothesis/
|
|
107
|
+
key: cache-hypothesis-${{ runner.os }}-${{ github.run_id }}
|
|
108
|
+
|
|
109
|
+
- name: Generate and publish the report
|
|
110
|
+
if: |
|
|
111
|
+
failure()
|
|
112
|
+
&& steps.status.outcome == 'failure'
|
|
113
|
+
&& github.event_name == 'schedule'
|
|
114
|
+
&& github.repository_owner == 'pydata'
|
|
115
|
+
uses: xarray-contrib/issue-from-pytest-log@v1
|
|
116
|
+
with:
|
|
117
|
+
log-path: output-${{ matrix.python-version }}-log.jsonl
|
|
118
|
+
issue-title: "Nightly Hypothesis tests failed"
|
|
119
|
+
issue-label: "topic-hypothesis"
|
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
- uses: actions/setup-python@v5
|
|
19
19
|
name: Install Python
|
|
20
20
|
with:
|
|
21
|
-
python-version: "3.
|
|
21
|
+
python-version: "3.12"
|
|
22
22
|
|
|
23
23
|
- name: Install dependencies
|
|
24
24
|
run: |
|
|
@@ -53,7 +53,7 @@ jobs:
|
|
|
53
53
|
- uses: actions/setup-python@v5
|
|
54
54
|
name: Install Python
|
|
55
55
|
with:
|
|
56
|
-
python-version: "3.
|
|
56
|
+
python-version: "3.12"
|
|
57
57
|
- uses: actions/download-artifact@v4
|
|
58
58
|
with:
|
|
59
59
|
name: releases
|
|
@@ -15,6 +15,9 @@ concurrency:
|
|
|
15
15
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
16
16
|
cancel-in-progress: true
|
|
17
17
|
|
|
18
|
+
env:
|
|
19
|
+
FORCE_COLOR: 3
|
|
20
|
+
|
|
18
21
|
jobs:
|
|
19
22
|
detect-ci-trigger:
|
|
20
23
|
name: detect upstream-dev ci trigger
|
|
@@ -143,7 +146,7 @@ jobs:
|
|
|
143
146
|
run: |
|
|
144
147
|
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
|
|
145
148
|
- name: Upload mypy coverage to Codecov
|
|
146
|
-
uses: codecov/codecov-action@v4.1
|
|
149
|
+
uses: codecov/codecov-action@v4.4.1
|
|
147
150
|
with:
|
|
148
151
|
file: mypy_report/cobertura.xml
|
|
149
152
|
flags: mypy
|
|
@@ -50,7 +50,8 @@ nosetests.xml
|
|
|
50
50
|
dask-worker-space/
|
|
51
51
|
|
|
52
52
|
# asv environments
|
|
53
|
-
|
|
53
|
+
asv_bench/.asv
|
|
54
|
+
asv_bench/pkgs
|
|
54
55
|
|
|
55
56
|
# Translations
|
|
56
57
|
*.mo
|
|
@@ -68,7 +69,7 @@ dask-worker-space/
|
|
|
68
69
|
|
|
69
70
|
# xarray specific
|
|
70
71
|
doc/_build
|
|
71
|
-
generated/
|
|
72
|
+
doc/generated/
|
|
72
73
|
xarray/tests/data/*.grib.*.idx
|
|
73
74
|
|
|
74
75
|
# Sync tools
|
|
@@ -4,7 +4,7 @@ ci:
|
|
|
4
4
|
exclude: 'xarray/datatree_.*'
|
|
5
5
|
repos:
|
|
6
6
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
7
|
-
rev: v4.
|
|
7
|
+
rev: v4.6.0
|
|
8
8
|
hooks:
|
|
9
9
|
- id: trailing-whitespace
|
|
10
10
|
- id: end-of-file-fixer
|
|
@@ -13,13 +13,13 @@ repos:
|
|
|
13
13
|
- id: mixed-line-ending
|
|
14
14
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
15
15
|
# Ruff version.
|
|
16
|
-
rev: 'v0.
|
|
16
|
+
rev: 'v0.4.7'
|
|
17
17
|
hooks:
|
|
18
18
|
- id: ruff
|
|
19
19
|
args: ["--fix", "--show-fixes"]
|
|
20
20
|
# https://github.com/python/black#version-control-integration
|
|
21
21
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
22
|
-
rev: 24.
|
|
22
|
+
rev: 24.4.2
|
|
23
23
|
hooks:
|
|
24
24
|
- id: black-jupyter
|
|
25
25
|
- repo: https://github.com/keewis/blackdoc
|
|
@@ -27,10 +27,10 @@ repos:
|
|
|
27
27
|
hooks:
|
|
28
28
|
- id: blackdoc
|
|
29
29
|
exclude: "generate_aggregations.py"
|
|
30
|
-
additional_dependencies: ["black==24.
|
|
30
|
+
additional_dependencies: ["black==24.4.2"]
|
|
31
31
|
- id: blackdoc-autoupdate-black
|
|
32
32
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
33
|
-
rev: v1.
|
|
33
|
+
rev: v1.10.0
|
|
34
34
|
hooks:
|
|
35
35
|
- id: mypy
|
|
36
36
|
# Copied from setup.cfg
|
|
@@ -11,6 +11,7 @@ authors:
|
|
|
11
11
|
orcid: "https://orcid.org/0000-0001-7479-8439"
|
|
12
12
|
- family-names: "Magin"
|
|
13
13
|
given-names: "Justus"
|
|
14
|
+
orcid: "https://orcid.org/0000-0002-4254-8002"
|
|
14
15
|
- family-names: "Cherian"
|
|
15
16
|
given-names: "Deepak"
|
|
16
17
|
orcid: "https://orcid.org/0000-0002-6861-8734"
|
|
@@ -75,6 +76,19 @@ authors:
|
|
|
75
76
|
- family-names: "Wolfram"
|
|
76
77
|
given-names: "Phillip J."
|
|
77
78
|
orcid: "https://orcid.org/0000-0001-5971-4241"
|
|
79
|
+
- family-names: "Henderson"
|
|
80
|
+
given-names: "Scott"
|
|
81
|
+
orcid: "https://orcid.org/0000-0003-0624-4965"
|
|
82
|
+
- family-names: "Awowale"
|
|
83
|
+
given-names: "Eniola Olufunke"
|
|
84
|
+
- family-names: "Scheick"
|
|
85
|
+
given-names: "Jessica"
|
|
86
|
+
orcid: "https://orcid.org/0000-0002-3421-4459"
|
|
87
|
+
- family-names: "Savoie"
|
|
88
|
+
given-names: "Matthew"
|
|
89
|
+
orcid: "https://orcid.org/0000-0002-8881-2550"
|
|
90
|
+
- family-names: "Littlejohns"
|
|
91
|
+
given-names: "Owen"
|
|
78
92
|
title: "xarray"
|
|
79
93
|
abstract: "N-D labeled arrays and datasets in Python."
|
|
80
94
|
license: Apache-2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: xarray
|
|
3
|
-
Version: 2024.
|
|
3
|
+
Version: 2024.6.0
|
|
4
4
|
Summary: N-D labeled arrays and datasets in Python
|
|
5
5
|
Author-email: xarray Developers <xarray@googlegroups.com>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -24,8 +24,8 @@ Requires-Python: >=3.9
|
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
25
|
License-File: LICENSE
|
|
26
26
|
Requires-Dist: numpy>=1.23
|
|
27
|
-
Requires-Dist: packaging>=
|
|
28
|
-
Requires-Dist: pandas>=
|
|
27
|
+
Requires-Dist: packaging>=23.1
|
|
28
|
+
Requires-Dist: pandas>=2.0
|
|
29
29
|
Provides-Extra: accel
|
|
30
30
|
Requires-Dist: scipy; extra == "accel"
|
|
31
31
|
Requires-Dist: bottleneck; extra == "accel"
|
|
@@ -36,6 +36,7 @@ Provides-Extra: complete
|
|
|
36
36
|
Requires-Dist: xarray[accel,dev,io,parallel,viz]; extra == "complete"
|
|
37
37
|
Provides-Extra: dev
|
|
38
38
|
Requires-Dist: hypothesis; extra == "dev"
|
|
39
|
+
Requires-Dist: mypy; extra == "dev"
|
|
39
40
|
Requires-Dist: pre-commit; extra == "dev"
|
|
40
41
|
Requires-Dist: pytest; extra == "dev"
|
|
41
42
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
// If missing or the empty string, the tool will be automatically
|
|
30
30
|
// determined by looking for tools on the PATH environment
|
|
31
31
|
// variable.
|
|
32
|
-
"environment_type": "
|
|
32
|
+
"environment_type": "mamba",
|
|
33
33
|
"conda_channels": ["conda-forge"],
|
|
34
34
|
|
|
35
35
|
// timeout in seconds for installing any dependencies in environment
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
// The Pythons you'd like to test against. If not provided, defaults
|
|
43
43
|
// to the current version of Python used to run `asv`.
|
|
44
|
-
"pythons": ["3.
|
|
44
|
+
"pythons": ["3.11"],
|
|
45
45
|
|
|
46
46
|
// The matrix of dependencies to test. Each key is the name of a
|
|
47
47
|
// package (in PyPI) and the values are version numbers. An empty
|
|
@@ -72,8 +72,12 @@
|
|
|
72
72
|
"sparse": [""],
|
|
73
73
|
"cftime": [""]
|
|
74
74
|
},
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
// fix for bad builds
|
|
76
|
+
// https://github.com/airspeed-velocity/asv/issues/1389#issuecomment-2076131185
|
|
77
|
+
"build_command": [
|
|
78
|
+
"python -m build",
|
|
79
|
+
"python -mpip wheel --no-deps --no-build-isolation --no-index -w {build_cache_dir} {build_dir}"
|
|
80
|
+
],
|
|
77
81
|
// Combinations of libraries/python versions can be excluded/included
|
|
78
82
|
// from the set to test. Each entry is a dictionary containing additional
|
|
79
83
|
// key-value pairs to include/exclude.
|
|
@@ -68,6 +68,7 @@ class GroupByDask(GroupBy):
|
|
|
68
68
|
self.ds2d_mean = self.ds2d.groupby("b").mean().compute()
|
|
69
69
|
|
|
70
70
|
|
|
71
|
+
# TODO: These don't work now because we are calling `.compute` explicitly.
|
|
71
72
|
class GroupByPandasDataFrame(GroupBy):
|
|
72
73
|
"""Run groupby tests using pandas DataFrame."""
|
|
73
74
|
|
|
@@ -111,11 +112,11 @@ class Resample:
|
|
|
111
112
|
{
|
|
112
113
|
"b": ("time", np.arange(365.0 * 24)),
|
|
113
114
|
},
|
|
114
|
-
coords={"time": pd.date_range("2001-01-01", freq="
|
|
115
|
+
coords={"time": pd.date_range("2001-01-01", freq="h", periods=365 * 24)},
|
|
115
116
|
)
|
|
116
117
|
self.ds2d = self.ds1d.expand_dims(z=10)
|
|
117
|
-
self.ds1d_mean = self.ds1d.resample(time="
|
|
118
|
-
self.ds2d_mean = self.ds2d.resample(time="
|
|
118
|
+
self.ds1d_mean = self.ds1d.resample(time="48h").mean()
|
|
119
|
+
self.ds2d_mean = self.ds2d.resample(time="48h").mean()
|
|
119
120
|
|
|
120
121
|
@parameterized(["ndim"], [(1, 2)])
|
|
121
122
|
def time_init(self, ndim):
|
|
@@ -127,7 +128,7 @@ class Resample:
|
|
|
127
128
|
def time_agg_small_num_groups(self, method, ndim, use_flox):
|
|
128
129
|
ds = getattr(self, f"ds{ndim}d")
|
|
129
130
|
with xr.set_options(use_flox=use_flox):
|
|
130
|
-
getattr(ds.resample(time="
|
|
131
|
+
getattr(ds.resample(time="3ME"), method)().compute()
|
|
131
132
|
|
|
132
133
|
@parameterized(
|
|
133
134
|
["method", "ndim", "use_flox"], [("sum", "mean"), (1, 2), (True, False)]
|
|
@@ -135,7 +136,7 @@ class Resample:
|
|
|
135
136
|
def time_agg_large_num_groups(self, method, ndim, use_flox):
|
|
136
137
|
ds = getattr(self, f"ds{ndim}d")
|
|
137
138
|
with xr.set_options(use_flox=use_flox):
|
|
138
|
-
getattr(ds.resample(time="
|
|
139
|
+
getattr(ds.resample(time="48h"), method)().compute()
|
|
139
140
|
|
|
140
141
|
|
|
141
142
|
class ResampleDask(Resample):
|
|
@@ -154,13 +155,13 @@ class ResampleCFTime(Resample):
|
|
|
154
155
|
},
|
|
155
156
|
coords={
|
|
156
157
|
"time": xr.date_range(
|
|
157
|
-
"2001-01-01", freq="
|
|
158
|
+
"2001-01-01", freq="h", periods=365 * 24, calendar="noleap"
|
|
158
159
|
)
|
|
159
160
|
},
|
|
160
161
|
)
|
|
161
162
|
self.ds2d = self.ds1d.expand_dims(z=10)
|
|
162
|
-
self.ds1d_mean = self.ds1d.resample(time="
|
|
163
|
-
self.ds2d_mean = self.ds2d.resample(time="
|
|
163
|
+
self.ds1d_mean = self.ds1d.resample(time="48h").mean()
|
|
164
|
+
self.ds2d_mean = self.ds2d.resample(time="48h").mean()
|
|
164
165
|
|
|
165
166
|
|
|
166
167
|
@parameterized(["use_cftime", "use_flox"], [[True, False], [True, False]])
|
|
@@ -12,12 +12,14 @@ ny = 1000
|
|
|
12
12
|
nt = 500
|
|
13
13
|
|
|
14
14
|
basic_indexes = {
|
|
15
|
+
"1scalar": {"x": 0},
|
|
15
16
|
"1slice": {"x": slice(0, 3)},
|
|
16
17
|
"1slice-1scalar": {"x": 0, "y": slice(None, None, 3)},
|
|
17
18
|
"2slicess-1scalar": {"x": slice(3, -3, 3), "y": 1, "t": slice(None, -3, 3)},
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
basic_assignment_values = {
|
|
22
|
+
"1scalar": 0,
|
|
21
23
|
"1slice": xr.DataArray(randn((3, ny), frac_nan=0.1), dims=["x", "y"]),
|
|
22
24
|
"1slice-1scalar": xr.DataArray(randn(int(ny / 3) + 1, frac_nan=0.1), dims=["y"]),
|
|
23
25
|
"2slicess-1scalar": xr.DataArray(
|
|
@@ -74,6 +76,10 @@ class Base:
|
|
|
74
76
|
"x_coords": ("x", np.linspace(1.1, 2.1, nx)),
|
|
75
77
|
},
|
|
76
78
|
)
|
|
79
|
+
# Benchmark how indexing is slowed down by adding many scalar variable
|
|
80
|
+
# to the dataset
|
|
81
|
+
# https://github.com/pydata/xarray/pull/9003
|
|
82
|
+
self.ds_large = self.ds.merge({f"extra_var{i}": i for i in range(400)})
|
|
77
83
|
|
|
78
84
|
|
|
79
85
|
class Indexing(Base):
|
|
@@ -89,6 +95,11 @@ class Indexing(Base):
|
|
|
89
95
|
def time_indexing_vectorized(self, key):
|
|
90
96
|
self.ds.isel(**vectorized_indexes[key]).load()
|
|
91
97
|
|
|
98
|
+
@parameterized(["key"], [list(basic_indexes.keys())])
|
|
99
|
+
def time_indexing_basic_ds_large(self, key):
|
|
100
|
+
# https://github.com/pydata/xarray/pull/9003
|
|
101
|
+
self.ds_large.isel(**basic_indexes[key]).load()
|
|
102
|
+
|
|
92
103
|
|
|
93
104
|
class Assignment(Base):
|
|
94
105
|
@parameterized(["key"], [list(basic_indexes.keys())])
|