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