xarray 2023.12.0__tar.gz → 2024.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.
Files changed (349) hide show
  1. {xarray-2023.12.0 → xarray-2024.1.1}/.github/dependabot.yml +4 -0
  2. {xarray-2023.12.0 → xarray-2024.1.1}/.github/workflows/benchmarks-last-release.yml +1 -1
  3. {xarray-2023.12.0 → xarray-2024.1.1}/.github/workflows/benchmarks.yml +1 -1
  4. {xarray-2023.12.0 → xarray-2024.1.1}/.github/workflows/ci-additional.yaml +11 -9
  5. {xarray-2023.12.0 → xarray-2024.1.1}/.github/workflows/ci.yaml +16 -6
  6. {xarray-2023.12.0 → xarray-2024.1.1}/.github/workflows/nightly-wheels.yml +1 -1
  7. {xarray-2023.12.0 → xarray-2024.1.1}/.github/workflows/pypi-release.yaml +6 -6
  8. {xarray-2023.12.0 → xarray-2024.1.1}/.github/workflows/upstream-dev-ci.yaml +2 -1
  9. {xarray-2023.12.0 → xarray-2024.1.1}/.pre-commit-config.yaml +6 -6
  10. {xarray-2023.12.0/xarray.egg-info → xarray-2024.1.1}/PKG-INFO +5 -4
  11. {xarray-2023.12.0 → xarray-2024.1.1}/ci/install-upstream-wheels.sh +24 -10
  12. {xarray-2023.12.0 → xarray-2024.1.1}/ci/min_deps_check.py +2 -0
  13. {xarray-2023.12.0 → xarray-2024.1.1}/ci/requirements/bare-minimum.yml +3 -3
  14. {xarray-2023.12.0 → xarray-2024.1.1}/ci/requirements/doc.yml +1 -1
  15. xarray-2023.12.0/ci/requirements/environment.yml → xarray-2024.1.1/ci/requirements/environment-3.12.yml +4 -4
  16. xarray-2024.1.1/ci/requirements/environment-windows-3.12.yml +42 -0
  17. xarray-2024.1.1/ci/requirements/environment.yml +48 -0
  18. {xarray-2023.12.0 → xarray-2024.1.1}/ci/requirements/min-all-deps.yml +19 -16
  19. {xarray-2023.12.0 → xarray-2024.1.1}/doc/api.rst +2 -0
  20. {xarray-2023.12.0 → xarray-2024.1.1}/doc/ecosystem.rst +2 -2
  21. {xarray-2023.12.0 → xarray-2024.1.1}/doc/getting-started-guide/installing.rst +3 -3
  22. {xarray-2023.12.0 → xarray-2024.1.1}/doc/internals/how-to-add-new-backend.rst +1 -1
  23. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/groupby.rst +6 -16
  24. {xarray-2023.12.0 → xarray-2024.1.1}/doc/whats-new.rst +128 -5
  25. {xarray-2023.12.0 → xarray-2024.1.1}/pyproject.toml +13 -4
  26. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/api.py +1 -1
  27. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/locks.py +76 -8
  28. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/netCDF4_.py +75 -24
  29. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/coding/cftime_offsets.py +22 -21
  30. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/coding/cftimeindex.py +21 -4
  31. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/coding/frequencies.py +1 -1
  32. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/coding/strings.py +12 -8
  33. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/coding/variables.py +21 -2
  34. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/conventions.py +18 -24
  35. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/_aggregations.py +236 -184
  36. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/accessor_dt.py +1 -1
  37. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/combine.py +1 -1
  38. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/computation.py +94 -26
  39. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/concat.py +4 -3
  40. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/coordinates.py +1 -1
  41. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/daskmanager.py +22 -0
  42. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/dataarray.py +111 -39
  43. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/dataset.py +55 -18
  44. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/duck_array_ops.py +13 -3
  45. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/formatting_html.py +2 -2
  46. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/groupby.py +246 -37
  47. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/nputils.py +22 -6
  48. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/parallel.py +154 -100
  49. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/parallelcompat.py +37 -0
  50. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/resample.py +90 -2
  51. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/rolling.py +5 -0
  52. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/types.py +4 -3
  53. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/utils.py +46 -25
  54. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/weighted.py +20 -20
  55. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/namedarray/_typing.py +37 -3
  56. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/plot/dataarray_plot.py +6 -0
  57. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/__init__.py +47 -14
  58. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/conftest.py +57 -0
  59. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_backends.py +213 -18
  60. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_cftime_offsets.py +10 -5
  61. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_cftimeindex.py +78 -4
  62. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_coding_times.py +2 -2
  63. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_computation.py +101 -4
  64. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_concat.py +3 -3
  65. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_conventions.py +2 -5
  66. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_dask.py +55 -3
  67. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_dataarray.py +2 -2
  68. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_dataset.py +5 -1
  69. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_distributed.py +2 -2
  70. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_duck_array_ops.py +30 -8
  71. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_formatting.py +16 -1
  72. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_groupby.py +138 -45
  73. xarray-2024.1.1/xarray/tests/test_hashable.py +53 -0
  74. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_interp.py +2 -2
  75. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_namedarray.py +14 -0
  76. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_plot.py +13 -0
  77. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_rolling.py +33 -13
  78. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_units.py +7 -4
  79. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_utils.py +8 -10
  80. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_variable.py +2 -1
  81. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/util/generate_aggregations.py +32 -6
  82. {xarray-2023.12.0 → xarray-2024.1.1/xarray.egg-info}/PKG-INFO +5 -4
  83. {xarray-2023.12.0 → xarray-2024.1.1}/xarray.egg-info/SOURCES.txt +3 -0
  84. {xarray-2023.12.0 → xarray-2024.1.1}/xarray.egg-info/requires.txt +3 -3
  85. {xarray-2023.12.0 → xarray-2024.1.1}/.binder/environment.yml +0 -0
  86. {xarray-2023.12.0 → xarray-2024.1.1}/.codecov.yml +0 -0
  87. {xarray-2023.12.0 → xarray-2024.1.1}/.git-blame-ignore-revs +0 -0
  88. {xarray-2023.12.0 → xarray-2024.1.1}/.git_archival.txt +0 -0
  89. {xarray-2023.12.0 → xarray-2024.1.1}/.gitattributes +0 -0
  90. {xarray-2023.12.0 → xarray-2024.1.1}/.github/FUNDING.yml +0 -0
  91. {xarray-2023.12.0 → xarray-2024.1.1}/.github/ISSUE_TEMPLATE/bugreport.yml +0 -0
  92. {xarray-2023.12.0 → xarray-2024.1.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  93. {xarray-2023.12.0 → xarray-2024.1.1}/.github/ISSUE_TEMPLATE/misc.yml +0 -0
  94. {xarray-2023.12.0 → xarray-2024.1.1}/.github/ISSUE_TEMPLATE/newfeature.yml +0 -0
  95. {xarray-2023.12.0 → xarray-2024.1.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  96. {xarray-2023.12.0 → xarray-2024.1.1}/.github/config.yml +0 -0
  97. {xarray-2023.12.0 → xarray-2024.1.1}/.github/stale.yml +0 -0
  98. {xarray-2023.12.0 → xarray-2024.1.1}/.github/workflows/configure-testpypi-version.py +0 -0
  99. {xarray-2023.12.0 → xarray-2024.1.1}/.github/workflows/publish-test-results.yaml +0 -0
  100. {xarray-2023.12.0 → xarray-2024.1.1}/.gitignore +0 -0
  101. {xarray-2023.12.0 → xarray-2024.1.1}/.pep8speaks.yml +0 -0
  102. {xarray-2023.12.0 → xarray-2024.1.1}/.readthedocs.yaml +0 -0
  103. {xarray-2023.12.0 → xarray-2024.1.1}/CITATION.cff +0 -0
  104. {xarray-2023.12.0 → xarray-2024.1.1}/CODE_OF_CONDUCT.md +0 -0
  105. {xarray-2023.12.0 → xarray-2024.1.1}/CONTRIBUTING.md +0 -0
  106. {xarray-2023.12.0 → xarray-2024.1.1}/CORE_TEAM_GUIDE.md +0 -0
  107. {xarray-2023.12.0 → xarray-2024.1.1}/HOW_TO_RELEASE.md +0 -0
  108. {xarray-2023.12.0 → xarray-2024.1.1}/LICENSE +0 -0
  109. {xarray-2023.12.0 → xarray-2024.1.1}/README.md +0 -0
  110. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/asv.conf.json +0 -0
  111. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/README_CI.md +0 -0
  112. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/__init__.py +0 -0
  113. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/accessors.py +0 -0
  114. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/alignment.py +0 -0
  115. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/combine.py +0 -0
  116. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/dataarray_missing.py +0 -0
  117. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/dataset.py +0 -0
  118. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/dataset_io.py +0 -0
  119. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/groupby.py +0 -0
  120. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/import.py +0 -0
  121. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/indexing.py +0 -0
  122. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/interp.py +0 -0
  123. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/merge.py +0 -0
  124. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/pandas.py +0 -0
  125. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/polyfit.py +0 -0
  126. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/reindexing.py +0 -0
  127. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/renaming.py +0 -0
  128. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/repr.py +0 -0
  129. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/rolling.py +0 -0
  130. {xarray-2023.12.0 → xarray-2024.1.1}/asv_bench/benchmarks/unstacking.py +0 -0
  131. {xarray-2023.12.0 → xarray-2024.1.1}/ci/requirements/all-but-dask.yml +0 -0
  132. {xarray-2023.12.0 → xarray-2024.1.1}/ci/requirements/environment-windows.yml +0 -0
  133. {xarray-2023.12.0 → xarray-2024.1.1}/conftest.py +0 -0
  134. {xarray-2023.12.0 → xarray-2024.1.1}/design_notes/flexible_indexes_notes.md +0 -0
  135. {xarray-2023.12.0 → xarray-2024.1.1}/design_notes/named_array_design_doc.md +0 -0
  136. {xarray-2023.12.0 → xarray-2024.1.1}/doc/Makefile +0 -0
  137. {xarray-2023.12.0 → xarray-2024.1.1}/doc/README.rst +0 -0
  138. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/.gitignore +0 -0
  139. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/advanced_selection_interpolation.svg +0 -0
  140. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/ci.png +0 -0
  141. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/dask_array.png +0 -0
  142. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/dataset-diagram.png +0 -0
  143. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/index_api.svg +0 -0
  144. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/index_contribute.svg +0 -0
  145. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/index_getting_started.svg +0 -0
  146. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/index_user_guide.svg +0 -0
  147. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/logos/Xarray_Icon_Final.png +0 -0
  148. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/logos/Xarray_Icon_Final.svg +0 -0
  149. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.png +0 -0
  150. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.svg +0 -0
  151. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/logos/Xarray_Logo_RGB_Final.png +0 -0
  152. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/logos/Xarray_Logo_RGB_Final.svg +0 -0
  153. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/numfocus_logo.png +0 -0
  154. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/opendap-prism-tmax.png +0 -0
  155. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/style.css +0 -0
  156. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/thumbnails/ERA5-GRIB-example.png +0 -0
  157. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/thumbnails/ROMS_ocean_model.png +0 -0
  158. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/thumbnails/area_weighted_temperature.png +0 -0
  159. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/thumbnails/monthly-means.png +0 -0
  160. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/thumbnails/multidimensional-coords.png +0 -0
  161. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/thumbnails/toy-weather-data.png +0 -0
  162. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/thumbnails/visualization_gallery.png +0 -0
  163. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_static/view-docs.png +0 -0
  164. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_templates/autosummary/accessor.rst +0 -0
  165. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_templates/autosummary/accessor_attribute.rst +0 -0
  166. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_templates/autosummary/accessor_callable.rst +0 -0
  167. {xarray-2023.12.0 → xarray-2024.1.1}/doc/_templates/autosummary/accessor_method.rst +0 -0
  168. {xarray-2023.12.0 → xarray-2024.1.1}/doc/api-hidden.rst +0 -0
  169. {xarray-2023.12.0 → xarray-2024.1.1}/doc/conf.py +0 -0
  170. {xarray-2023.12.0 → xarray-2024.1.1}/doc/contributing.rst +0 -0
  171. {xarray-2023.12.0 → xarray-2024.1.1}/doc/developers-meeting.rst +0 -0
  172. {xarray-2023.12.0 → xarray-2024.1.1}/doc/examples/ERA5-GRIB-example.ipynb +0 -0
  173. {xarray-2023.12.0 → xarray-2024.1.1}/doc/examples/ROMS_ocean_model.ipynb +0 -0
  174. {xarray-2023.12.0 → xarray-2024.1.1}/doc/examples/_code/accessor_example.py +0 -0
  175. {xarray-2023.12.0 → xarray-2024.1.1}/doc/examples/apply_ufunc_vectorize_1d.ipynb +0 -0
  176. {xarray-2023.12.0 → xarray-2024.1.1}/doc/examples/area_weighted_temperature.ipynb +0 -0
  177. {xarray-2023.12.0 → xarray-2024.1.1}/doc/examples/blank_template.ipynb +0 -0
  178. {xarray-2023.12.0 → xarray-2024.1.1}/doc/examples/monthly-means.ipynb +0 -0
  179. {xarray-2023.12.0 → xarray-2024.1.1}/doc/examples/monthly_means_output.png +0 -0
  180. {xarray-2023.12.0 → xarray-2024.1.1}/doc/examples/multidimensional-coords.ipynb +0 -0
  181. {xarray-2023.12.0 → xarray-2024.1.1}/doc/examples/visualization_gallery.ipynb +0 -0
  182. {xarray-2023.12.0 → xarray-2024.1.1}/doc/examples/weather-data.ipynb +0 -0
  183. {xarray-2023.12.0 → xarray-2024.1.1}/doc/gallery/README.txt +0 -0
  184. {xarray-2023.12.0 → xarray-2024.1.1}/doc/gallery/plot_cartopy_facetgrid.py +0 -0
  185. {xarray-2023.12.0 → xarray-2024.1.1}/doc/gallery/plot_colorbar_center.py +0 -0
  186. {xarray-2023.12.0 → xarray-2024.1.1}/doc/gallery/plot_control_colorbar.py +0 -0
  187. {xarray-2023.12.0 → xarray-2024.1.1}/doc/gallery/plot_lines_from_2d.py +0 -0
  188. {xarray-2023.12.0 → xarray-2024.1.1}/doc/gallery.rst +0 -0
  189. {xarray-2023.12.0 → xarray-2024.1.1}/doc/gallery.yml +0 -0
  190. {xarray-2023.12.0 → xarray-2024.1.1}/doc/getting-started-guide/faq.rst +0 -0
  191. {xarray-2023.12.0 → xarray-2024.1.1}/doc/getting-started-guide/index.rst +0 -0
  192. {xarray-2023.12.0 → xarray-2024.1.1}/doc/getting-started-guide/quick-overview.rst +0 -0
  193. {xarray-2023.12.0 → xarray-2024.1.1}/doc/getting-started-guide/why-xarray.rst +0 -0
  194. {xarray-2023.12.0 → xarray-2024.1.1}/doc/howdoi.rst +0 -0
  195. {xarray-2023.12.0 → xarray-2024.1.1}/doc/index.rst +0 -0
  196. {xarray-2023.12.0 → xarray-2024.1.1}/doc/internals/chunked-arrays.rst +0 -0
  197. {xarray-2023.12.0 → xarray-2024.1.1}/doc/internals/duck-arrays-integration.rst +0 -0
  198. {xarray-2023.12.0 → xarray-2024.1.1}/doc/internals/extending-xarray.rst +0 -0
  199. {xarray-2023.12.0 → xarray-2024.1.1}/doc/internals/how-to-create-custom-index.rst +0 -0
  200. {xarray-2023.12.0 → xarray-2024.1.1}/doc/internals/index.rst +0 -0
  201. {xarray-2023.12.0 → xarray-2024.1.1}/doc/internals/internal-design.rst +0 -0
  202. {xarray-2023.12.0 → xarray-2024.1.1}/doc/internals/interoperability.rst +0 -0
  203. {xarray-2023.12.0 → xarray-2024.1.1}/doc/internals/zarr-encoding-spec.rst +0 -0
  204. {xarray-2023.12.0 → xarray-2024.1.1}/doc/roadmap.rst +0 -0
  205. {xarray-2023.12.0 → xarray-2024.1.1}/doc/tutorials-and-videos.rst +0 -0
  206. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/combining.rst +0 -0
  207. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/computation.rst +0 -0
  208. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/dask.rst +0 -0
  209. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/data-structures.rst +0 -0
  210. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/duckarrays.rst +0 -0
  211. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/index.rst +0 -0
  212. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/indexing.rst +0 -0
  213. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/interpolation.rst +0 -0
  214. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/io.rst +0 -0
  215. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/options.rst +0 -0
  216. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/pandas.rst +0 -0
  217. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/plotting.rst +0 -0
  218. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/reshaping.rst +0 -0
  219. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/terminology.rst +0 -0
  220. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/testing.rst +0 -0
  221. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/time-series.rst +0 -0
  222. {xarray-2023.12.0 → xarray-2024.1.1}/doc/user-guide/weather-climate.rst +0 -0
  223. {xarray-2023.12.0 → xarray-2024.1.1}/doc/videos.yml +0 -0
  224. {xarray-2023.12.0 → xarray-2024.1.1}/licenses/DASK_LICENSE +0 -0
  225. {xarray-2023.12.0 → xarray-2024.1.1}/licenses/ICOMOON_LICENSE +0 -0
  226. {xarray-2023.12.0 → xarray-2024.1.1}/licenses/NUMPY_LICENSE +0 -0
  227. {xarray-2023.12.0 → xarray-2024.1.1}/licenses/PANDAS_LICENSE +0 -0
  228. {xarray-2023.12.0 → xarray-2024.1.1}/licenses/PYTHON_LICENSE +0 -0
  229. {xarray-2023.12.0 → xarray-2024.1.1}/licenses/SCIKIT_LEARN_LICENSE +0 -0
  230. {xarray-2023.12.0 → xarray-2024.1.1}/licenses/SEABORN_LICENSE +0 -0
  231. {xarray-2023.12.0 → xarray-2024.1.1}/properties/README.md +0 -0
  232. {xarray-2023.12.0 → xarray-2024.1.1}/properties/conftest.py +0 -0
  233. {xarray-2023.12.0 → xarray-2024.1.1}/properties/test_encode_decode.py +0 -0
  234. {xarray-2023.12.0 → xarray-2024.1.1}/properties/test_pandas_roundtrip.py +0 -0
  235. {xarray-2023.12.0 → xarray-2024.1.1}/setup.cfg +0 -0
  236. {xarray-2023.12.0 → xarray-2024.1.1}/setup.py +0 -0
  237. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/__init__.py +0 -0
  238. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/__init__.py +0 -0
  239. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/common.py +0 -0
  240. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/file_manager.py +0 -0
  241. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/h5netcdf_.py +0 -0
  242. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/lru_cache.py +0 -0
  243. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/memory.py +0 -0
  244. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/netcdf3.py +0 -0
  245. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/plugins.py +0 -0
  246. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/pydap_.py +0 -0
  247. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/pynio_.py +0 -0
  248. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/scipy_.py +0 -0
  249. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/store.py +0 -0
  250. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/backends/zarr.py +0 -0
  251. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/coding/__init__.py +0 -0
  252. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/coding/calendar_ops.py +0 -0
  253. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/coding/times.py +0 -0
  254. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/convert.py +0 -0
  255. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/__init__.py +0 -0
  256. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/_typed_ops.py +0 -0
  257. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/accessor_str.py +0 -0
  258. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/alignment.py +0 -0
  259. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/arithmetic.py +0 -0
  260. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/common.py +0 -0
  261. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/dask_array_ops.py +0 -0
  262. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/dtypes.py +0 -0
  263. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/extensions.py +0 -0
  264. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/formatting.py +0 -0
  265. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/indexes.py +0 -0
  266. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/indexing.py +0 -0
  267. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/merge.py +0 -0
  268. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/missing.py +0 -0
  269. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/nanops.py +0 -0
  270. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/npcompat.py +0 -0
  271. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/ops.py +0 -0
  272. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/options.py +0 -0
  273. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/pdcompat.py +0 -0
  274. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/pycompat.py +0 -0
  275. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/resample_cftime.py +0 -0
  276. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/rolling_exp.py +0 -0
  277. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/core/variable.py +0 -0
  278. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/indexes/__init__.py +0 -0
  279. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/namedarray/__init__.py +0 -0
  280. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/namedarray/_aggregations.py +0 -0
  281. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/namedarray/_array_api.py +0 -0
  282. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/namedarray/core.py +0 -0
  283. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/namedarray/dtypes.py +0 -0
  284. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/namedarray/utils.py +0 -0
  285. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/plot/__init__.py +0 -0
  286. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/plot/accessor.py +0 -0
  287. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/plot/dataset_plot.py +0 -0
  288. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/plot/facetgrid.py +0 -0
  289. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/plot/utils.py +0 -0
  290. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/py.typed +0 -0
  291. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/static/__init__.py +0 -0
  292. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/static/css/__init__.py +0 -0
  293. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/static/css/style.css +0 -0
  294. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/static/html/__init__.py +0 -0
  295. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/static/html/icons-svg-inline.html +0 -0
  296. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/testing/__init__.py +0 -0
  297. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/testing/assertions.py +0 -0
  298. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/testing/strategies.py +0 -0
  299. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/data/bears.nc +0 -0
  300. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/data/example.grib +0 -0
  301. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/data/example.ict +0 -0
  302. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/data/example.uamiv +0 -0
  303. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/data/example_1.nc +0 -0
  304. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/data/example_1.nc.gz +0 -0
  305. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_accessor_dt.py +0 -0
  306. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_accessor_str.py +0 -0
  307. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_array_api.py +0 -0
  308. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_assertions.py +0 -0
  309. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_backends_api.py +0 -0
  310. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_backends_common.py +0 -0
  311. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_backends_file_manager.py +0 -0
  312. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_backends_locks.py +0 -0
  313. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_backends_lru_cache.py +0 -0
  314. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_calendar_ops.py +0 -0
  315. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_cftimeindex_resample.py +0 -0
  316. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_coarsen.py +0 -0
  317. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_coding.py +0 -0
  318. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_coding_strings.py +0 -0
  319. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_combine.py +0 -0
  320. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_coordinates.py +0 -0
  321. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_cupy.py +0 -0
  322. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_deprecation_helpers.py +0 -0
  323. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_dtypes.py +0 -0
  324. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_error_messages.py +0 -0
  325. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_extensions.py +0 -0
  326. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_formatting_html.py +0 -0
  327. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_indexes.py +0 -0
  328. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_indexing.py +0 -0
  329. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_merge.py +0 -0
  330. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_missing.py +0 -0
  331. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_nputils.py +0 -0
  332. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_options.py +0 -0
  333. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_parallelcompat.py +0 -0
  334. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_plugins.py +0 -0
  335. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_print_versions.py +0 -0
  336. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_sparse.py +0 -0
  337. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_strategies.py +0 -0
  338. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_tutorial.py +0 -0
  339. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_typed_ops.py +0 -0
  340. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_ufuncs.py +0 -0
  341. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tests/test_weighted.py +0 -0
  342. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/tutorial.py +0 -0
  343. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/util/__init__.py +0 -0
  344. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/util/deprecation_helpers.py +0 -0
  345. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/util/generate_ops.py +0 -0
  346. {xarray-2023.12.0 → xarray-2024.1.1}/xarray/util/print_versions.py +0 -0
  347. {xarray-2023.12.0 → xarray-2024.1.1}/xarray.egg-info/dependency_links.txt +0 -0
  348. {xarray-2023.12.0 → xarray-2024.1.1}/xarray.egg-info/entry_points.txt +0 -0
  349. {xarray-2023.12.0 → xarray-2024.1.1}/xarray.egg-info/top_level.txt +0 -0
@@ -5,3 +5,7 @@ updates:
5
5
  schedule:
6
6
  # Check for updates once a week
7
7
  interval: 'weekly'
8
+ groups:
9
+ actions:
10
+ patterns:
11
+ - "*"
@@ -72,7 +72,7 @@ jobs:
72
72
  cp benchmarks/README_CI.md benchmarks.log .asv/results/
73
73
  working-directory: ${{ env.ASV_DIR }}
74
74
 
75
- - uses: actions/upload-artifact@v3
75
+ - uses: actions/upload-artifact@v4
76
76
  if: always()
77
77
  with:
78
78
  name: asv-benchmark-results-${{ runner.os }}
@@ -67,7 +67,7 @@ jobs:
67
67
  cp benchmarks/README_CI.md benchmarks.log .asv/results/
68
68
  working-directory: ${{ env.ASV_DIR }}
69
69
 
70
- - uses: actions/upload-artifact@v3
70
+ - uses: actions/upload-artifact@v4
71
71
  if: always()
72
72
  with:
73
73
  name: asv-benchmark-results-${{ runner.os }}
@@ -76,6 +76,9 @@ jobs:
76
76
  # Raise an error if there are warnings in the doctests, with `-Werror`.
77
77
  # This is a trial; if it presents an problem, feel free to remove.
78
78
  # See https://github.com/pydata/xarray/issues/7164 for more info.
79
+ #
80
+ # If dependencies emit warnings we can't do anything about, add ignores to
81
+ # `xarray/tests/__init__.py`.
79
82
  python -m pytest --doctest-modules xarray --ignore xarray/tests -Werror
80
83
 
81
84
  mypy:
@@ -117,7 +120,7 @@ jobs:
117
120
  python xarray/util/print_versions.py
118
121
  - name: Install mypy
119
122
  run: |
120
- python -m pip install "mypy<1.8" --force-reinstall
123
+ python -m pip install "mypy<1.9" --force-reinstall
121
124
 
122
125
  - name: Run mypy
123
126
  run: |
@@ -171,7 +174,7 @@ jobs:
171
174
  python xarray/util/print_versions.py
172
175
  - name: Install mypy
173
176
  run: |
174
- python -m pip install "mypy<1.8" --force-reinstall
177
+ python -m pip install "mypy<1.9" --force-reinstall
175
178
 
176
179
  - name: Run mypy
177
180
  run: |
@@ -317,11 +320,6 @@ jobs:
317
320
  run:
318
321
  shell: bash -l {0}
319
322
 
320
- strategy:
321
- matrix:
322
- environment-file: ["bare-minimum", "min-all-deps"]
323
- fail-fast: false
324
-
325
323
  steps:
326
324
  - uses: actions/checkout@v4
327
325
  with:
@@ -337,6 +335,10 @@ jobs:
337
335
  conda
338
336
  python-dateutil
339
337
 
340
- - name: minimum versions policy
338
+ - name: All-deps minimum versions policy
339
+ run: |
340
+ python ci/min_deps_check.py ci/requirements/min-all-deps.yml
341
+
342
+ - name: Bare minimum versions policy
341
343
  run: |
342
- python ci/min_deps_check.py ci/requirements/${{ matrix.environment-file }}.yml
344
+ python ci/min_deps_check.py ci/requirements/bare-minimum.yml
@@ -34,6 +34,8 @@ jobs:
34
34
  runs-on: ${{ matrix.os }}
35
35
  needs: detect-ci-trigger
36
36
  if: needs.detect-ci-trigger.outputs.triggered == 'false'
37
+ env:
38
+ ZARR_V3_EXPERIMENTAL_API: 1
37
39
  defaults:
38
40
  run:
39
41
  shell: bash -l {0}
@@ -42,7 +44,7 @@ jobs:
42
44
  matrix:
43
45
  os: ["ubuntu-latest", "macos-latest", "windows-latest"]
44
46
  # Bookend python versions
45
- python-version: ["3.9", "3.11"]
47
+ python-version: ["3.9", "3.11", "3.12"]
46
48
  env: [""]
47
49
  include:
48
50
  # Minimum python version:
@@ -69,7 +71,11 @@ jobs:
69
71
 
70
72
  if [[ ${{ matrix.os }} == windows* ]] ;
71
73
  then
72
- echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV
74
+ if [[ ${{ matrix.python-version }} != "3.12" ]]; then
75
+ echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV
76
+ else
77
+ echo "CONDA_ENV_FILE=ci/requirements/environment-windows-3.12.yml" >> $GITHUB_ENV
78
+ fi
73
79
  elif [[ "${{ matrix.env }}" != "" ]] ;
74
80
  then
75
81
  if [[ "${{ matrix.env }}" == "flaky" ]] ;
@@ -80,7 +86,11 @@ jobs:
80
86
  echo "CONDA_ENV_FILE=ci/requirements/${{ matrix.env }}.yml" >> $GITHUB_ENV
81
87
  fi
82
88
  else
83
- echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
89
+ if [[ ${{ matrix.python-version }} != "3.12" ]]; then
90
+ echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
91
+ else
92
+ echo "CONDA_ENV_FILE=ci/requirements/environment-3.12.yml" >> $GITHUB_ENV
93
+ fi
84
94
  fi
85
95
 
86
96
  echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
@@ -127,9 +137,9 @@ jobs:
127
137
 
128
138
  - name: Upload test results
129
139
  if: always()
130
- uses: actions/upload-artifact@v3
140
+ uses: actions/upload-artifact@v4
131
141
  with:
132
- name: Test results for ${{ runner.os }}-${{ matrix.python-version }}
142
+ name: Test results for ${{ runner.os }}-${{ matrix.python-version }} ${{ matrix.env }}
133
143
  path: pytest.xml
134
144
 
135
145
  - name: Upload code coverage to Codecov
@@ -147,7 +157,7 @@ jobs:
147
157
  if: github.repository == 'pydata/xarray'
148
158
  steps:
149
159
  - name: Upload
150
- uses: actions/upload-artifact@v3
160
+ uses: actions/upload-artifact@v4
151
161
  with:
152
162
  name: Event File
153
163
  path: ${{ github.event_path }}
@@ -11,7 +11,7 @@ jobs:
11
11
  - uses: actions/checkout@v4
12
12
  with:
13
13
  fetch-depth: 0
14
- - uses: actions/setup-python@v4
14
+ - uses: actions/setup-python@v5
15
15
  with:
16
16
  python-version: "3.11"
17
17
 
@@ -15,7 +15,7 @@ jobs:
15
15
  - uses: actions/checkout@v4
16
16
  with:
17
17
  fetch-depth: 0
18
- - uses: actions/setup-python@v4
18
+ - uses: actions/setup-python@v5
19
19
  name: Install Python
20
20
  with:
21
21
  python-version: "3.11"
@@ -41,7 +41,7 @@ jobs:
41
41
  else
42
42
  echo "✅ Looks good"
43
43
  fi
44
- - uses: actions/upload-artifact@v3
44
+ - uses: actions/upload-artifact@v4
45
45
  with:
46
46
  name: releases
47
47
  path: dist
@@ -50,11 +50,11 @@ jobs:
50
50
  needs: build-artifacts
51
51
  runs-on: ubuntu-latest
52
52
  steps:
53
- - uses: actions/setup-python@v4
53
+ - uses: actions/setup-python@v5
54
54
  name: Install Python
55
55
  with:
56
56
  python-version: "3.11"
57
- - uses: actions/download-artifact@v3
57
+ - uses: actions/download-artifact@v4
58
58
  with:
59
59
  name: releases
60
60
  path: dist
@@ -82,7 +82,7 @@ jobs:
82
82
  id-token: write
83
83
 
84
84
  steps:
85
- - uses: actions/download-artifact@v3
85
+ - uses: actions/download-artifact@v4
86
86
  with:
87
87
  name: releases
88
88
  path: dist
@@ -106,7 +106,7 @@ jobs:
106
106
  id-token: write
107
107
 
108
108
  steps:
109
- - uses: actions/download-artifact@v3
109
+ - uses: actions/download-artifact@v4
110
110
  with:
111
111
  name: releases
112
112
  path: dist
@@ -37,6 +37,8 @@ jobs:
37
37
  name: upstream-dev
38
38
  runs-on: ubuntu-latest
39
39
  needs: detect-ci-trigger
40
+ env:
41
+ ZARR_V3_EXPERIMENTAL_API: 1
40
42
  if: |
41
43
  always()
42
44
  && (
@@ -82,7 +84,6 @@ jobs:
82
84
  if: success()
83
85
  id: status
84
86
  run: |
85
- export ZARR_V3_EXPERIMENTAL_API=1
86
87
  python -m pytest --timeout=60 -rf \
87
88
  --report-log output-${{ matrix.python-version }}-log.jsonl
88
89
  - name: Generate and publish the report
@@ -18,13 +18,13 @@ repos:
18
18
  files: ^xarray/
19
19
  - repo: https://github.com/astral-sh/ruff-pre-commit
20
20
  # Ruff version.
21
- rev: 'v0.1.6'
21
+ rev: 'v0.1.9'
22
22
  hooks:
23
23
  - id: ruff
24
- args: ["--fix"]
24
+ args: ["--fix", "--show-fixes"]
25
25
  # https://github.com/python/black#version-control-integration
26
- - repo: https://github.com/psf/black
27
- rev: 23.11.0
26
+ - repo: https://github.com/psf/black-pre-commit-mirror
27
+ rev: 23.12.1
28
28
  hooks:
29
29
  - id: black-jupyter
30
30
  - repo: https://github.com/keewis/blackdoc
@@ -32,10 +32,10 @@ repos:
32
32
  hooks:
33
33
  - id: blackdoc
34
34
  exclude: "generate_aggregations.py"
35
- additional_dependencies: ["black==23.11.0"]
35
+ additional_dependencies: ["black==23.12.1"]
36
36
  - id: blackdoc-autoupdate-black
37
37
  - repo: https://github.com/pre-commit/mirrors-mypy
38
- rev: v1.7.1
38
+ rev: v1.8.0
39
39
  hooks:
40
40
  - id: mypy
41
41
  # Copied from setup.cfg
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xarray
3
- Version: 2023.12.0
3
+ Version: 2024.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
@@ -18,13 +18,14 @@ Classifier: Programming Language :: Python :: 3
18
18
  Classifier: Programming Language :: Python :: 3.9
19
19
  Classifier: Programming Language :: Python :: 3.10
20
20
  Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
21
22
  Classifier: Topic :: Scientific/Engineering
22
23
  Requires-Python: >=3.9
23
24
  Description-Content-Type: text/markdown
24
25
  License-File: LICENSE
25
- Requires-Dist: numpy>=1.22
26
- Requires-Dist: packaging>=21.3
27
- Requires-Dist: pandas>=1.4
26
+ Requires-Dist: numpy>=1.23
27
+ Requires-Dist: packaging>=22
28
+ Requires-Dist: pandas>=1.5
28
29
  Provides-Extra: accel
29
30
  Requires-Dist: scipy; extra == "accel"
30
31
  Requires-Dist: bottleneck; extra == "accel"
@@ -1,15 +1,16 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
+ # install cython for building cftime without build isolation
4
+ micromamba install "cython>=0.29.20" py-cpuinfo
3
5
  # temporarily (?) remove numbagg and numba
4
- pip uninstall -y numbagg
5
- conda uninstall -y numba
6
+ micromamba remove -y numba numbagg
7
+ # temporarily remove backends
8
+ micromamba remove -y cf_units h5py hdf5 netcdf4
6
9
  # forcibly remove packages to avoid artifacts
7
10
  conda uninstall -y --force \
8
11
  numpy \
9
12
  scipy \
10
13
  pandas \
11
- matplotlib \
12
- dask \
13
14
  distributed \
14
15
  fsspec \
15
16
  zarr \
@@ -17,10 +18,8 @@ conda uninstall -y --force \
17
18
  packaging \
18
19
  pint \
19
20
  bottleneck \
20
- sparse \
21
21
  flox \
22
- h5netcdf \
23
- xarray
22
+ numcodecs
24
23
  # to limit the runtime of Upstream CI
25
24
  python -m pip install \
26
25
  -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
@@ -31,19 +30,34 @@ python -m pip install \
31
30
  scipy \
32
31
  matplotlib \
33
32
  pandas
33
+ # without build isolation for packages compiling against numpy
34
+ # TODO: remove once there are `numpy>=2.0` builds for numcodecs and cftime
35
+ python -m pip install \
36
+ --no-deps \
37
+ --upgrade \
38
+ --no-build-isolation \
39
+ git+https://github.com/Unidata/cftime
40
+ python -m pip install \
41
+ --no-deps \
42
+ --upgrade \
43
+ --no-build-isolation \
44
+ git+https://github.com/zarr-developers/numcodecs
45
+ python -m pip install \
46
+ --no-deps \
47
+ --upgrade \
48
+ --no-build-isolation \
49
+ git+https://github.com/pydata/bottleneck
34
50
  python -m pip install \
35
51
  --no-deps \
36
52
  --upgrade \
37
53
  git+https://github.com/dask/dask \
38
54
  git+https://github.com/dask/distributed \
39
55
  git+https://github.com/zarr-developers/zarr \
40
- git+https://github.com/Unidata/cftime \
41
56
  git+https://github.com/pypa/packaging \
42
57
  git+https://github.com/hgrecco/pint \
43
- git+https://github.com/pydata/bottleneck \
44
58
  git+https://github.com/pydata/sparse \
45
59
  git+https://github.com/intake/filesystem_spec \
46
60
  git+https://github.com/SciTools/nc-time-axis \
47
61
  git+https://github.com/xarray-contrib/flox \
48
- git+https://github.com/h5netcdf/h5netcdf \
49
62
  git+https://github.com/dgasmith/opt_einsum
63
+ # git+https://github.com/h5netcdf/h5netcdf
@@ -3,6 +3,8 @@
3
3
  publication date. Compare it against requirements/min-all-deps.yml to verify the
4
4
  policy on obsolete dependencies is being followed. Print a pretty report :)
5
5
  """
6
+ from __future__ import annotations
7
+
6
8
  import itertools
7
9
  import sys
8
10
  from collections.abc import Iterator
@@ -11,6 +11,6 @@ dependencies:
11
11
  - pytest-env
12
12
  - pytest-xdist
13
13
  - pytest-timeout
14
- - numpy=1.22
15
- - packaging=21.3
16
- - pandas=1.4
14
+ - numpy=1.23
15
+ - packaging=22.0
16
+ - pandas=1.5
@@ -32,7 +32,7 @@ dependencies:
32
32
  - setuptools
33
33
  - sparse
34
34
  - sphinx-autosummary-accessors
35
- - sphinx-book-theme >= 0.3.0
35
+ - sphinx-book-theme<=1.0.1
36
36
  - sphinx-copybutton
37
37
  - sphinx-design
38
38
  - sphinx-inline-tabs
@@ -21,14 +21,14 @@ dependencies:
21
21
  - matplotlib-base
22
22
  - nc-time-axis
23
23
  - netcdf4
24
- - numba
25
- - numbagg
24
+ # - numba
25
+ # - numbagg
26
26
  - numexpr
27
27
  - numpy
28
28
  - opt_einsum
29
29
  - packaging
30
30
  - pandas
31
- - pint>=0.22
31
+ # - pint>=0.22
32
32
  - pip
33
33
  - pooch
34
34
  - pre-commit
@@ -41,7 +41,7 @@ dependencies:
41
41
  - rasterio
42
42
  - scipy
43
43
  - seaborn
44
- - sparse
44
+ # - sparse
45
45
  - toolz
46
46
  - typing_extensions
47
47
  - zarr
@@ -0,0 +1,42 @@
1
+ name: xarray-tests
2
+ channels:
3
+ - conda-forge
4
+ dependencies:
5
+ - boto3
6
+ - bottleneck
7
+ - cartopy
8
+ - cftime
9
+ - dask-core
10
+ - distributed
11
+ - flox
12
+ - fsspec!=2021.7.0
13
+ - h5netcdf
14
+ - h5py
15
+ - hdf5
16
+ - hypothesis
17
+ - iris
18
+ - lxml # Optional dep of pydap
19
+ - matplotlib-base
20
+ - nc-time-axis
21
+ - netcdf4
22
+ # - numba
23
+ # - numbagg
24
+ - numpy
25
+ - packaging
26
+ - pandas
27
+ # - pint>=0.22
28
+ - pip
29
+ - pre-commit
30
+ - pydap
31
+ - pytest
32
+ - pytest-cov
33
+ - pytest-env
34
+ - pytest-xdist
35
+ - pytest-timeout
36
+ - rasterio
37
+ - scipy
38
+ - seaborn
39
+ # - sparse
40
+ - toolz
41
+ - typing_extensions
42
+ - zarr
@@ -0,0 +1,48 @@
1
+ name: xarray-tests
2
+ channels:
3
+ - conda-forge
4
+ - nodefaults
5
+ dependencies:
6
+ - aiobotocore
7
+ - boto3
8
+ - bottleneck
9
+ - cartopy
10
+ - cftime
11
+ - dask-core
12
+ - distributed
13
+ - flox
14
+ - fsspec!=2021.7.0
15
+ - h5netcdf
16
+ - h5py
17
+ - hdf5
18
+ - hypothesis
19
+ - iris
20
+ - lxml # Optional dep of pydap
21
+ - matplotlib-base
22
+ - nc-time-axis
23
+ - netcdf4
24
+ - numba
25
+ - numbagg
26
+ - numexpr
27
+ - numpy
28
+ - opt_einsum
29
+ - packaging
30
+ - pandas
31
+ - pint>=0.22
32
+ - pip
33
+ - pooch
34
+ - pre-commit
35
+ - pyarrow # pandas makes a deprecation warning without this, breaking doctests
36
+ - pydap
37
+ - pytest
38
+ - pytest-cov
39
+ - pytest-env
40
+ - pytest-xdist
41
+ - pytest-timeout
42
+ - rasterio
43
+ - scipy
44
+ - seaborn
45
+ - sparse
46
+ - toolz
47
+ - typing_extensions
48
+ - zarr
@@ -10,12 +10,16 @@ dependencies:
10
10
  - python=3.9
11
11
  - boto3=1.24
12
12
  - bottleneck=1.3
13
- - cartopy=0.20
13
+ - cartopy=0.21
14
14
  - cftime=1.6
15
15
  - coveralls
16
- - dask-core=2022.7
17
- - distributed=2022.7
18
- - flox=0.5
16
+ - dask-core=2022.12
17
+ - distributed=2022.12
18
+ # Flox > 0.8 has a bug with numbagg versions
19
+ # It will require numbagg > 0.6
20
+ # so we should just skip that series eventually
21
+ # or keep flox pinned for longer than necessary
22
+ - flox=0.7
19
23
  - h5netcdf=1.1
20
24
  # h5py and hdf5 tend to cause conflicts
21
25
  # for e.g. hdf5 1.12 conflicts with h5py=3.1
@@ -23,17 +27,18 @@ dependencies:
23
27
  - h5py=3.7
24
28
  - hdf5=1.12
25
29
  - hypothesis
26
- - iris=3.2
30
+ - iris=3.4
27
31
  - lxml=4.9 # Optional dep of pydap
28
- - matplotlib-base=3.5
32
+ - matplotlib-base=3.6
29
33
  - nc-time-axis=1.4
30
34
  # netcdf follows a 1.major.minor[.patch] convention
31
35
  # (see https://github.com/Unidata/netcdf4-python/issues/1090)
32
36
  - netcdf4=1.6.0
33
- - numba=0.55
34
- - numpy=1.22
35
- - packaging=21.3
36
- - pandas=1.4
37
+ - numba=0.56
38
+ - numbagg=0.2.1
39
+ - numpy=1.23
40
+ - packaging=22.0
41
+ - pandas=1.5
37
42
  - pint=0.22
38
43
  - pip
39
44
  - pydap=3.3
@@ -43,11 +48,9 @@ dependencies:
43
48
  - pytest-xdist
44
49
  - pytest-timeout
45
50
  - rasterio=1.3
46
- - scipy=1.8
47
- - seaborn=0.11
51
+ - scipy=1.10
52
+ - seaborn=0.12
48
53
  - sparse=0.13
49
54
  - toolz=0.12
50
- - typing_extensions=4.3
51
- - zarr=2.12
52
- - pip:
53
- - numbagg==0.2.1
55
+ - typing_extensions=4.4
56
+ - zarr=2.13
@@ -182,6 +182,7 @@ Computation
182
182
  Dataset.groupby_bins
183
183
  Dataset.rolling
184
184
  Dataset.rolling_exp
185
+ Dataset.cumulative
185
186
  Dataset.weighted
186
187
  Dataset.coarsen
187
188
  Dataset.resample
@@ -379,6 +380,7 @@ Computation
379
380
  DataArray.groupby_bins
380
381
  DataArray.rolling
381
382
  DataArray.rolling_exp
383
+ DataArray.cumulative
382
384
  DataArray.weighted
383
385
  DataArray.coarsen
384
386
  DataArray.resample
@@ -78,6 +78,7 @@ Extend xarray capabilities
78
78
  - `xarray-dataclasses <https://github.com/astropenguin/xarray-dataclasses>`_: xarray extension for typed DataArray and Dataset creation.
79
79
  - `xarray_einstats <https://xarray-einstats.readthedocs.io>`_: Statistics, linear algebra and einops for xarray
80
80
  - `xarray_extras <https://github.com/crusaderky/xarray_extras>`_: Advanced algorithms for xarray objects (e.g. integrations/interpolations).
81
+ - `xeofs <https://github.com/nicrie/xeofs>`_: PCA/EOF analysis and related techniques, integrated with xarray and Dask for efficient handling of large-scale data.
81
82
  - `xpublish <https://xpublish.readthedocs.io/>`_: Publish Xarray Datasets via a Zarr compatible REST API.
82
83
  - `xrft <https://github.com/rabernat/xrft>`_: Fourier transforms for xarray data.
83
84
  - `xr-scipy <https://xr-scipy.readthedocs.io>`_: A lightweight scipy wrapper for xarray.
@@ -97,7 +98,6 @@ Visualization
97
98
  Non-Python projects
98
99
  ~~~~~~~~~~~~~~~~~~~
99
100
  - `xframe <https://github.com/xtensor-stack/xframe>`_: C++ data structures inspired by xarray.
100
- - `AxisArrays <https://github.com/JuliaArrays/AxisArrays.jl>`_ and
101
- `NamedArrays <https://github.com/davidavdav/NamedArrays.jl>`_: similar data structures for Julia.
101
+ - `AxisArrays <https://github.com/JuliaArrays/AxisArrays.jl>`_, `NamedArrays <https://github.com/davidavdav/NamedArrays.jl>`_ and `YAXArrays.jl <https://github.com/JuliaDataCubes/YAXArrays.jl>`_: similar data structures for Julia.
102
102
 
103
103
  More projects can be found at the `"xarray" Github topic <https://github.com/topics/xarray>`_.
@@ -7,9 +7,9 @@ Required dependencies
7
7
  ---------------------
8
8
 
9
9
  - Python (3.9 or later)
10
- - `numpy <https://www.numpy.org/>`__ (1.22 or later)
11
- - `packaging <https://packaging.pypa.io/en/latest/#>`__ (21.3 or later)
12
- - `pandas <https://pandas.pydata.org/>`__ (1.4 or later)
10
+ - `numpy <https://www.numpy.org/>`__ (1.23 or later)
11
+ - `packaging <https://packaging.pypa.io/en/latest/#>`__ (22 or later)
12
+ - `pandas <https://pandas.pydata.org/>`__ (1.5 or later)
13
13
 
14
14
  .. _optional-dependencies:
15
15
 
@@ -281,7 +281,7 @@ You can declare the entrypoint in your project configuration like so:
281
281
 
282
282
  .. code:: toml
283
283
 
284
- [project.entry-points."xarray-backends"]
284
+ [project.entry-points."xarray.backends"]
285
285
  my_engine = "my_package.my_module:MyBackendEntrypoint"
286
286
 
287
287
  .. tab:: pyproject.toml [Poetry]
@@ -177,28 +177,18 @@ This last line is roughly equivalent to the following::
177
177
  results.append(group - alt.sel(letters=label))
178
178
  xr.concat(results, dim='x')
179
179
 
180
- Squeezing
181
- ~~~~~~~~~
180
+ Iterating and Squeezing
181
+ ~~~~~~~~~~~~~~~~~~~~~~~
182
182
 
183
- When grouping over a dimension, you can control whether the dimension is
184
- squeezed out or if it should remain with length one on each group by using
185
- the ``squeeze`` parameter:
186
-
187
- .. ipython:: python
188
-
189
- next(iter(arr.groupby("x")))
183
+ Previously, Xarray defaulted to squeezing out dimensions of size one when iterating over
184
+ a GroupBy object. This behaviour is being removed.
185
+ You can always squeeze explicitly later with the Dataset or DataArray
186
+ :py:meth:`~xarray.DataArray.squeeze` methods.
190
187
 
191
188
  .. ipython:: python
192
189
 
193
190
  next(iter(arr.groupby("x", squeeze=False)))
194
191
 
195
- Although xarray will attempt to automatically
196
- :py:attr:`~xarray.DataArray.transpose` dimensions back into their original order
197
- when you use apply, it is sometimes useful to set ``squeeze=False`` to
198
- guarantee that all original dimensions remain unchanged.
199
-
200
- You can always squeeze explicitly later with the Dataset or DataArray
201
- :py:meth:`~xarray.DataArray.squeeze` methods.
202
192
 
203
193
  .. _groupby.multidim:
204
194