xarray 2024.3.0__tar.gz → 2024.5.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.
Files changed (371) hide show
  1. {xarray-2024.3.0 → xarray-2024.5.0}/.binder/environment.yml +0 -1
  2. {xarray-2024.3.0 → xarray-2024.5.0}/.github/workflows/benchmarks.yml +3 -3
  3. {xarray-2024.3.0 → xarray-2024.5.0}/.github/workflows/ci-additional.yaml +14 -9
  4. {xarray-2024.3.0 → xarray-2024.5.0}/.github/workflows/ci.yaml +30 -11
  5. xarray-2024.5.0/.github/workflows/hypothesis.yaml +116 -0
  6. {xarray-2024.3.0 → xarray-2024.5.0}/.github/workflows/pypi-release.yaml +2 -2
  7. {xarray-2024.3.0 → xarray-2024.5.0}/.github/workflows/upstream-dev-ci.yaml +1 -1
  8. {xarray-2024.3.0 → xarray-2024.5.0}/.gitignore +3 -2
  9. {xarray-2024.3.0 → xarray-2024.5.0}/.pre-commit-config.yaml +5 -5
  10. xarray-2024.5.0/MANIFEST.in +2 -0
  11. {xarray-2024.3.0/xarray.egg-info → xarray-2024.5.0}/PKG-INFO +4 -3
  12. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/asv.conf.json +8 -4
  13. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/groupby.py +9 -8
  14. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/indexing.py +11 -0
  15. {xarray-2024.3.0 → xarray-2024.5.0}/ci/install-upstream-wheels.sh +8 -25
  16. {xarray-2024.3.0 → xarray-2024.5.0}/ci/min_deps_check.py +1 -1
  17. {xarray-2024.3.0 → xarray-2024.5.0}/ci/requirements/bare-minimum.yml +2 -2
  18. {xarray-2024.3.0 → xarray-2024.5.0}/ci/requirements/doc.yml +2 -2
  19. {xarray-2024.3.0 → xarray-2024.5.0}/ci/requirements/environment-windows.yml +1 -1
  20. {xarray-2024.3.0 → xarray-2024.5.0}/ci/requirements/environment.yml +1 -1
  21. {xarray-2024.3.0 → xarray-2024.5.0}/ci/requirements/min-all-deps.yml +11 -11
  22. {xarray-2024.3.0 → xarray-2024.5.0}/doc/getting-started-guide/installing.rst +0 -3
  23. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/data-structures.rst +33 -20
  24. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/io.rst +2 -23
  25. {xarray-2024.3.0 → xarray-2024.5.0}/doc/whats-new.rst +86 -2
  26. xarray-2024.5.0/licenses/ANYTREE_LICENSE +201 -0
  27. xarray-2024.5.0/properties/conftest.py +29 -0
  28. xarray-2024.5.0/properties/test_index_manipulation.py +273 -0
  29. {xarray-2024.3.0 → xarray-2024.5.0}/properties/test_pandas_roundtrip.py +3 -1
  30. {xarray-2024.3.0 → xarray-2024.5.0}/pyproject.toml +61 -15
  31. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/__init__.py +0 -2
  32. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/api.py +23 -172
  33. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/zarr.py +156 -15
  34. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/coding/calendar_ops.py +45 -8
  35. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/coding/cftime_offsets.py +6 -1
  36. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/coding/times.py +1 -9
  37. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/coding/variables.py +1 -3
  38. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/arithmetic.py +2 -2
  39. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/computation.py +1 -5
  40. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/concat.py +52 -15
  41. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/dataarray.py +43 -18
  42. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/dataset.py +179 -68
  43. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/datatree.py +17 -17
  44. xarray-2024.5.0/xarray/core/datatree_mapping.py +314 -0
  45. xarray-2024.5.0/xarray/core/datatree_ops.py +309 -0
  46. xarray-2024.5.0/xarray/core/datatree_render.py +266 -0
  47. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/duck_array_ops.py +16 -4
  48. xarray-2024.5.0/xarray/core/extension_array.py +136 -0
  49. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/extensions.py +18 -0
  50. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/formatting.py +117 -2
  51. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/formatting_html.py +131 -0
  52. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/indexes.py +2 -1
  53. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/indexing.py +33 -9
  54. xarray-2024.5.0/xarray/core/iterators.py +130 -0
  55. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/missing.py +4 -4
  56. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/treenode.py +2 -2
  57. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/types.py +3 -0
  58. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/variable.py +73 -49
  59. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/weighted.py +3 -2
  60. xarray-2024.5.0/xarray/datatree_/datatree/__init__.py +7 -0
  61. xarray-2024.5.0/xarray/datatree_/datatree/common.py +104 -0
  62. xarray-2024.5.0/xarray/datatree_/datatree/io.py +134 -0
  63. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/testing/__init__.py +1 -0
  64. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/testing/assertions.py +123 -10
  65. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/testing/strategies.py +30 -6
  66. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/__init__.py +54 -56
  67. xarray-2024.5.0/xarray/tests/arrays.py +179 -0
  68. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_assertions.py +20 -1
  69. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_backends.py +170 -50
  70. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_backends_datatree.py +1 -1
  71. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_calendar_ops.py +39 -0
  72. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_cftime_offsets.py +14 -3
  73. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_computation.py +12 -12
  74. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_concat.py +112 -3
  75. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_dataarray.py +16 -5
  76. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_dataset.py +106 -18
  77. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_datatree.py +216 -44
  78. xarray-2024.5.0/xarray/tests/test_datatree_mapping.py +347 -0
  79. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_duck_array_ops.py +108 -0
  80. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_extensions.py +9 -0
  81. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_formatting.py +107 -5
  82. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_formatting_html.py +195 -0
  83. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_groupby.py +15 -8
  84. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_merge.py +1 -1
  85. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_missing.py +4 -3
  86. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_plot.py +40 -32
  87. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_plugins.py +0 -3
  88. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_rolling.py +3 -3
  89. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_sparse.py +3 -3
  90. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_treenode.py +5 -22
  91. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_variable.py +25 -12
  92. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/util/deprecation_helpers.py +4 -4
  93. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/util/print_versions.py +0 -1
  94. {xarray-2024.3.0 → xarray-2024.5.0/xarray.egg-info}/PKG-INFO +4 -3
  95. {xarray-2024.3.0 → xarray-2024.5.0}/xarray.egg-info/SOURCES.txt +15 -3
  96. {xarray-2024.3.0 → xarray-2024.5.0}/xarray.egg-info/requires.txt +3 -2
  97. xarray-2024.3.0/MANIFEST.in +0 -1
  98. xarray-2024.3.0/properties/conftest.py +0 -8
  99. xarray-2024.3.0/xarray/backends/pynio_.py +0 -164
  100. {xarray-2024.3.0 → xarray-2024.5.0}/.codecov.yml +0 -0
  101. {xarray-2024.3.0 → xarray-2024.5.0}/.git-blame-ignore-revs +0 -0
  102. {xarray-2024.3.0 → xarray-2024.5.0}/.git_archival.txt +0 -0
  103. {xarray-2024.3.0 → xarray-2024.5.0}/.gitattributes +0 -0
  104. {xarray-2024.3.0 → xarray-2024.5.0}/.github/FUNDING.yml +0 -0
  105. {xarray-2024.3.0 → xarray-2024.5.0}/.github/ISSUE_TEMPLATE/bugreport.yml +0 -0
  106. {xarray-2024.3.0 → xarray-2024.5.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  107. {xarray-2024.3.0 → xarray-2024.5.0}/.github/ISSUE_TEMPLATE/misc.yml +0 -0
  108. {xarray-2024.3.0 → xarray-2024.5.0}/.github/ISSUE_TEMPLATE/newfeature.yml +0 -0
  109. {xarray-2024.3.0 → xarray-2024.5.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  110. {xarray-2024.3.0 → xarray-2024.5.0}/.github/config.yml +0 -0
  111. {xarray-2024.3.0 → xarray-2024.5.0}/.github/dependabot.yml +0 -0
  112. {xarray-2024.3.0 → xarray-2024.5.0}/.github/stale.yml +0 -0
  113. {xarray-2024.3.0 → xarray-2024.5.0}/.github/workflows/benchmarks-last-release.yml +0 -0
  114. {xarray-2024.3.0 → xarray-2024.5.0}/.github/workflows/configure-testpypi-version.py +0 -0
  115. {xarray-2024.3.0 → xarray-2024.5.0}/.github/workflows/nightly-wheels.yml +0 -0
  116. {xarray-2024.3.0 → xarray-2024.5.0}/.github/workflows/publish-test-results.yaml +0 -0
  117. {xarray-2024.3.0 → xarray-2024.5.0}/.pep8speaks.yml +0 -0
  118. {xarray-2024.3.0 → xarray-2024.5.0}/.readthedocs.yaml +0 -0
  119. {xarray-2024.3.0 → xarray-2024.5.0}/CITATION.cff +0 -0
  120. {xarray-2024.3.0 → xarray-2024.5.0}/CODE_OF_CONDUCT.md +0 -0
  121. {xarray-2024.3.0 → xarray-2024.5.0}/CONTRIBUTING.md +0 -0
  122. {xarray-2024.3.0 → xarray-2024.5.0}/CORE_TEAM_GUIDE.md +0 -0
  123. {xarray-2024.3.0 → xarray-2024.5.0}/HOW_TO_RELEASE.md +0 -0
  124. {xarray-2024.3.0 → xarray-2024.5.0}/LICENSE +0 -0
  125. {xarray-2024.3.0 → xarray-2024.5.0}/README.md +0 -0
  126. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/README_CI.md +0 -0
  127. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/__init__.py +0 -0
  128. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/accessors.py +0 -0
  129. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/alignment.py +0 -0
  130. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/combine.py +0 -0
  131. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/dataarray_missing.py +0 -0
  132. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/dataset.py +0 -0
  133. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/dataset_io.py +0 -0
  134. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/import.py +0 -0
  135. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/interp.py +0 -0
  136. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/merge.py +0 -0
  137. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/pandas.py +0 -0
  138. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/polyfit.py +0 -0
  139. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/reindexing.py +0 -0
  140. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/renaming.py +0 -0
  141. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/repr.py +0 -0
  142. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/rolling.py +0 -0
  143. {xarray-2024.3.0 → xarray-2024.5.0}/asv_bench/benchmarks/unstacking.py +0 -0
  144. {xarray-2024.3.0 → xarray-2024.5.0}/ci/requirements/all-but-dask.yml +0 -0
  145. /xarray-2024.3.0/ci/requirements/environment-3.12.yml → /xarray-2024.5.0/ci/requirements/environment-3.13.yml +0 -0
  146. /xarray-2024.3.0/ci/requirements/environment-windows-3.12.yml → /xarray-2024.5.0/ci/requirements/environment-windows-3.13.yml +0 -0
  147. {xarray-2024.3.0 → xarray-2024.5.0}/conftest.py +0 -0
  148. {xarray-2024.3.0 → xarray-2024.5.0}/design_notes/flexible_indexes_notes.md +0 -0
  149. {xarray-2024.3.0 → xarray-2024.5.0}/design_notes/grouper_objects.md +0 -0
  150. {xarray-2024.3.0 → xarray-2024.5.0}/design_notes/named_array_design_doc.md +0 -0
  151. {xarray-2024.3.0 → xarray-2024.5.0}/doc/Makefile +0 -0
  152. {xarray-2024.3.0 → xarray-2024.5.0}/doc/README.rst +0 -0
  153. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/.gitignore +0 -0
  154. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/advanced_selection_interpolation.svg +0 -0
  155. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/ci.png +0 -0
  156. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/dask_array.png +0 -0
  157. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/dataset-diagram.png +0 -0
  158. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/index_api.svg +0 -0
  159. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/index_contribute.svg +0 -0
  160. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/index_getting_started.svg +0 -0
  161. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/index_user_guide.svg +0 -0
  162. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/logos/Xarray_Icon_Final.png +0 -0
  163. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/logos/Xarray_Icon_Final.svg +0 -0
  164. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.png +0 -0
  165. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.svg +0 -0
  166. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/logos/Xarray_Logo_RGB_Final.png +0 -0
  167. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/logos/Xarray_Logo_RGB_Final.svg +0 -0
  168. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/numfocus_logo.png +0 -0
  169. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/opendap-prism-tmax.png +0 -0
  170. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/style.css +0 -0
  171. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/thumbnails/ERA5-GRIB-example.png +0 -0
  172. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/thumbnails/ROMS_ocean_model.png +0 -0
  173. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/thumbnails/area_weighted_temperature.png +0 -0
  174. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/thumbnails/monthly-means.png +0 -0
  175. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/thumbnails/multidimensional-coords.png +0 -0
  176. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/thumbnails/toy-weather-data.png +0 -0
  177. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/thumbnails/visualization_gallery.png +0 -0
  178. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_static/view-docs.png +0 -0
  179. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_templates/autosummary/accessor.rst +0 -0
  180. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_templates/autosummary/accessor_attribute.rst +0 -0
  181. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_templates/autosummary/accessor_callable.rst +0 -0
  182. {xarray-2024.3.0 → xarray-2024.5.0}/doc/_templates/autosummary/accessor_method.rst +0 -0
  183. {xarray-2024.3.0 → xarray-2024.5.0}/doc/api-hidden.rst +0 -0
  184. {xarray-2024.3.0 → xarray-2024.5.0}/doc/api.rst +0 -0
  185. {xarray-2024.3.0 → xarray-2024.5.0}/doc/conf.py +0 -0
  186. {xarray-2024.3.0 → xarray-2024.5.0}/doc/contributing.rst +0 -0
  187. {xarray-2024.3.0 → xarray-2024.5.0}/doc/developers-meeting.rst +0 -0
  188. {xarray-2024.3.0 → xarray-2024.5.0}/doc/ecosystem.rst +0 -0
  189. {xarray-2024.3.0 → xarray-2024.5.0}/doc/examples/ERA5-GRIB-example.ipynb +0 -0
  190. {xarray-2024.3.0 → xarray-2024.5.0}/doc/examples/ROMS_ocean_model.ipynb +0 -0
  191. {xarray-2024.3.0 → xarray-2024.5.0}/doc/examples/_code/accessor_example.py +0 -0
  192. {xarray-2024.3.0 → xarray-2024.5.0}/doc/examples/apply_ufunc_vectorize_1d.ipynb +0 -0
  193. {xarray-2024.3.0 → xarray-2024.5.0}/doc/examples/area_weighted_temperature.ipynb +0 -0
  194. {xarray-2024.3.0 → xarray-2024.5.0}/doc/examples/blank_template.ipynb +0 -0
  195. {xarray-2024.3.0 → xarray-2024.5.0}/doc/examples/monthly-means.ipynb +0 -0
  196. {xarray-2024.3.0 → xarray-2024.5.0}/doc/examples/monthly_means_output.png +0 -0
  197. {xarray-2024.3.0 → xarray-2024.5.0}/doc/examples/multidimensional-coords.ipynb +0 -0
  198. {xarray-2024.3.0 → xarray-2024.5.0}/doc/examples/visualization_gallery.ipynb +0 -0
  199. {xarray-2024.3.0 → xarray-2024.5.0}/doc/examples/weather-data.ipynb +0 -0
  200. {xarray-2024.3.0 → xarray-2024.5.0}/doc/gallery/README.txt +0 -0
  201. {xarray-2024.3.0 → xarray-2024.5.0}/doc/gallery/plot_cartopy_facetgrid.py +0 -0
  202. {xarray-2024.3.0 → xarray-2024.5.0}/doc/gallery/plot_colorbar_center.py +0 -0
  203. {xarray-2024.3.0 → xarray-2024.5.0}/doc/gallery/plot_control_colorbar.py +0 -0
  204. {xarray-2024.3.0 → xarray-2024.5.0}/doc/gallery/plot_lines_from_2d.py +0 -0
  205. {xarray-2024.3.0 → xarray-2024.5.0}/doc/gallery.rst +0 -0
  206. {xarray-2024.3.0 → xarray-2024.5.0}/doc/gallery.yml +0 -0
  207. {xarray-2024.3.0 → xarray-2024.5.0}/doc/getting-started-guide/faq.rst +0 -0
  208. {xarray-2024.3.0 → xarray-2024.5.0}/doc/getting-started-guide/index.rst +0 -0
  209. {xarray-2024.3.0 → xarray-2024.5.0}/doc/getting-started-guide/quick-overview.rst +0 -0
  210. {xarray-2024.3.0 → xarray-2024.5.0}/doc/getting-started-guide/why-xarray.rst +0 -0
  211. {xarray-2024.3.0 → xarray-2024.5.0}/doc/howdoi.rst +0 -0
  212. {xarray-2024.3.0 → xarray-2024.5.0}/doc/index.rst +0 -0
  213. {xarray-2024.3.0 → xarray-2024.5.0}/doc/internals/chunked-arrays.rst +0 -0
  214. {xarray-2024.3.0 → xarray-2024.5.0}/doc/internals/duck-arrays-integration.rst +0 -0
  215. {xarray-2024.3.0 → xarray-2024.5.0}/doc/internals/extending-xarray.rst +0 -0
  216. {xarray-2024.3.0 → xarray-2024.5.0}/doc/internals/how-to-add-new-backend.rst +0 -0
  217. {xarray-2024.3.0 → xarray-2024.5.0}/doc/internals/how-to-create-custom-index.rst +0 -0
  218. {xarray-2024.3.0 → xarray-2024.5.0}/doc/internals/index.rst +0 -0
  219. {xarray-2024.3.0 → xarray-2024.5.0}/doc/internals/internal-design.rst +0 -0
  220. {xarray-2024.3.0 → xarray-2024.5.0}/doc/internals/interoperability.rst +0 -0
  221. {xarray-2024.3.0 → xarray-2024.5.0}/doc/internals/zarr-encoding-spec.rst +0 -0
  222. {xarray-2024.3.0 → xarray-2024.5.0}/doc/roadmap.rst +0 -0
  223. {xarray-2024.3.0 → xarray-2024.5.0}/doc/tutorials-and-videos.rst +0 -0
  224. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/combining.rst +0 -0
  225. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/computation.rst +0 -0
  226. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/dask.rst +0 -0
  227. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/duckarrays.rst +0 -0
  228. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/groupby.rst +0 -0
  229. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/index.rst +0 -0
  230. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/indexing.rst +0 -0
  231. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/interpolation.rst +0 -0
  232. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/options.rst +0 -0
  233. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/pandas.rst +0 -0
  234. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/plotting.rst +0 -0
  235. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/reshaping.rst +0 -0
  236. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/terminology.rst +0 -0
  237. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/testing.rst +0 -0
  238. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/time-series.rst +0 -0
  239. {xarray-2024.3.0 → xarray-2024.5.0}/doc/user-guide/weather-climate.rst +0 -0
  240. {xarray-2024.3.0 → xarray-2024.5.0}/doc/videos.yml +0 -0
  241. {xarray-2024.3.0 → xarray-2024.5.0}/licenses/DASK_LICENSE +0 -0
  242. {xarray-2024.3.0 → xarray-2024.5.0}/licenses/ICOMOON_LICENSE +0 -0
  243. {xarray-2024.3.0 → xarray-2024.5.0}/licenses/NUMPY_LICENSE +0 -0
  244. {xarray-2024.3.0 → xarray-2024.5.0}/licenses/PANDAS_LICENSE +0 -0
  245. {xarray-2024.3.0 → xarray-2024.5.0}/licenses/PYTHON_LICENSE +0 -0
  246. {xarray-2024.3.0 → xarray-2024.5.0}/licenses/SCIKIT_LEARN_LICENSE +0 -0
  247. {xarray-2024.3.0 → xarray-2024.5.0}/licenses/SEABORN_LICENSE +0 -0
  248. {xarray-2024.3.0 → xarray-2024.5.0}/properties/README.md +0 -0
  249. {xarray-2024.3.0 → xarray-2024.5.0}/properties/test_encode_decode.py +0 -0
  250. {xarray-2024.3.0 → xarray-2024.5.0}/setup.cfg +0 -0
  251. {xarray-2024.3.0 → xarray-2024.5.0}/setup.py +0 -0
  252. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/__init__.py +0 -0
  253. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/common.py +0 -0
  254. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/file_manager.py +0 -0
  255. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/h5netcdf_.py +0 -0
  256. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/locks.py +0 -0
  257. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/lru_cache.py +0 -0
  258. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/memory.py +0 -0
  259. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/netCDF4_.py +0 -0
  260. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/netcdf3.py +0 -0
  261. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/plugins.py +0 -0
  262. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/pydap_.py +0 -0
  263. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/scipy_.py +0 -0
  264. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/backends/store.py +0 -0
  265. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/coding/__init__.py +0 -0
  266. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/coding/cftimeindex.py +0 -0
  267. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/coding/frequencies.py +0 -0
  268. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/coding/strings.py +0 -0
  269. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/conventions.py +0 -0
  270. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/convert.py +0 -0
  271. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/__init__.py +0 -0
  272. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/_aggregations.py +0 -0
  273. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/_typed_ops.py +0 -0
  274. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/accessor_dt.py +0 -0
  275. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/accessor_str.py +0 -0
  276. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/alignment.py +0 -0
  277. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/combine.py +0 -0
  278. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/common.py +0 -0
  279. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/coordinates.py +0 -0
  280. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/dask_array_ops.py +0 -0
  281. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/dtypes.py +0 -0
  282. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/groupby.py +0 -0
  283. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/merge.py +0 -0
  284. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/nanops.py +0 -0
  285. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/npcompat.py +0 -0
  286. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/nputils.py +0 -0
  287. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/ops.py +0 -0
  288. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/options.py +0 -0
  289. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/parallel.py +0 -0
  290. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/pdcompat.py +0 -0
  291. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/resample.py +0 -0
  292. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/resample_cftime.py +0 -0
  293. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/rolling.py +0 -0
  294. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/rolling_exp.py +0 -0
  295. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/core/utils.py +0 -0
  296. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/indexes/__init__.py +0 -0
  297. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/namedarray/__init__.py +0 -0
  298. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/namedarray/_aggregations.py +0 -0
  299. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/namedarray/_array_api.py +0 -0
  300. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/namedarray/_typing.py +0 -0
  301. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/namedarray/core.py +0 -0
  302. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/namedarray/daskmanager.py +0 -0
  303. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/namedarray/dtypes.py +0 -0
  304. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/namedarray/parallelcompat.py +0 -0
  305. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/namedarray/pycompat.py +0 -0
  306. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/namedarray/utils.py +0 -0
  307. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/plot/__init__.py +0 -0
  308. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/plot/accessor.py +0 -0
  309. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/plot/dataarray_plot.py +0 -0
  310. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/plot/dataset_plot.py +0 -0
  311. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/plot/facetgrid.py +0 -0
  312. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/plot/utils.py +0 -0
  313. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/py.typed +0 -0
  314. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/static/__init__.py +0 -0
  315. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/static/css/__init__.py +0 -0
  316. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/static/css/style.css +0 -0
  317. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/static/html/__init__.py +0 -0
  318. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/static/html/icons-svg-inline.html +0 -0
  319. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/conftest.py +0 -0
  320. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/data/bears.nc +0 -0
  321. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/data/example.grib +0 -0
  322. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/data/example.ict +0 -0
  323. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/data/example.uamiv +0 -0
  324. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/data/example_1.nc +0 -0
  325. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/data/example_1.nc.gz +0 -0
  326. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_accessor_dt.py +0 -0
  327. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_accessor_str.py +0 -0
  328. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_array_api.py +0 -0
  329. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_backends_api.py +0 -0
  330. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_backends_common.py +0 -0
  331. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_backends_file_manager.py +0 -0
  332. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_backends_locks.py +0 -0
  333. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_backends_lru_cache.py +0 -0
  334. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_cftimeindex.py +0 -0
  335. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_cftimeindex_resample.py +0 -0
  336. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_coarsen.py +0 -0
  337. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_coding.py +0 -0
  338. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_coding_strings.py +0 -0
  339. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_coding_times.py +0 -0
  340. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_combine.py +0 -0
  341. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_conventions.py +0 -0
  342. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_coordinates.py +0 -0
  343. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_cupy.py +0 -0
  344. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_dask.py +0 -0
  345. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_deprecation_helpers.py +0 -0
  346. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_distributed.py +0 -0
  347. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_dtypes.py +0 -0
  348. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_error_messages.py +0 -0
  349. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_hashable.py +0 -0
  350. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_indexes.py +0 -0
  351. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_indexing.py +0 -0
  352. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_interp.py +0 -0
  353. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_namedarray.py +0 -0
  354. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_nputils.py +0 -0
  355. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_options.py +0 -0
  356. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_parallelcompat.py +0 -0
  357. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_print_versions.py +0 -0
  358. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_strategies.py +0 -0
  359. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_tutorial.py +0 -0
  360. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_typed_ops.py +0 -0
  361. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_ufuncs.py +0 -0
  362. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_units.py +0 -0
  363. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_utils.py +0 -0
  364. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tests/test_weighted.py +0 -0
  365. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/tutorial.py +0 -0
  366. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/util/__init__.py +0 -0
  367. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/util/generate_aggregations.py +0 -0
  368. {xarray-2024.3.0 → xarray-2024.5.0}/xarray/util/generate_ops.py +0 -0
  369. {xarray-2024.3.0 → xarray-2024.5.0}/xarray.egg-info/dependency_links.txt +0 -0
  370. {xarray-2024.3.0 → xarray-2024.5.0}/xarray.egg-info/entry_points.txt +0 -0
  371. {xarray-2024.3.0 → xarray-2024.5.0}/xarray.egg-info/top_level.txt +0 -0
@@ -28,7 +28,6 @@ dependencies:
28
28
  - pip
29
29
  - pooch
30
30
  - pydap
31
- - pynio
32
31
  - rasterio
33
32
  - scipy
34
33
  - seaborn
@@ -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} \
@@ -6,6 +6,12 @@ on:
6
6
  pull_request:
7
7
  branches:
8
8
  - "main"
9
+ paths:
10
+ - 'ci/**'
11
+ - '.github/**'
12
+ - '/*' # covers files such as `pyproject.toml`
13
+ - 'properties/**'
14
+ - 'xarray/**'
9
15
  workflow_dispatch: # allows you to trigger manually
10
16
 
11
17
  concurrency:
@@ -35,14 +41,13 @@ jobs:
35
41
  runs-on: "ubuntu-latest"
36
42
  needs: detect-ci-trigger
37
43
  if: needs.detect-ci-trigger.outputs.triggered == 'false'
44
+
38
45
  defaults:
39
46
  run:
40
47
  shell: bash -l {0}
41
-
42
48
  env:
43
49
  CONDA_ENV_FILE: ci/requirements/environment.yml
44
- PYTHON_VERSION: "3.11"
45
-
50
+ PYTHON_VERSION: "3.12"
46
51
  steps:
47
52
  - uses: actions/checkout@v4
48
53
  with:
@@ -128,7 +133,7 @@ jobs:
128
133
  python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
129
134
 
130
135
  - name: Upload mypy coverage to Codecov
131
- uses: codecov/codecov-action@v4.1.0
136
+ uses: codecov/codecov-action@v4.3.1
132
137
  with:
133
138
  file: mypy_report/cobertura.xml
134
139
  flags: mypy
@@ -182,7 +187,7 @@ jobs:
182
187
  python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
183
188
 
184
189
  - name: Upload mypy coverage to Codecov
185
- uses: codecov/codecov-action@v4.1.0
190
+ uses: codecov/codecov-action@v4.3.1
186
191
  with:
187
192
  file: mypy_report/cobertura.xml
188
193
  flags: mypy39
@@ -206,7 +211,7 @@ jobs:
206
211
  shell: bash -l {0}
207
212
  env:
208
213
  CONDA_ENV_FILE: ci/requirements/environment.yml
209
- PYTHON_VERSION: "3.10"
214
+ PYTHON_VERSION: "3.12"
210
215
 
211
216
  steps:
212
217
  - uses: actions/checkout@v4
@@ -243,7 +248,7 @@ jobs:
243
248
  python -m pyright xarray/
244
249
 
245
250
  - name: Upload pyright coverage to Codecov
246
- uses: codecov/codecov-action@v4.1.0
251
+ uses: codecov/codecov-action@v4.3.1
247
252
  with:
248
253
  file: pyright_report/cobertura.xml
249
254
  flags: pyright
@@ -302,7 +307,7 @@ jobs:
302
307
  python -m pyright xarray/
303
308
 
304
309
  - name: Upload pyright coverage to Codecov
305
- uses: codecov/codecov-action@v4.1.0
310
+ uses: codecov/codecov-action@v4.3.1
306
311
  with:
307
312
  file: pyright_report/cobertura.xml
308
313
  flags: pyright39
@@ -331,7 +336,7 @@ jobs:
331
336
  with:
332
337
  environment-name: xarray-tests
333
338
  create-args: >-
334
- python=3.11
339
+ python=3.12
335
340
  pyyaml
336
341
  conda
337
342
  python-dateutil
@@ -6,6 +6,12 @@ on:
6
6
  pull_request:
7
7
  branches:
8
8
  - "main"
9
+ paths:
10
+ - 'ci/**'
11
+ - '.github/**'
12
+ - '/*' # covers files such as `pyproject.toml`
13
+ - 'properties/**'
14
+ - 'xarray/**'
9
15
  workflow_dispatch: # allows you to trigger manually
10
16
 
11
17
  concurrency:
@@ -44,7 +50,7 @@ jobs:
44
50
  matrix:
45
51
  os: ["ubuntu-latest", "macos-latest", "windows-latest"]
46
52
  # Bookend python versions
47
- python-version: ["3.9", "3.11", "3.12"]
53
+ python-version: ["3.9", "3.12"]
48
54
  env: [""]
49
55
  include:
50
56
  # Minimum python version:
@@ -56,10 +62,11 @@ jobs:
56
62
  os: ubuntu-latest
57
63
  # Latest python version:
58
64
  - env: "all-but-dask"
59
- python-version: "3.10"
65
+ # Not 3.12 because of pint
66
+ python-version: "3.11"
60
67
  os: ubuntu-latest
61
68
  - env: "flaky"
62
- python-version: "3.10"
69
+ python-version: "3.12"
63
70
  os: ubuntu-latest
64
71
  steps:
65
72
  - uses: actions/checkout@v4
@@ -71,25 +78,30 @@ jobs:
71
78
 
72
79
  if [[ ${{ matrix.os }} == windows* ]] ;
73
80
  then
74
- if [[ ${{ matrix.python-version }} != "3.12" ]]; then
81
+ if [[ ${{ matrix.python-version }} != "3.13" ]]; then
75
82
  echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV
76
83
  else
77
- echo "CONDA_ENV_FILE=ci/requirements/environment-windows-3.12.yml" >> $GITHUB_ENV
84
+ echo "CONDA_ENV_FILE=ci/requirements/environment-windows-3.13.yml" >> $GITHUB_ENV
78
85
  fi
79
86
  elif [[ "${{ matrix.env }}" != "" ]] ;
80
87
  then
81
88
  if [[ "${{ matrix.env }}" == "flaky" ]] ;
82
89
  then
83
90
  echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
84
- echo "PYTEST_EXTRA_FLAGS=--run-flaky --run-network-tests" >> $GITHUB_ENV
91
+ echo "PYTEST_ADDOPTS=-m 'flaky or network' --run-flaky --run-network-tests -W default" >> $GITHUB_ENV
85
92
  else
86
93
  echo "CONDA_ENV_FILE=ci/requirements/${{ matrix.env }}.yml" >> $GITHUB_ENV
87
94
  fi
95
+ if [[ "${{ matrix.env }}" == "min-all-deps" ]] ;
96
+ then
97
+ # Don't raise on warnings
98
+ echo "PYTEST_ADDOPTS=-W default" >> $GITHUB_ENV
99
+ fi
88
100
  else
89
- if [[ ${{ matrix.python-version }} != "3.12" ]]; then
101
+ if [[ ${{ matrix.python-version }} != "3.13" ]]; then
90
102
  echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
91
103
  else
92
- echo "CONDA_ENV_FILE=ci/requirements/environment-3.12.yml" >> $GITHUB_ENV
104
+ echo "CONDA_ENV_FILE=ci/requirements/environment-3.13.yml" >> $GITHUB_ENV
93
105
  fi
94
106
  fi
95
107
 
@@ -109,7 +121,7 @@ jobs:
109
121
  # We only want to install this on one run, because otherwise we'll have
110
122
  # duplicate annotations.
111
123
  - name: Install error reporter
112
- if: ${{ matrix.os }} == 'ubuntu-latest' and ${{ matrix.python-version }} == '3.10'
124
+ if: ${{ matrix.os }} == 'ubuntu-latest' and ${{ matrix.python-version }} == '3.12'
113
125
  run: |
114
126
  python -m pip install pytest-github-actions-annotate-failures
115
127
 
@@ -127,13 +139,20 @@ jobs:
127
139
  run: |
128
140
  python -c "import xarray"
129
141
 
142
+ - name: Restore cached hypothesis directory
143
+ uses: actions/cache@v4
144
+ with:
145
+ path: .hypothesis/
146
+ key: cache-hypothesis
147
+ enableCrossOsArchive: true
148
+ save-always: true
149
+
130
150
  - name: Run tests
131
151
  run: python -m pytest -n 4
132
152
  --timeout 180
133
153
  --cov=xarray
134
154
  --cov-report=xml
135
155
  --junitxml=pytest.xml
136
- $PYTEST_EXTRA_FLAGS
137
156
 
138
157
  - name: Upload test results
139
158
  if: always()
@@ -143,7 +162,7 @@ jobs:
143
162
  path: pytest.xml
144
163
 
145
164
  - name: Upload code coverage to Codecov
146
- uses: codecov/codecov-action@v4.1.0
165
+ uses: codecov/codecov-action@v4.3.1
147
166
  with:
148
167
  file: ./coverage.xml
149
168
  flags: unittests
@@ -0,0 +1,116 @@
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
+ jobs:
15
+ detect-ci-trigger:
16
+ name: detect ci trigger
17
+ runs-on: ubuntu-latest
18
+ if: |
19
+ github.repository == 'pydata/xarray'
20
+ && (github.event_name == 'push' || github.event_name == 'pull_request')
21
+ outputs:
22
+ triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+ with:
26
+ fetch-depth: 2
27
+ - uses: xarray-contrib/ci-trigger@v1
28
+ id: detect-trigger
29
+ with:
30
+ keyword: "[skip-ci]"
31
+
32
+ hypothesis:
33
+ name: Slow Hypothesis Tests
34
+ runs-on: "ubuntu-latest"
35
+ needs: detect-ci-trigger
36
+ if: |
37
+ always()
38
+ && (
39
+ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
40
+ || needs.detect-ci-trigger.outputs.triggered == 'true'
41
+ || contains( github.event.pull_request.labels.*.name, 'run-slow-hypothesis')
42
+ )
43
+ defaults:
44
+ run:
45
+ shell: bash -l {0}
46
+
47
+ env:
48
+ CONDA_ENV_FILE: ci/requirements/environment.yml
49
+ PYTHON_VERSION: "3.12"
50
+
51
+ steps:
52
+ - uses: actions/checkout@v4
53
+ with:
54
+ fetch-depth: 0 # Fetch all history for all branches and tags.
55
+
56
+ - name: set environment variables
57
+ run: |
58
+ echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
59
+
60
+ - name: Setup micromamba
61
+ uses: mamba-org/setup-micromamba@v1
62
+ with:
63
+ environment-file: ci/requirements/environment.yml
64
+ environment-name: xarray-tests
65
+ create-args: >-
66
+ python=${{env.PYTHON_VERSION}}
67
+ pytest-reportlog
68
+ cache-environment: true
69
+ cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
70
+
71
+ - name: Install xarray
72
+ run: |
73
+ python -m pip install --no-deps -e .
74
+ - name: Version info
75
+ run: |
76
+ conda info -a
77
+ conda list
78
+ python xarray/util/print_versions.py
79
+
80
+ # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
81
+ - name: Restore cached hypothesis directory
82
+ id: restore-hypothesis-cache
83
+ uses: actions/cache/restore@v4
84
+ with:
85
+ path: .hypothesis/
86
+ key: cache-hypothesis-${{ runner.os }}-${{ github.run_id }}
87
+ restore-keys: |
88
+ cache-hypothesis-
89
+
90
+ - name: Run slow Hypothesis tests
91
+ if: success()
92
+ id: status
93
+ run: |
94
+ python -m pytest --hypothesis-show-statistics --run-slow-hypothesis properties/*.py \
95
+ --report-log output-${{ matrix.python-version }}-log.jsonl
96
+
97
+ # explicitly save the cache so it gets updated, also do this even if it fails.
98
+ - name: Save cached hypothesis directory
99
+ id: save-hypothesis-cache
100
+ if: always() && steps.status.outcome != 'skipped'
101
+ uses: actions/cache/save@v4
102
+ with:
103
+ path: .hypothesis/
104
+ key: cache-hypothesis-${{ runner.os }}-${{ github.run_id }}
105
+
106
+ - name: Generate and publish the report
107
+ if: |
108
+ failure()
109
+ && steps.status.outcome == 'failure'
110
+ && github.event_name == 'schedule'
111
+ && github.repository_owner == 'pydata'
112
+ uses: xarray-contrib/issue-from-pytest-log@v1
113
+ with:
114
+ log-path: output-${{ matrix.python-version }}-log.jsonl
115
+ issue-title: "Nightly Hypothesis tests failed"
116
+ 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.11"
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.11"
56
+ python-version: "3.12"
57
57
  - uses: actions/download-artifact@v4
58
58
  with:
59
59
  name: releases
@@ -143,7 +143,7 @@ jobs:
143
143
  run: |
144
144
  python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
145
145
  - name: Upload mypy coverage to Codecov
146
- uses: codecov/codecov-action@v4.1.0
146
+ uses: codecov/codecov-action@v4.3.1
147
147
  with:
148
148
  file: mypy_report/cobertura.xml
149
149
  flags: mypy
@@ -50,7 +50,8 @@ nosetests.xml
50
50
  dask-worker-space/
51
51
 
52
52
  # asv environments
53
- .asv
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.5.0
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.2.0'
16
+ rev: 'v0.4.3'
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.1.1
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.1.1"]
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.8.0
33
+ rev: v1.10.0
34
34
  hooks:
35
35
  - id: mypy
36
36
  # Copied from setup.cfg
@@ -0,0 +1,2 @@
1
+ prune xarray/datatree_*
2
+ recursive-include xarray/datatree_/datatree *.py
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xarray
3
- Version: 2024.3.0
3
+ Version: 2024.5.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>=22
28
- Requires-Dist: pandas>=1.5
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": "conda",
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.10"],
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="H", periods=365 * 24)},
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="48H").mean()
118
- self.ds2d_mean = self.ds2d.resample(time="48H").mean()
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="3M"), method)().compute()
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="48H"), method)().compute()
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="H", periods=365 * 24, calendar="noleap"
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="48H").mean()
163
- self.ds2d_mean = self.ds2d.resample(time="48H").mean()
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())])
@@ -1,13 +1,11 @@
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
5
3
  # temporarily (?) remove numbagg and numba
6
4
  micromamba remove -y numba numbagg sparse
7
5
  # temporarily remove numexpr
8
6
  micromamba remove -y numexpr
9
7
  # temporarily remove backends
10
- micromamba remove -y cf_units hdf5 h5py netcdf4
8
+ micromamba remove -y cf_units hdf5 h5py netcdf4 pydap
11
9
  # forcibly remove packages to avoid artifacts
12
10
  micromamba remove -y --force \
13
11
  numpy \
@@ -18,10 +16,9 @@ micromamba remove -y --force \
18
16
  zarr \
19
17
  cftime \
20
18
  packaging \
21
- pint \
22
19
  bottleneck \
23
- flox \
24
- numcodecs
20
+ flox
21
+ # pint
25
22
  # to limit the runtime of Upstream CI
26
23
  python -m pip install \
27
24
  -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
@@ -31,7 +28,8 @@ python -m pip install \
31
28
  numpy \
32
29
  scipy \
33
30
  matplotlib \
34
- pandas
31
+ pandas \
32
+ h5py
35
33
  # for some reason pandas depends on pyarrow already.
36
34
  # Remove once a `pyarrow` version compiled with `numpy>=2.0` is on `conda-forge`
37
35
  python -m pip install \
@@ -41,23 +39,6 @@ python -m pip install \
41
39
  --pre \
42
40
  --upgrade \
43
41
  pyarrow
44
- # without build isolation for packages compiling against numpy
45
- # TODO: remove once there are `numpy>=2.0` builds for these
46
- python -m pip install \
47
- --no-deps \
48
- --upgrade \
49
- --no-build-isolation \
50
- git+https://github.com/Unidata/cftime
51
- python -m pip install \
52
- --no-deps \
53
- --upgrade \
54
- --no-build-isolation \
55
- git+https://github.com/zarr-developers/numcodecs
56
- python -m pip install \
57
- --no-deps \
58
- --upgrade \
59
- --no-build-isolation \
60
- git+https://github.com/pydata/bottleneck
61
42
  python -m pip install \
62
43
  --no-deps \
63
44
  --upgrade \
@@ -65,11 +46,13 @@ python -m pip install \
65
46
  git+https://github.com/dask/dask-expr \
66
47
  git+https://github.com/dask/distributed \
67
48
  git+https://github.com/zarr-developers/zarr \
49
+ git+https://github.com/Unidata/cftime \
68
50
  git+https://github.com/pypa/packaging \
69
51
  git+https://github.com/hgrecco/pint \
52
+ git+https://github.com/pydata/bottleneck \
70
53
  git+https://github.com/intake/filesystem_spec \
71
54
  git+https://github.com/SciTools/nc-time-axis \
72
55
  git+https://github.com/xarray-contrib/flox \
56
+ git+https://github.com/h5netcdf/h5netcdf \
73
57
  git+https://github.com/dgasmith/opt_einsum
74
58
  # git+https://github.com/pydata/sparse
75
- # git+https://github.com/h5netcdf/h5netcdf
@@ -133,7 +133,7 @@ def process_pkg(
133
133
  - publication date of version suggested by policy (YYYY-MM-DD)
134
134
  - status ("<", "=", "> (!)")
135
135
  """
136
- print("Analyzing %s..." % pkg)
136
+ print(f"Analyzing {pkg}...")
137
137
  versions = query_conda(pkg)
138
138
 
139
139
  try: