xarray 2024.5.0__tar.gz → 2024.7.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 (377) hide show
  1. xarray-2024.7.0/.github/release.yml +5 -0
  2. {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/ci-additional.yaml +7 -10
  3. {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/ci.yaml +4 -7
  4. {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/hypothesis.yaml +6 -3
  5. {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/pypi-release.yaml +2 -2
  6. {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/upstream-dev-ci.yaml +4 -1
  7. {xarray-2024.5.0 → xarray-2024.7.0}/.pre-commit-config.yaml +2 -2
  8. {xarray-2024.5.0 → xarray-2024.7.0}/CITATION.cff +14 -0
  9. {xarray-2024.5.0 → xarray-2024.7.0}/HOW_TO_RELEASE.md +5 -6
  10. {xarray-2024.5.0 → xarray-2024.7.0}/PKG-INFO +12 -12
  11. {xarray-2024.5.0 → xarray-2024.7.0}/README.md +11 -11
  12. xarray-2024.7.0/asv_bench/benchmarks/coding.py +18 -0
  13. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/dataarray_missing.py +1 -1
  14. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/dataset_io.py +112 -1
  15. {xarray-2024.5.0 → xarray-2024.7.0}/ci/install-upstream-wheels.sh +17 -7
  16. {xarray-2024.5.0 → xarray-2024.7.0}/ci/min_deps_check.py +5 -5
  17. xarray-2024.7.0/ci/release_contributors.py +49 -0
  18. {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/all-but-dask.yml +1 -1
  19. {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/doc.yml +2 -1
  20. {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/environment-windows.yml +1 -1
  21. {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/environment.yml +1 -1
  22. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/style.css +2 -5
  23. {xarray-2024.5.0 → xarray-2024.7.0}/doc/api-hidden.rst +4 -0
  24. {xarray-2024.5.0 → xarray-2024.7.0}/doc/api.rst +21 -4
  25. {xarray-2024.5.0 → xarray-2024.7.0}/doc/conf.py +11 -2
  26. {xarray-2024.5.0 → xarray-2024.7.0}/doc/ecosystem.rst +1 -0
  27. {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/multidimensional-coords.ipynb +0 -7
  28. {xarray-2024.5.0 → xarray-2024.7.0}/doc/getting-started-guide/faq.rst +2 -2
  29. xarray-2024.7.0/doc/help-diagram.rst +75 -0
  30. {xarray-2024.5.0 → xarray-2024.7.0}/doc/index.rst +3 -1
  31. {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/how-to-add-new-backend.rst +1 -1
  32. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/computation.rst +3 -3
  33. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/dask.rst +16 -0
  34. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/groupby.rst +82 -11
  35. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/interpolation.rst +2 -2
  36. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/io.rst +172 -86
  37. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/pandas.rst +20 -0
  38. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/terminology.rst +1 -1
  39. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/testing.rst +3 -2
  40. {xarray-2024.5.0 → xarray-2024.7.0}/doc/whats-new.rst +144 -5
  41. {xarray-2024.5.0 → xarray-2024.7.0}/properties/test_pandas_roundtrip.py +34 -0
  42. xarray-2024.7.0/properties/test_properties.py +17 -0
  43. {xarray-2024.5.0 → xarray-2024.7.0}/pyproject.toml +2 -7
  44. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/__init__.py +2 -1
  45. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/api.py +64 -41
  46. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/common.py +0 -30
  47. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/file_manager.py +2 -2
  48. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/h5netcdf_.py +65 -5
  49. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/netCDF4_.py +62 -5
  50. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/zarr.py +199 -97
  51. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/calendar_ops.py +11 -1
  52. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/cftime_offsets.py +92 -73
  53. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/cftimeindex.py +41 -24
  54. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/strings.py +3 -3
  55. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/times.py +34 -29
  56. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/variables.py +20 -6
  57. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/conventions.py +23 -13
  58. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/_aggregations.py +52 -104
  59. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/_typed_ops.py +67 -67
  60. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/alignment.py +3 -3
  61. xarray-2024.7.0/xarray/core/array_api_compat.py +44 -0
  62. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/common.py +33 -49
  63. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/computation.py +3 -46
  64. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/concat.py +27 -22
  65. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/dataarray.py +127 -104
  66. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/dataset.py +201 -89
  67. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/datatree.py +304 -243
  68. xarray-2024.5.0/xarray/datatree_/datatree/io.py → xarray-2024.7.0/xarray/core/datatree_io.py +57 -20
  69. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/datatree_render.py +6 -5
  70. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/dtypes.py +96 -25
  71. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/duck_array_ops.py +75 -28
  72. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/extension_array.py +6 -8
  73. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/formatting.py +41 -19
  74. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/formatting_html.py +1 -1
  75. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/groupby.py +69 -626
  76. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/indexes.py +100 -37
  77. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/indexing.py +23 -13
  78. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/iterators.py +10 -9
  79. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/missing.py +3 -1
  80. xarray-2024.7.0/xarray/core/npcompat.py +73 -0
  81. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/nputils.py +1 -1
  82. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/pdcompat.py +0 -22
  83. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/resample.py +18 -56
  84. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/resample_cftime.py +18 -31
  85. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/treenode.py +9 -7
  86. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/types.py +31 -11
  87. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/utils.py +19 -26
  88. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/variable.py +5 -4
  89. xarray-2024.7.0/xarray/groupers.py +409 -0
  90. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/_array_api.py +10 -19
  91. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/_typing.py +7 -4
  92. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/core.py +28 -5
  93. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/daskmanager.py +4 -4
  94. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/plot/dataset_plot.py +10 -5
  95. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/plot/facetgrid.py +2 -2
  96. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/plot/utils.py +3 -3
  97. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/static/css/style.css +1 -0
  98. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/testing/assertions.py +1 -1
  99. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/testing/strategies.py +5 -1
  100. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/__init__.py +3 -2
  101. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_array_api.py +8 -17
  102. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_assertions.py +5 -0
  103. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends.py +53 -7
  104. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends_datatree.py +37 -5
  105. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_calendar_ops.py +24 -1
  106. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_cftime_offsets.py +1 -1
  107. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_cftimeindex.py +20 -20
  108. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_cftimeindex_resample.py +20 -93
  109. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_coding_strings.py +2 -2
  110. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_coding_times.py +85 -66
  111. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_combine.py +6 -3
  112. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_computation.py +12 -10
  113. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_concat.py +12 -8
  114. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_conventions.py +3 -3
  115. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_dask.py +11 -1
  116. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_dataarray.py +72 -56
  117. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_dataset.py +137 -31
  118. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_datatree.py +305 -14
  119. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_dtypes.py +80 -4
  120. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_duck_array_ops.py +12 -7
  121. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_formatting.py +110 -84
  122. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_groupby.py +172 -226
  123. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_indexes.py +13 -12
  124. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_missing.py +22 -31
  125. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_namedarray.py +20 -31
  126. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_plot.py +80 -24
  127. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_rolling.py +14 -8
  128. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_strategies.py +17 -8
  129. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_units.py +5 -8
  130. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_utils.py +5 -1
  131. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_variable.py +36 -27
  132. xarray-2024.7.0/xarray/util/__init__.py +0 -0
  133. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/util/generate_aggregations.py +2 -28
  134. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/util/generate_ops.py +13 -10
  135. {xarray-2024.5.0 → xarray-2024.7.0}/xarray.egg-info/PKG-INFO +12 -12
  136. {xarray-2024.5.0 → xarray-2024.7.0}/xarray.egg-info/SOURCES.txt +9 -2
  137. xarray-2024.5.0/xarray/core/npcompat.py +0 -30
  138. xarray-2024.5.0/xarray/datatree_/datatree/common.py +0 -104
  139. {xarray-2024.5.0 → xarray-2024.7.0}/.binder/environment.yml +0 -0
  140. {xarray-2024.5.0 → xarray-2024.7.0}/.codecov.yml +0 -0
  141. {xarray-2024.5.0 → xarray-2024.7.0}/.git-blame-ignore-revs +0 -0
  142. {xarray-2024.5.0 → xarray-2024.7.0}/.git_archival.txt +0 -0
  143. {xarray-2024.5.0 → xarray-2024.7.0}/.gitattributes +0 -0
  144. {xarray-2024.5.0 → xarray-2024.7.0}/.github/FUNDING.yml +0 -0
  145. {xarray-2024.5.0 → xarray-2024.7.0}/.github/ISSUE_TEMPLATE/bugreport.yml +0 -0
  146. {xarray-2024.5.0 → xarray-2024.7.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  147. {xarray-2024.5.0 → xarray-2024.7.0}/.github/ISSUE_TEMPLATE/misc.yml +0 -0
  148. {xarray-2024.5.0 → xarray-2024.7.0}/.github/ISSUE_TEMPLATE/newfeature.yml +0 -0
  149. {xarray-2024.5.0 → xarray-2024.7.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  150. {xarray-2024.5.0 → xarray-2024.7.0}/.github/config.yml +0 -0
  151. {xarray-2024.5.0 → xarray-2024.7.0}/.github/dependabot.yml +0 -0
  152. {xarray-2024.5.0 → xarray-2024.7.0}/.github/stale.yml +0 -0
  153. {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/benchmarks-last-release.yml +0 -0
  154. {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/benchmarks.yml +0 -0
  155. {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/configure-testpypi-version.py +0 -0
  156. {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/nightly-wheels.yml +0 -0
  157. {xarray-2024.5.0 → xarray-2024.7.0}/.github/workflows/publish-test-results.yaml +0 -0
  158. {xarray-2024.5.0 → xarray-2024.7.0}/.gitignore +0 -0
  159. {xarray-2024.5.0 → xarray-2024.7.0}/.pep8speaks.yml +0 -0
  160. {xarray-2024.5.0 → xarray-2024.7.0}/.readthedocs.yaml +0 -0
  161. {xarray-2024.5.0 → xarray-2024.7.0}/CODE_OF_CONDUCT.md +0 -0
  162. {xarray-2024.5.0 → xarray-2024.7.0}/CONTRIBUTING.md +0 -0
  163. {xarray-2024.5.0 → xarray-2024.7.0}/CORE_TEAM_GUIDE.md +0 -0
  164. {xarray-2024.5.0 → xarray-2024.7.0}/LICENSE +0 -0
  165. {xarray-2024.5.0 → xarray-2024.7.0}/MANIFEST.in +0 -0
  166. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/asv.conf.json +0 -0
  167. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/README_CI.md +0 -0
  168. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/__init__.py +0 -0
  169. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/accessors.py +0 -0
  170. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/alignment.py +0 -0
  171. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/combine.py +0 -0
  172. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/dataset.py +0 -0
  173. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/groupby.py +0 -0
  174. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/import.py +0 -0
  175. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/indexing.py +0 -0
  176. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/interp.py +0 -0
  177. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/merge.py +0 -0
  178. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/pandas.py +0 -0
  179. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/polyfit.py +0 -0
  180. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/reindexing.py +0 -0
  181. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/renaming.py +0 -0
  182. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/repr.py +0 -0
  183. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/rolling.py +0 -0
  184. {xarray-2024.5.0 → xarray-2024.7.0}/asv_bench/benchmarks/unstacking.py +0 -0
  185. {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/bare-minimum.yml +0 -0
  186. {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/environment-3.13.yml +0 -0
  187. {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/environment-windows-3.13.yml +0 -0
  188. {xarray-2024.5.0 → xarray-2024.7.0}/ci/requirements/min-all-deps.yml +0 -0
  189. {xarray-2024.5.0 → xarray-2024.7.0}/conftest.py +0 -0
  190. {xarray-2024.5.0 → xarray-2024.7.0}/design_notes/flexible_indexes_notes.md +0 -0
  191. {xarray-2024.5.0 → xarray-2024.7.0}/design_notes/grouper_objects.md +0 -0
  192. {xarray-2024.5.0 → xarray-2024.7.0}/design_notes/named_array_design_doc.md +0 -0
  193. {xarray-2024.5.0 → xarray-2024.7.0}/doc/Makefile +0 -0
  194. {xarray-2024.5.0 → xarray-2024.7.0}/doc/README.rst +0 -0
  195. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/.gitignore +0 -0
  196. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/advanced_selection_interpolation.svg +0 -0
  197. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/ci.png +0 -0
  198. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/dask_array.png +0 -0
  199. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/dataset-diagram.png +0 -0
  200. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/index_api.svg +0 -0
  201. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/index_contribute.svg +0 -0
  202. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/index_getting_started.svg +0 -0
  203. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/index_user_guide.svg +0 -0
  204. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Icon_Final.png +0 -0
  205. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Icon_Final.svg +0 -0
  206. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.png +0 -0
  207. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.svg +0 -0
  208. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Logo_RGB_Final.png +0 -0
  209. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Logo_RGB_Final.svg +0 -0
  210. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/numfocus_logo.png +0 -0
  211. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/opendap-prism-tmax.png +0 -0
  212. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/ERA5-GRIB-example.png +0 -0
  213. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/ROMS_ocean_model.png +0 -0
  214. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/area_weighted_temperature.png +0 -0
  215. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/monthly-means.png +0 -0
  216. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/multidimensional-coords.png +0 -0
  217. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/toy-weather-data.png +0 -0
  218. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/thumbnails/visualization_gallery.png +0 -0
  219. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_static/view-docs.png +0 -0
  220. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_templates/autosummary/accessor.rst +0 -0
  221. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_templates/autosummary/accessor_attribute.rst +0 -0
  222. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_templates/autosummary/accessor_callable.rst +0 -0
  223. {xarray-2024.5.0 → xarray-2024.7.0}/doc/_templates/autosummary/accessor_method.rst +0 -0
  224. {xarray-2024.5.0 → xarray-2024.7.0}/doc/contributing.rst +0 -0
  225. {xarray-2024.5.0 → xarray-2024.7.0}/doc/developers-meeting.rst +0 -0
  226. {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/ERA5-GRIB-example.ipynb +0 -0
  227. {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/ROMS_ocean_model.ipynb +0 -0
  228. {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/_code/accessor_example.py +0 -0
  229. {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/apply_ufunc_vectorize_1d.ipynb +0 -0
  230. {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/area_weighted_temperature.ipynb +0 -0
  231. {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/blank_template.ipynb +0 -0
  232. {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/monthly-means.ipynb +0 -0
  233. {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/monthly_means_output.png +0 -0
  234. {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/visualization_gallery.ipynb +0 -0
  235. {xarray-2024.5.0 → xarray-2024.7.0}/doc/examples/weather-data.ipynb +0 -0
  236. {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery/README.txt +0 -0
  237. {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery/plot_cartopy_facetgrid.py +0 -0
  238. {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery/plot_colorbar_center.py +0 -0
  239. {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery/plot_control_colorbar.py +0 -0
  240. {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery/plot_lines_from_2d.py +0 -0
  241. {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery.rst +0 -0
  242. {xarray-2024.5.0 → xarray-2024.7.0}/doc/gallery.yml +0 -0
  243. {xarray-2024.5.0 → xarray-2024.7.0}/doc/getting-started-guide/index.rst +0 -0
  244. {xarray-2024.5.0 → xarray-2024.7.0}/doc/getting-started-guide/installing.rst +0 -0
  245. {xarray-2024.5.0 → xarray-2024.7.0}/doc/getting-started-guide/quick-overview.rst +0 -0
  246. {xarray-2024.5.0 → xarray-2024.7.0}/doc/getting-started-guide/why-xarray.rst +0 -0
  247. {xarray-2024.5.0 → xarray-2024.7.0}/doc/howdoi.rst +0 -0
  248. {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/chunked-arrays.rst +0 -0
  249. {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/duck-arrays-integration.rst +0 -0
  250. {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/extending-xarray.rst +0 -0
  251. {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/how-to-create-custom-index.rst +0 -0
  252. {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/index.rst +0 -0
  253. {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/internal-design.rst +0 -0
  254. {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/interoperability.rst +0 -0
  255. {xarray-2024.5.0 → xarray-2024.7.0}/doc/internals/zarr-encoding-spec.rst +0 -0
  256. {xarray-2024.5.0 → xarray-2024.7.0}/doc/roadmap.rst +0 -0
  257. {xarray-2024.5.0 → xarray-2024.7.0}/doc/tutorials-and-videos.rst +0 -0
  258. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/combining.rst +0 -0
  259. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/data-structures.rst +0 -0
  260. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/duckarrays.rst +0 -0
  261. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/index.rst +0 -0
  262. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/indexing.rst +0 -0
  263. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/options.rst +0 -0
  264. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/plotting.rst +0 -0
  265. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/reshaping.rst +0 -0
  266. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/time-series.rst +0 -0
  267. {xarray-2024.5.0 → xarray-2024.7.0}/doc/user-guide/weather-climate.rst +0 -0
  268. {xarray-2024.5.0 → xarray-2024.7.0}/doc/videos.yml +0 -0
  269. {xarray-2024.5.0 → xarray-2024.7.0}/licenses/ANYTREE_LICENSE +0 -0
  270. {xarray-2024.5.0 → xarray-2024.7.0}/licenses/DASK_LICENSE +0 -0
  271. {xarray-2024.5.0 → xarray-2024.7.0}/licenses/ICOMOON_LICENSE +0 -0
  272. {xarray-2024.5.0 → xarray-2024.7.0}/licenses/NUMPY_LICENSE +0 -0
  273. {xarray-2024.5.0 → xarray-2024.7.0}/licenses/PANDAS_LICENSE +0 -0
  274. {xarray-2024.5.0 → xarray-2024.7.0}/licenses/PYTHON_LICENSE +0 -0
  275. {xarray-2024.5.0 → xarray-2024.7.0}/licenses/SCIKIT_LEARN_LICENSE +0 -0
  276. {xarray-2024.5.0 → xarray-2024.7.0}/licenses/SEABORN_LICENSE +0 -0
  277. {xarray-2024.5.0 → xarray-2024.7.0}/properties/README.md +0 -0
  278. {xarray-2024.5.0/xarray/coding → xarray-2024.7.0/properties}/__init__.py +0 -0
  279. {xarray-2024.5.0 → xarray-2024.7.0}/properties/conftest.py +0 -0
  280. {xarray-2024.5.0 → xarray-2024.7.0}/properties/test_encode_decode.py +0 -0
  281. {xarray-2024.5.0 → xarray-2024.7.0}/properties/test_index_manipulation.py +0 -0
  282. {xarray-2024.5.0 → xarray-2024.7.0}/setup.cfg +0 -0
  283. {xarray-2024.5.0 → xarray-2024.7.0}/setup.py +0 -0
  284. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/__init__.py +0 -0
  285. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/locks.py +0 -0
  286. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/lru_cache.py +0 -0
  287. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/memory.py +0 -0
  288. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/netcdf3.py +0 -0
  289. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/plugins.py +0 -0
  290. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/pydap_.py +0 -0
  291. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/scipy_.py +0 -0
  292. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/backends/store.py +0 -0
  293. {xarray-2024.5.0/xarray/core → xarray-2024.7.0/xarray/coding}/__init__.py +0 -0
  294. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/coding/frequencies.py +0 -0
  295. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/convert.py +0 -0
  296. {xarray-2024.5.0/xarray/namedarray → xarray-2024.7.0/xarray/core}/__init__.py +0 -0
  297. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/accessor_dt.py +0 -0
  298. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/accessor_str.py +0 -0
  299. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/arithmetic.py +0 -0
  300. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/combine.py +0 -0
  301. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/coordinates.py +0 -0
  302. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/dask_array_ops.py +0 -0
  303. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/datatree_mapping.py +0 -0
  304. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/datatree_ops.py +0 -0
  305. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/extensions.py +0 -0
  306. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/merge.py +0 -0
  307. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/nanops.py +0 -0
  308. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/ops.py +0 -0
  309. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/options.py +0 -0
  310. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/parallel.py +0 -0
  311. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/rolling.py +0 -0
  312. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/rolling_exp.py +0 -0
  313. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/core/weighted.py +0 -0
  314. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/datatree_/datatree/__init__.py +0 -0
  315. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/indexes/__init__.py +0 -0
  316. {xarray-2024.5.0/xarray/static → xarray-2024.7.0/xarray/namedarray}/__init__.py +0 -0
  317. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/_aggregations.py +0 -0
  318. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/dtypes.py +0 -0
  319. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/parallelcompat.py +0 -0
  320. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/pycompat.py +0 -0
  321. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/namedarray/utils.py +0 -0
  322. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/plot/__init__.py +0 -0
  323. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/plot/accessor.py +0 -0
  324. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/plot/dataarray_plot.py +0 -0
  325. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/py.typed +0 -0
  326. {xarray-2024.5.0/xarray/static/css → xarray-2024.7.0/xarray/static}/__init__.py +0 -0
  327. {xarray-2024.5.0/xarray/static/html → xarray-2024.7.0/xarray/static/css}/__init__.py +0 -0
  328. {xarray-2024.5.0/xarray/util → xarray-2024.7.0/xarray/static/html}/__init__.py +0 -0
  329. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/static/html/icons-svg-inline.html +0 -0
  330. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/testing/__init__.py +0 -0
  331. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/arrays.py +0 -0
  332. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/conftest.py +0 -0
  333. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/data/bears.nc +0 -0
  334. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/data/example.grib +0 -0
  335. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/data/example.ict +0 -0
  336. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/data/example.uamiv +0 -0
  337. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/data/example_1.nc +0 -0
  338. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/data/example_1.nc.gz +0 -0
  339. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_accessor_dt.py +0 -0
  340. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_accessor_str.py +0 -0
  341. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends_api.py +0 -0
  342. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends_common.py +0 -0
  343. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends_file_manager.py +0 -0
  344. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends_locks.py +0 -0
  345. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_backends_lru_cache.py +0 -0
  346. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_coarsen.py +0 -0
  347. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_coding.py +0 -0
  348. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_coordinates.py +0 -0
  349. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_cupy.py +0 -0
  350. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_datatree_mapping.py +0 -0
  351. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_deprecation_helpers.py +0 -0
  352. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_distributed.py +0 -0
  353. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_error_messages.py +0 -0
  354. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_extensions.py +0 -0
  355. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_formatting_html.py +0 -0
  356. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_hashable.py +0 -0
  357. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_indexing.py +0 -0
  358. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_interp.py +0 -0
  359. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_merge.py +0 -0
  360. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_nputils.py +0 -0
  361. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_options.py +0 -0
  362. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_parallelcompat.py +0 -0
  363. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_plugins.py +0 -0
  364. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_print_versions.py +0 -0
  365. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_sparse.py +0 -0
  366. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_treenode.py +0 -0
  367. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_tutorial.py +0 -0
  368. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_typed_ops.py +0 -0
  369. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_ufuncs.py +0 -0
  370. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tests/test_weighted.py +0 -0
  371. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/tutorial.py +0 -0
  372. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/util/deprecation_helpers.py +0 -0
  373. {xarray-2024.5.0 → xarray-2024.7.0}/xarray/util/print_versions.py +0 -0
  374. {xarray-2024.5.0 → xarray-2024.7.0}/xarray.egg-info/dependency_links.txt +0 -0
  375. {xarray-2024.5.0 → xarray-2024.7.0}/xarray.egg-info/entry_points.txt +0 -0
  376. {xarray-2024.5.0 → xarray-2024.7.0}/xarray.egg-info/requires.txt +0 -0
  377. {xarray-2024.5.0 → xarray-2024.7.0}/xarray.egg-info/top_level.txt +0 -0
@@ -0,0 +1,5 @@
1
+ changelog:
2
+ exclude:
3
+ authors:
4
+ - dependabot
5
+ - pre-commit-ci
@@ -6,18 +6,15 @@ 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/**'
15
9
  workflow_dispatch: # allows you to trigger manually
16
10
 
17
11
  concurrency:
18
12
  group: ${{ github.workflow }}-${{ github.ref }}
19
13
  cancel-in-progress: true
20
14
 
15
+ env:
16
+ FORCE_COLOR: 3
17
+
21
18
  jobs:
22
19
  detect-ci-trigger:
23
20
  name: detect ci trigger
@@ -133,7 +130,7 @@ jobs:
133
130
  python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
134
131
 
135
132
  - name: Upload mypy coverage to Codecov
136
- uses: codecov/codecov-action@v4.3.1
133
+ uses: codecov/codecov-action@v4.5.0
137
134
  with:
138
135
  file: mypy_report/cobertura.xml
139
136
  flags: mypy
@@ -187,7 +184,7 @@ jobs:
187
184
  python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
188
185
 
189
186
  - name: Upload mypy coverage to Codecov
190
- uses: codecov/codecov-action@v4.3.1
187
+ uses: codecov/codecov-action@v4.5.0
191
188
  with:
192
189
  file: mypy_report/cobertura.xml
193
190
  flags: mypy39
@@ -248,7 +245,7 @@ jobs:
248
245
  python -m pyright xarray/
249
246
 
250
247
  - name: Upload pyright coverage to Codecov
251
- uses: codecov/codecov-action@v4.3.1
248
+ uses: codecov/codecov-action@v4.5.0
252
249
  with:
253
250
  file: pyright_report/cobertura.xml
254
251
  flags: pyright
@@ -307,7 +304,7 @@ jobs:
307
304
  python -m pyright xarray/
308
305
 
309
306
  - name: Upload pyright coverage to Codecov
310
- uses: codecov/codecov-action@v4.3.1
307
+ uses: codecov/codecov-action@v4.5.0
311
308
  with:
312
309
  file: pyright_report/cobertura.xml
313
310
  flags: pyright39
@@ -6,18 +6,15 @@ 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/**'
15
9
  workflow_dispatch: # allows you to trigger manually
16
10
 
17
11
  concurrency:
18
12
  group: ${{ github.workflow }}-${{ github.ref }}
19
13
  cancel-in-progress: true
20
14
 
15
+ env:
16
+ FORCE_COLOR: 3
17
+
21
18
  jobs:
22
19
  detect-ci-trigger:
23
20
  name: detect ci trigger
@@ -162,7 +159,7 @@ jobs:
162
159
  path: pytest.xml
163
160
 
164
161
  - name: Upload code coverage to Codecov
165
- uses: codecov/codecov-action@v4.3.1
162
+ uses: codecov/codecov-action@v4.5.0
166
163
  with:
167
164
  file: ./coverage.xml
168
165
  flags: unittests
@@ -11,6 +11,9 @@ on:
11
11
  - cron: "0 0 * * *" # Daily “At 00:00” UTC
12
12
  workflow_dispatch: # allows you to trigger manually
13
13
 
14
+ env:
15
+ FORCE_COLOR: 3
16
+
14
17
  jobs:
15
18
  detect-ci-trigger:
16
19
  name: detect ci trigger
@@ -36,9 +39,9 @@ jobs:
36
39
  if: |
37
40
  always()
38
41
  && (
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
+ needs.detect-ci-trigger.outputs.triggered == 'false'
43
+ && ( (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
44
+ || contains( github.event.pull_request.labels.*.name, 'run-slow-hypothesis'))
42
45
  )
43
46
  defaults:
44
47
  run:
@@ -88,7 +88,7 @@ jobs:
88
88
  path: dist
89
89
  - name: Publish package to TestPyPI
90
90
  if: github.event_name == 'push'
91
- uses: pypa/gh-action-pypi-publish@v1.8.14
91
+ uses: pypa/gh-action-pypi-publish@v1.9.0
92
92
  with:
93
93
  repository_url: https://test.pypi.org/legacy/
94
94
  verbose: true
@@ -111,6 +111,6 @@ jobs:
111
111
  name: releases
112
112
  path: dist
113
113
  - name: Publish package to PyPI
114
- uses: pypa/gh-action-pypi-publish@v1.8.14
114
+ uses: pypa/gh-action-pypi-publish@v1.9.0
115
115
  with:
116
116
  verbose: true
@@ -15,6 +15,9 @@ concurrency:
15
15
  group: ${{ github.workflow }}-${{ github.ref }}
16
16
  cancel-in-progress: true
17
17
 
18
+ env:
19
+ FORCE_COLOR: 3
20
+
18
21
  jobs:
19
22
  detect-ci-trigger:
20
23
  name: detect upstream-dev ci trigger
@@ -143,7 +146,7 @@ jobs:
143
146
  run: |
144
147
  python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
145
148
  - name: Upload mypy coverage to Codecov
146
- uses: codecov/codecov-action@v4.3.1
149
+ uses: codecov/codecov-action@v4.5.0
147
150
  with:
148
151
  file: mypy_report/cobertura.xml
149
152
  flags: mypy
@@ -13,7 +13,7 @@ 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.4.3'
16
+ rev: 'v0.5.0'
17
17
  hooks:
18
18
  - id: ruff
19
19
  args: ["--fix", "--show-fixes"]
@@ -30,7 +30,7 @@ repos:
30
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.10.0
33
+ rev: v1.10.1
34
34
  hooks:
35
35
  - id: mypy
36
36
  # Copied from setup.cfg
@@ -11,6 +11,7 @@ authors:
11
11
  orcid: "https://orcid.org/0000-0001-7479-8439"
12
12
  - family-names: "Magin"
13
13
  given-names: "Justus"
14
+ orcid: "https://orcid.org/0000-0002-4254-8002"
14
15
  - family-names: "Cherian"
15
16
  given-names: "Deepak"
16
17
  orcid: "https://orcid.org/0000-0002-6861-8734"
@@ -75,6 +76,19 @@ authors:
75
76
  - family-names: "Wolfram"
76
77
  given-names: "Phillip J."
77
78
  orcid: "https://orcid.org/0000-0001-5971-4241"
79
+ - family-names: "Henderson"
80
+ given-names: "Scott"
81
+ orcid: "https://orcid.org/0000-0003-0624-4965"
82
+ - family-names: "Awowale"
83
+ given-names: "Eniola Olufunke"
84
+ - family-names: "Scheick"
85
+ given-names: "Jessica"
86
+ orcid: "https://orcid.org/0000-0002-3421-4459"
87
+ - family-names: "Savoie"
88
+ given-names: "Matthew"
89
+ orcid: "https://orcid.org/0000-0002-8881-2550"
90
+ - family-names: "Littlejohns"
91
+ given-names: "Owen"
78
92
  title: "xarray"
79
93
  abstract: "N-D labeled arrays and datasets in Python."
80
94
  license: Apache-2.0
@@ -23,14 +23,13 @@ upstream https://github.com/pydata/xarray (push)
23
23
  ```sh
24
24
  git fetch upstream --tags
25
25
  ```
26
- This will return a list of all the contributors since the last release:
26
+ Then run
27
27
  ```sh
28
- git log "$(git tag --sort=v:refname | tail -1).." --format=%aN | sort -u | perl -pe 's/\n/$1, /'
29
- ```
30
- This will return the total number of contributors:
31
- ```sh
32
- git log "$(git tag --sort=v:refname | tail -1).." --format=%aN | sort -u | wc -l
28
+ python ci/release_contributors.py
33
29
  ```
30
+ (needs `gitpython` and `toolz` / `cytoolz`)
31
+
32
+ and copy the output.
34
33
  3. Write a release summary: ~50 words describing the high level features. This
35
34
  will be used in the release emails, tweets, GitHub release notes, etc.
36
35
  4. Look over whats-new.rst and the docs. Make sure "What's New" is complete
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xarray
3
- Version: 2024.5.0
3
+ Version: 2024.7.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
@@ -70,7 +70,7 @@ Requires-Dist: nc-time-axis; extra == "viz"
70
70
  [![Available on pypi](https://img.shields.io/pypi/v/xarray.svg)](https://pypi.python.org/pypi/xarray/)
71
71
  [![Formatted with black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
72
72
  [![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
73
- [![Mirror on zendoo](https://zenodo.org/badge/DOI/10.5281/zenodo.598201.svg)](https://doi.org/10.5281/zenodo.598201)
73
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11183201.svg)](https://doi.org/10.5281/zenodo.11183201)
74
74
  [![Examples on binder](https://img.shields.io/badge/launch-binder-579ACA.svg?logo=data:image/png;base64,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)](https://mybinder.org/v2/gh/pydata/xarray/main?urlpath=lab/tree/doc/examples/weather-data.ipynb)
75
75
  [![Twitter](https://img.shields.io/twitter/follow/xarray_dev?style=social)](https://twitter.com/xarray_dev)
76
76
 
@@ -109,15 +109,15 @@ provide a powerful and concise interface. For example:
109
109
 
110
110
  - Apply operations over dimensions by name: `x.sum('time')`.
111
111
  - Select values by label instead of integer location:
112
- `x.loc['2014-01-01']` or `x.sel(time='2014-01-01')`.
112
+ `x.loc['2014-01-01']` or `x.sel(time='2014-01-01')`.
113
113
  - Mathematical operations (e.g., `x - y`) vectorize across multiple
114
- dimensions (array broadcasting) based on dimension names, not shape.
114
+ dimensions (array broadcasting) based on dimension names, not shape.
115
115
  - Flexible split-apply-combine operations with groupby:
116
- `x.groupby('time.dayofyear').mean()`.
116
+ `x.groupby('time.dayofyear').mean()`.
117
117
  - Database like alignment based on coordinate labels that smoothly
118
- handles missing values: `x, y = xr.align(x, y, join='outer')`.
118
+ handles missing values: `x, y = xr.align(x, y, join='outer')`.
119
119
  - Keep track of arbitrary metadata in the form of a Python dictionary:
120
- `x.attrs`.
120
+ `x.attrs`.
121
121
 
122
122
  ## Documentation
123
123
 
@@ -136,12 +136,12 @@ page](https://docs.xarray.dev/en/stable/contributing.html).
136
136
  ## Get in touch
137
137
 
138
138
  - Ask usage questions ("How do I?") on
139
- [GitHub Discussions](https://github.com/pydata/xarray/discussions).
139
+ [GitHub Discussions](https://github.com/pydata/xarray/discussions).
140
140
  - Report bugs, suggest features or view the source code [on
141
- GitHub](https://github.com/pydata/xarray).
141
+ GitHub](https://github.com/pydata/xarray).
142
142
  - For less well defined questions or ideas, or to announce other
143
- projects of interest to xarray users, use the [mailing
144
- list](https://groups.google.com/forum/#!forum/xarray).
143
+ projects of interest to xarray users, use the [mailing
144
+ list](https://groups.google.com/forum/#!forum/xarray).
145
145
 
146
146
  ## NumFOCUS
147
147
 
@@ -177,7 +177,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you
177
177
  may not use this file except in compliance with the License. You may
178
178
  obtain a copy of the License at
179
179
 
180
- <https://www.apache.org/licenses/LICENSE-2.0>
180
+ <https://www.apache.org/licenses/LICENSE-2.0>
181
181
 
182
182
  Unless required by applicable law or agreed to in writing, software
183
183
  distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  [![Available on pypi](https://img.shields.io/pypi/v/xarray.svg)](https://pypi.python.org/pypi/xarray/)
8
8
  [![Formatted with black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
9
9
  [![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
10
- [![Mirror on zendoo](https://zenodo.org/badge/DOI/10.5281/zenodo.598201.svg)](https://doi.org/10.5281/zenodo.598201)
10
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11183201.svg)](https://doi.org/10.5281/zenodo.11183201)
11
11
  [![Examples on binder](https://img.shields.io/badge/launch-binder-579ACA.svg?logo=data:image/png;base64,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)](https://mybinder.org/v2/gh/pydata/xarray/main?urlpath=lab/tree/doc/examples/weather-data.ipynb)
12
12
  [![Twitter](https://img.shields.io/twitter/follow/xarray_dev?style=social)](https://twitter.com/xarray_dev)
13
13
 
@@ -46,15 +46,15 @@ provide a powerful and concise interface. For example:
46
46
 
47
47
  - Apply operations over dimensions by name: `x.sum('time')`.
48
48
  - Select values by label instead of integer location:
49
- `x.loc['2014-01-01']` or `x.sel(time='2014-01-01')`.
49
+ `x.loc['2014-01-01']` or `x.sel(time='2014-01-01')`.
50
50
  - Mathematical operations (e.g., `x - y`) vectorize across multiple
51
- dimensions (array broadcasting) based on dimension names, not shape.
51
+ dimensions (array broadcasting) based on dimension names, not shape.
52
52
  - Flexible split-apply-combine operations with groupby:
53
- `x.groupby('time.dayofyear').mean()`.
53
+ `x.groupby('time.dayofyear').mean()`.
54
54
  - Database like alignment based on coordinate labels that smoothly
55
- handles missing values: `x, y = xr.align(x, y, join='outer')`.
55
+ handles missing values: `x, y = xr.align(x, y, join='outer')`.
56
56
  - Keep track of arbitrary metadata in the form of a Python dictionary:
57
- `x.attrs`.
57
+ `x.attrs`.
58
58
 
59
59
  ## Documentation
60
60
 
@@ -73,12 +73,12 @@ page](https://docs.xarray.dev/en/stable/contributing.html).
73
73
  ## Get in touch
74
74
 
75
75
  - Ask usage questions ("How do I?") on
76
- [GitHub Discussions](https://github.com/pydata/xarray/discussions).
76
+ [GitHub Discussions](https://github.com/pydata/xarray/discussions).
77
77
  - Report bugs, suggest features or view the source code [on
78
- GitHub](https://github.com/pydata/xarray).
78
+ GitHub](https://github.com/pydata/xarray).
79
79
  - For less well defined questions or ideas, or to announce other
80
- projects of interest to xarray users, use the [mailing
81
- list](https://groups.google.com/forum/#!forum/xarray).
80
+ projects of interest to xarray users, use the [mailing
81
+ list](https://groups.google.com/forum/#!forum/xarray).
82
82
 
83
83
  ## NumFOCUS
84
84
 
@@ -114,7 +114,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you
114
114
  may not use this file except in compliance with the License. You may
115
115
  obtain a copy of the License at
116
116
 
117
- <https://www.apache.org/licenses/LICENSE-2.0>
117
+ <https://www.apache.org/licenses/LICENSE-2.0>
118
118
 
119
119
  Unless required by applicable law or agreed to in writing, software
120
120
  distributed under the License is distributed on an "AS IS" BASIS,
@@ -0,0 +1,18 @@
1
+ import numpy as np
2
+
3
+ import xarray as xr
4
+
5
+ from . import parameterized
6
+
7
+
8
+ @parameterized(["calendar"], [("standard", "noleap")])
9
+ class EncodeCFDatetime:
10
+ def setup(self, calendar):
11
+ self.units = "days since 2000-01-01"
12
+ self.dtype = np.dtype("int64")
13
+ self.times = xr.date_range(
14
+ "2000", freq="D", periods=10000, calendar=calendar
15
+ ).values
16
+
17
+ def time_encode_cf_datetime(self, calendar):
18
+ xr.coding.times.encode_cf_datetime(self.times, self.units, calendar, self.dtype)
@@ -66,7 +66,7 @@ class DataArrayMissingBottleneck:
66
66
  ),
67
67
  )
68
68
  def time_bfill(self, shape, chunks, limit):
69
- actual = self.da.ffill(dim="time", limit=limit)
69
+ actual = self.da.bfill(dim="time", limit=limit)
70
70
 
71
71
  if chunks is not None:
72
72
  actual = actual.compute()
@@ -7,6 +7,8 @@ import numpy as np
7
7
  import pandas as pd
8
8
 
9
9
  import xarray as xr
10
+ from xarray.backends.api import open_datatree
11
+ from xarray.core.datatree import DataTree
10
12
 
11
13
  from . import _skip_slow, parameterized, randint, randn, requires_dask
12
14
 
@@ -16,7 +18,6 @@ try:
16
18
  except ImportError:
17
19
  pass
18
20
 
19
-
20
21
  os.environ["HDF5_USE_FILE_LOCKING"] = "FALSE"
21
22
 
22
23
  _ENGINES = tuple(xr.backends.list_engines().keys() - {"store"})
@@ -469,6 +470,116 @@ def create_delayed_write():
469
470
  return ds.to_netcdf("file.nc", engine="netcdf4", compute=False)
470
471
 
471
472
 
473
+ class IONestedDataTree:
474
+ """
475
+ A few examples that benchmark reading/writing a heavily nested netCDF datatree with
476
+ xarray
477
+ """
478
+
479
+ timeout = 300.0
480
+ repeat = 1
481
+ number = 5
482
+
483
+ def make_datatree(self, nchildren=10):
484
+ # multiple Dataset
485
+ self.ds = xr.Dataset()
486
+ self.nt = 1000
487
+ self.nx = 90
488
+ self.ny = 45
489
+ self.nchildren = nchildren
490
+
491
+ self.block_chunks = {
492
+ "time": self.nt / 4,
493
+ "lon": self.nx / 3,
494
+ "lat": self.ny / 3,
495
+ }
496
+
497
+ self.time_chunks = {"time": int(self.nt / 36)}
498
+
499
+ times = pd.date_range("1970-01-01", periods=self.nt, freq="D")
500
+ lons = xr.DataArray(
501
+ np.linspace(0, 360, self.nx),
502
+ dims=("lon",),
503
+ attrs={"units": "degrees east", "long_name": "longitude"},
504
+ )
505
+ lats = xr.DataArray(
506
+ np.linspace(-90, 90, self.ny),
507
+ dims=("lat",),
508
+ attrs={"units": "degrees north", "long_name": "latitude"},
509
+ )
510
+ self.ds["foo"] = xr.DataArray(
511
+ randn((self.nt, self.nx, self.ny), frac_nan=0.2),
512
+ coords={"lon": lons, "lat": lats, "time": times},
513
+ dims=("time", "lon", "lat"),
514
+ name="foo",
515
+ attrs={"units": "foo units", "description": "a description"},
516
+ )
517
+ self.ds["bar"] = xr.DataArray(
518
+ randn((self.nt, self.nx, self.ny), frac_nan=0.2),
519
+ coords={"lon": lons, "lat": lats, "time": times},
520
+ dims=("time", "lon", "lat"),
521
+ name="bar",
522
+ attrs={"units": "bar units", "description": "a description"},
523
+ )
524
+ self.ds["baz"] = xr.DataArray(
525
+ randn((self.nx, self.ny), frac_nan=0.2).astype(np.float32),
526
+ coords={"lon": lons, "lat": lats},
527
+ dims=("lon", "lat"),
528
+ name="baz",
529
+ attrs={"units": "baz units", "description": "a description"},
530
+ )
531
+
532
+ self.ds.attrs = {"history": "created for xarray benchmarking"}
533
+
534
+ self.oinds = {
535
+ "time": randint(0, self.nt, 120),
536
+ "lon": randint(0, self.nx, 20),
537
+ "lat": randint(0, self.ny, 10),
538
+ }
539
+ self.vinds = {
540
+ "time": xr.DataArray(randint(0, self.nt, 120), dims="x"),
541
+ "lon": xr.DataArray(randint(0, self.nx, 120), dims="x"),
542
+ "lat": slice(3, 20),
543
+ }
544
+ root = {f"group_{group}": self.ds for group in range(self.nchildren)}
545
+ nested_tree1 = {
546
+ f"group_{group}/subgroup_1": xr.Dataset() for group in range(self.nchildren)
547
+ }
548
+ nested_tree2 = {
549
+ f"group_{group}/subgroup_2": xr.DataArray(np.arange(1, 10)).to_dataset(
550
+ name="a"
551
+ )
552
+ for group in range(self.nchildren)
553
+ }
554
+ nested_tree3 = {
555
+ f"group_{group}/subgroup_2/sub-subgroup_1": self.ds
556
+ for group in range(self.nchildren)
557
+ }
558
+ dtree = root | nested_tree1 | nested_tree2 | nested_tree3
559
+ self.dtree = DataTree.from_dict(dtree)
560
+
561
+
562
+ class IOReadDataTreeNetCDF4(IONestedDataTree):
563
+ def setup(self):
564
+ # TODO: Lazily skipped in CI as it is very demanding and slow.
565
+ # Improve times and remove errors.
566
+ _skip_slow()
567
+
568
+ requires_dask()
569
+
570
+ self.make_datatree()
571
+ self.format = "NETCDF4"
572
+ self.filepath = "datatree.nc4.nc"
573
+ dtree = self.dtree
574
+ dtree.to_netcdf(filepath=self.filepath)
575
+
576
+ def time_load_datatree_netcdf4(self):
577
+ open_datatree(self.filepath, engine="netcdf4").load()
578
+
579
+ def time_open_datatree_netcdf4(self):
580
+ open_datatree(self.filepath, engine="netcdf4")
581
+
582
+
472
583
  class IOWriteNetCDFDask:
473
584
  timeout = 60
474
585
  repeat = 1
@@ -1,13 +1,21 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
+ if which micromamba >/dev/null; then
4
+ conda=micromamba
5
+ elif which mamba >/dev/null; then
6
+ conda=mamba
7
+ else
8
+ conda=conda
9
+ fi
10
+
3
11
  # temporarily (?) remove numbagg and numba
4
- micromamba remove -y numba numbagg sparse
12
+ $conda remove -y numba numbagg sparse
5
13
  # temporarily remove numexpr
6
- micromamba remove -y numexpr
14
+ $conda remove -y numexpr
7
15
  # temporarily remove backends
8
- micromamba remove -y cf_units hdf5 h5py netcdf4 pydap
16
+ $conda remove -y pydap
9
17
  # forcibly remove packages to avoid artifacts
10
- micromamba remove -y --force \
18
+ $conda remove -y --force \
11
19
  numpy \
12
20
  scipy \
13
21
  pandas \
@@ -19,6 +27,7 @@ micromamba remove -y --force \
19
27
  bottleneck \
20
28
  flox
21
29
  # pint
30
+
22
31
  # to limit the runtime of Upstream CI
23
32
  python -m pip install \
24
33
  -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
@@ -28,8 +37,7 @@ python -m pip install \
28
37
  numpy \
29
38
  scipy \
30
39
  matplotlib \
31
- pandas \
32
- h5py
40
+ pandas
33
41
  # for some reason pandas depends on pyarrow already.
34
42
  # Remove once a `pyarrow` version compiled with `numpy>=2.0` is on `conda-forge`
35
43
  python -m pip install \
@@ -39,13 +47,15 @@ python -m pip install \
39
47
  --pre \
40
48
  --upgrade \
41
49
  pyarrow
50
+ # manually install `pint` to pull in new dependencies
51
+ python -m pip install --upgrade pint
42
52
  python -m pip install \
43
53
  --no-deps \
44
54
  --upgrade \
45
55
  git+https://github.com/dask/dask \
46
56
  git+https://github.com/dask/dask-expr \
47
57
  git+https://github.com/dask/distributed \
48
- git+https://github.com/zarr-developers/zarr \
58
+ git+https://github.com/zarr-developers/zarr.git@main \
49
59
  git+https://github.com/Unidata/cftime \
50
60
  git+https://github.com/pypa/packaging \
51
61
  git+https://github.com/hgrecco/pint \
@@ -23,12 +23,12 @@ IGNORE_DEPS = {
23
23
  "isort",
24
24
  "mypy",
25
25
  "pip",
26
- "setuptools",
27
26
  "pytest",
28
27
  "pytest-cov",
29
28
  "pytest-env",
30
- "pytest-xdist",
31
29
  "pytest-timeout",
30
+ "pytest-xdist",
31
+ "setuptools",
32
32
  }
33
33
 
34
34
  POLICY_MONTHS = {"python": 30, "numpy": 18}
@@ -162,11 +162,11 @@ def process_pkg(
162
162
  status = "<"
163
163
  elif (req_major, req_minor) > (policy_major, policy_minor):
164
164
  status = "> (!)"
165
- delta = relativedelta(datetime.now(), policy_published_actual).normalized()
165
+ delta = relativedelta(datetime.now(), req_published).normalized()
166
166
  n_months = delta.years * 12 + delta.months
167
167
  warning(
168
- f"Package is too new: {pkg}={policy_major}.{policy_minor} was "
169
- f"published on {versions[policy_major, policy_minor]:%Y-%m-%d} "
168
+ f"Package is too new: {pkg}={req_major}.{req_minor} was "
169
+ f"published on {req_published:%Y-%m-%d} "
170
170
  f"which was {n_months} months ago (policy is {policy_months} months)"
171
171
  )
172
172
  else:
@@ -0,0 +1,49 @@
1
+ import re
2
+ import textwrap
3
+
4
+ import git
5
+ from tlz.itertoolz import last, unique
6
+
7
+ co_author_re = re.compile(r"Co-authored-by: (?P<name>[^<]+?) <(?P<email>.+)>")
8
+
9
+
10
+ def main():
11
+ repo = git.Repo(".")
12
+
13
+ most_recent_release = last(repo.tags)
14
+
15
+ # extract information from commits
16
+ contributors = {}
17
+ for commit in repo.iter_commits(f"{most_recent_release.name}.."):
18
+ matches = co_author_re.findall(commit.message)
19
+ if matches:
20
+ contributors.update({email: name for name, email in matches})
21
+ contributors[commit.author.email] = commit.author.name
22
+
23
+ # deduplicate and ignore
24
+ # TODO: extract ignores from .github/release.yml
25
+ ignored = ["dependabot", "pre-commit-ci"]
26
+ unique_contributors = unique(
27
+ contributor
28
+ for contributor in contributors.values()
29
+ if contributor.removesuffix("[bot]") not in ignored
30
+ )
31
+
32
+ sorted_ = sorted(unique_contributors)
33
+ if len(sorted_) > 1:
34
+ names = f"{', '.join(sorted_[:-1])} and {sorted_[-1]}"
35
+ else:
36
+ names = "".join(sorted_)
37
+
38
+ statement = textwrap.dedent(
39
+ f"""\
40
+ Thanks to the {len(sorted_)} contributors to this release:
41
+ {names}
42
+ """.rstrip()
43
+ )
44
+
45
+ print(statement)
46
+
47
+
48
+ if __name__ == "__main__":
49
+ main()
@@ -27,7 +27,7 @@ dependencies:
27
27
  - pandas
28
28
  - pint>=0.22
29
29
  - pip
30
- - pydap
30
+ # - pydap
31
31
  - pytest
32
32
  - pytest-cov
33
33
  - pytest-env