xarray 2024.1.0__tar.gz → 2024.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. {xarray-2024.1.0 → xarray-2024.1.1}/.github/dependabot.yml +4 -0
  2. {xarray-2024.1.0/xarray.egg-info → xarray-2024.1.1}/PKG-INFO +1 -1
  3. {xarray-2024.1.0 → xarray-2024.1.1}/ci/install-upstream-wheels.sh +24 -10
  4. {xarray-2024.1.0 → xarray-2024.1.1}/ci/min_deps_check.py +2 -0
  5. {xarray-2024.1.0 → xarray-2024.1.1}/ci/requirements/doc.yml +1 -1
  6. {xarray-2024.1.0 → xarray-2024.1.1}/ci/requirements/environment.yml +2 -1
  7. {xarray-2024.1.0 → xarray-2024.1.1}/doc/getting-started-guide/installing.rst +3 -3
  8. {xarray-2024.1.0 → xarray-2024.1.1}/doc/internals/how-to-add-new-backend.rst +1 -1
  9. {xarray-2024.1.0 → xarray-2024.1.1}/doc/whats-new.rst +39 -3
  10. {xarray-2024.1.0 → xarray-2024.1.1}/pyproject.toml +5 -0
  11. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/api.py +1 -1
  12. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/coding/cftime_offsets.py +22 -21
  13. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/coding/frequencies.py +1 -1
  14. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/_aggregations.py +132 -132
  15. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/accessor_dt.py +1 -1
  16. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/dataarray.py +1 -1
  17. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/duck_array_ops.py +13 -3
  18. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/nputils.py +22 -6
  19. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/utils.py +34 -9
  20. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/weighted.py +20 -20
  21. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/conftest.py +14 -0
  22. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_backends.py +4 -0
  23. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_cftime_offsets.py +10 -5
  24. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_cftimeindex.py +1 -1
  25. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_dask.py +11 -3
  26. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_dataset.py +5 -1
  27. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_duck_array_ops.py +30 -8
  28. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_rolling.py +0 -13
  29. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_utils.py +3 -3
  30. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_variable.py +2 -1
  31. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/util/generate_aggregations.py +4 -4
  32. {xarray-2024.1.0 → xarray-2024.1.1/xarray.egg-info}/PKG-INFO +1 -1
  33. {xarray-2024.1.0 → xarray-2024.1.1}/.binder/environment.yml +0 -0
  34. {xarray-2024.1.0 → xarray-2024.1.1}/.codecov.yml +0 -0
  35. {xarray-2024.1.0 → xarray-2024.1.1}/.git-blame-ignore-revs +0 -0
  36. {xarray-2024.1.0 → xarray-2024.1.1}/.git_archival.txt +0 -0
  37. {xarray-2024.1.0 → xarray-2024.1.1}/.gitattributes +0 -0
  38. {xarray-2024.1.0 → xarray-2024.1.1}/.github/FUNDING.yml +0 -0
  39. {xarray-2024.1.0 → xarray-2024.1.1}/.github/ISSUE_TEMPLATE/bugreport.yml +0 -0
  40. {xarray-2024.1.0 → xarray-2024.1.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  41. {xarray-2024.1.0 → xarray-2024.1.1}/.github/ISSUE_TEMPLATE/misc.yml +0 -0
  42. {xarray-2024.1.0 → xarray-2024.1.1}/.github/ISSUE_TEMPLATE/newfeature.yml +0 -0
  43. {xarray-2024.1.0 → xarray-2024.1.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  44. {xarray-2024.1.0 → xarray-2024.1.1}/.github/config.yml +0 -0
  45. {xarray-2024.1.0 → xarray-2024.1.1}/.github/stale.yml +0 -0
  46. {xarray-2024.1.0 → xarray-2024.1.1}/.github/workflows/benchmarks-last-release.yml +0 -0
  47. {xarray-2024.1.0 → xarray-2024.1.1}/.github/workflows/benchmarks.yml +0 -0
  48. {xarray-2024.1.0 → xarray-2024.1.1}/.github/workflows/ci-additional.yaml +0 -0
  49. {xarray-2024.1.0 → xarray-2024.1.1}/.github/workflows/ci.yaml +0 -0
  50. {xarray-2024.1.0 → xarray-2024.1.1}/.github/workflows/configure-testpypi-version.py +0 -0
  51. {xarray-2024.1.0 → xarray-2024.1.1}/.github/workflows/nightly-wheels.yml +0 -0
  52. {xarray-2024.1.0 → xarray-2024.1.1}/.github/workflows/publish-test-results.yaml +0 -0
  53. {xarray-2024.1.0 → xarray-2024.1.1}/.github/workflows/pypi-release.yaml +0 -0
  54. {xarray-2024.1.0 → xarray-2024.1.1}/.github/workflows/upstream-dev-ci.yaml +0 -0
  55. {xarray-2024.1.0 → xarray-2024.1.1}/.gitignore +0 -0
  56. {xarray-2024.1.0 → xarray-2024.1.1}/.pep8speaks.yml +0 -0
  57. {xarray-2024.1.0 → xarray-2024.1.1}/.pre-commit-config.yaml +0 -0
  58. {xarray-2024.1.0 → xarray-2024.1.1}/.readthedocs.yaml +0 -0
  59. {xarray-2024.1.0 → xarray-2024.1.1}/CITATION.cff +0 -0
  60. {xarray-2024.1.0 → xarray-2024.1.1}/CODE_OF_CONDUCT.md +0 -0
  61. {xarray-2024.1.0 → xarray-2024.1.1}/CONTRIBUTING.md +0 -0
  62. {xarray-2024.1.0 → xarray-2024.1.1}/CORE_TEAM_GUIDE.md +0 -0
  63. {xarray-2024.1.0 → xarray-2024.1.1}/HOW_TO_RELEASE.md +0 -0
  64. {xarray-2024.1.0 → xarray-2024.1.1}/LICENSE +0 -0
  65. {xarray-2024.1.0 → xarray-2024.1.1}/README.md +0 -0
  66. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/asv.conf.json +0 -0
  67. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/README_CI.md +0 -0
  68. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/__init__.py +0 -0
  69. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/accessors.py +0 -0
  70. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/alignment.py +0 -0
  71. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/combine.py +0 -0
  72. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/dataarray_missing.py +0 -0
  73. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/dataset.py +0 -0
  74. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/dataset_io.py +0 -0
  75. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/groupby.py +0 -0
  76. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/import.py +0 -0
  77. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/indexing.py +0 -0
  78. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/interp.py +0 -0
  79. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/merge.py +0 -0
  80. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/pandas.py +0 -0
  81. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/polyfit.py +0 -0
  82. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/reindexing.py +0 -0
  83. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/renaming.py +0 -0
  84. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/repr.py +0 -0
  85. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/rolling.py +0 -0
  86. {xarray-2024.1.0 → xarray-2024.1.1}/asv_bench/benchmarks/unstacking.py +0 -0
  87. {xarray-2024.1.0 → xarray-2024.1.1}/ci/requirements/all-but-dask.yml +0 -0
  88. {xarray-2024.1.0 → xarray-2024.1.1}/ci/requirements/bare-minimum.yml +0 -0
  89. {xarray-2024.1.0 → xarray-2024.1.1}/ci/requirements/environment-3.12.yml +0 -0
  90. {xarray-2024.1.0 → xarray-2024.1.1}/ci/requirements/environment-windows-3.12.yml +0 -0
  91. {xarray-2024.1.0 → xarray-2024.1.1}/ci/requirements/environment-windows.yml +0 -0
  92. {xarray-2024.1.0 → xarray-2024.1.1}/ci/requirements/min-all-deps.yml +0 -0
  93. {xarray-2024.1.0 → xarray-2024.1.1}/conftest.py +0 -0
  94. {xarray-2024.1.0 → xarray-2024.1.1}/design_notes/flexible_indexes_notes.md +0 -0
  95. {xarray-2024.1.0 → xarray-2024.1.1}/design_notes/named_array_design_doc.md +0 -0
  96. {xarray-2024.1.0 → xarray-2024.1.1}/doc/Makefile +0 -0
  97. {xarray-2024.1.0 → xarray-2024.1.1}/doc/README.rst +0 -0
  98. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/.gitignore +0 -0
  99. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/advanced_selection_interpolation.svg +0 -0
  100. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/ci.png +0 -0
  101. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/dask_array.png +0 -0
  102. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/dataset-diagram.png +0 -0
  103. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/index_api.svg +0 -0
  104. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/index_contribute.svg +0 -0
  105. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/index_getting_started.svg +0 -0
  106. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/index_user_guide.svg +0 -0
  107. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/logos/Xarray_Icon_Final.png +0 -0
  108. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/logos/Xarray_Icon_Final.svg +0 -0
  109. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.png +0 -0
  110. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.svg +0 -0
  111. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/logos/Xarray_Logo_RGB_Final.png +0 -0
  112. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/logos/Xarray_Logo_RGB_Final.svg +0 -0
  113. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/numfocus_logo.png +0 -0
  114. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/opendap-prism-tmax.png +0 -0
  115. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/style.css +0 -0
  116. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/thumbnails/ERA5-GRIB-example.png +0 -0
  117. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/thumbnails/ROMS_ocean_model.png +0 -0
  118. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/thumbnails/area_weighted_temperature.png +0 -0
  119. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/thumbnails/monthly-means.png +0 -0
  120. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/thumbnails/multidimensional-coords.png +0 -0
  121. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/thumbnails/toy-weather-data.png +0 -0
  122. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/thumbnails/visualization_gallery.png +0 -0
  123. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_static/view-docs.png +0 -0
  124. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_templates/autosummary/accessor.rst +0 -0
  125. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_templates/autosummary/accessor_attribute.rst +0 -0
  126. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_templates/autosummary/accessor_callable.rst +0 -0
  127. {xarray-2024.1.0 → xarray-2024.1.1}/doc/_templates/autosummary/accessor_method.rst +0 -0
  128. {xarray-2024.1.0 → xarray-2024.1.1}/doc/api-hidden.rst +0 -0
  129. {xarray-2024.1.0 → xarray-2024.1.1}/doc/api.rst +0 -0
  130. {xarray-2024.1.0 → xarray-2024.1.1}/doc/conf.py +0 -0
  131. {xarray-2024.1.0 → xarray-2024.1.1}/doc/contributing.rst +0 -0
  132. {xarray-2024.1.0 → xarray-2024.1.1}/doc/developers-meeting.rst +0 -0
  133. {xarray-2024.1.0 → xarray-2024.1.1}/doc/ecosystem.rst +0 -0
  134. {xarray-2024.1.0 → xarray-2024.1.1}/doc/examples/ERA5-GRIB-example.ipynb +0 -0
  135. {xarray-2024.1.0 → xarray-2024.1.1}/doc/examples/ROMS_ocean_model.ipynb +0 -0
  136. {xarray-2024.1.0 → xarray-2024.1.1}/doc/examples/_code/accessor_example.py +0 -0
  137. {xarray-2024.1.0 → xarray-2024.1.1}/doc/examples/apply_ufunc_vectorize_1d.ipynb +0 -0
  138. {xarray-2024.1.0 → xarray-2024.1.1}/doc/examples/area_weighted_temperature.ipynb +0 -0
  139. {xarray-2024.1.0 → xarray-2024.1.1}/doc/examples/blank_template.ipynb +0 -0
  140. {xarray-2024.1.0 → xarray-2024.1.1}/doc/examples/monthly-means.ipynb +0 -0
  141. {xarray-2024.1.0 → xarray-2024.1.1}/doc/examples/monthly_means_output.png +0 -0
  142. {xarray-2024.1.0 → xarray-2024.1.1}/doc/examples/multidimensional-coords.ipynb +0 -0
  143. {xarray-2024.1.0 → xarray-2024.1.1}/doc/examples/visualization_gallery.ipynb +0 -0
  144. {xarray-2024.1.0 → xarray-2024.1.1}/doc/examples/weather-data.ipynb +0 -0
  145. {xarray-2024.1.0 → xarray-2024.1.1}/doc/gallery/README.txt +0 -0
  146. {xarray-2024.1.0 → xarray-2024.1.1}/doc/gallery/plot_cartopy_facetgrid.py +0 -0
  147. {xarray-2024.1.0 → xarray-2024.1.1}/doc/gallery/plot_colorbar_center.py +0 -0
  148. {xarray-2024.1.0 → xarray-2024.1.1}/doc/gallery/plot_control_colorbar.py +0 -0
  149. {xarray-2024.1.0 → xarray-2024.1.1}/doc/gallery/plot_lines_from_2d.py +0 -0
  150. {xarray-2024.1.0 → xarray-2024.1.1}/doc/gallery.rst +0 -0
  151. {xarray-2024.1.0 → xarray-2024.1.1}/doc/gallery.yml +0 -0
  152. {xarray-2024.1.0 → xarray-2024.1.1}/doc/getting-started-guide/faq.rst +0 -0
  153. {xarray-2024.1.0 → xarray-2024.1.1}/doc/getting-started-guide/index.rst +0 -0
  154. {xarray-2024.1.0 → xarray-2024.1.1}/doc/getting-started-guide/quick-overview.rst +0 -0
  155. {xarray-2024.1.0 → xarray-2024.1.1}/doc/getting-started-guide/why-xarray.rst +0 -0
  156. {xarray-2024.1.0 → xarray-2024.1.1}/doc/howdoi.rst +0 -0
  157. {xarray-2024.1.0 → xarray-2024.1.1}/doc/index.rst +0 -0
  158. {xarray-2024.1.0 → xarray-2024.1.1}/doc/internals/chunked-arrays.rst +0 -0
  159. {xarray-2024.1.0 → xarray-2024.1.1}/doc/internals/duck-arrays-integration.rst +0 -0
  160. {xarray-2024.1.0 → xarray-2024.1.1}/doc/internals/extending-xarray.rst +0 -0
  161. {xarray-2024.1.0 → xarray-2024.1.1}/doc/internals/how-to-create-custom-index.rst +0 -0
  162. {xarray-2024.1.0 → xarray-2024.1.1}/doc/internals/index.rst +0 -0
  163. {xarray-2024.1.0 → xarray-2024.1.1}/doc/internals/internal-design.rst +0 -0
  164. {xarray-2024.1.0 → xarray-2024.1.1}/doc/internals/interoperability.rst +0 -0
  165. {xarray-2024.1.0 → xarray-2024.1.1}/doc/internals/zarr-encoding-spec.rst +0 -0
  166. {xarray-2024.1.0 → xarray-2024.1.1}/doc/roadmap.rst +0 -0
  167. {xarray-2024.1.0 → xarray-2024.1.1}/doc/tutorials-and-videos.rst +0 -0
  168. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/combining.rst +0 -0
  169. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/computation.rst +0 -0
  170. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/dask.rst +0 -0
  171. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/data-structures.rst +0 -0
  172. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/duckarrays.rst +0 -0
  173. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/groupby.rst +0 -0
  174. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/index.rst +0 -0
  175. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/indexing.rst +0 -0
  176. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/interpolation.rst +0 -0
  177. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/io.rst +0 -0
  178. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/options.rst +0 -0
  179. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/pandas.rst +0 -0
  180. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/plotting.rst +0 -0
  181. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/reshaping.rst +0 -0
  182. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/terminology.rst +0 -0
  183. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/testing.rst +0 -0
  184. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/time-series.rst +0 -0
  185. {xarray-2024.1.0 → xarray-2024.1.1}/doc/user-guide/weather-climate.rst +0 -0
  186. {xarray-2024.1.0 → xarray-2024.1.1}/doc/videos.yml +0 -0
  187. {xarray-2024.1.0 → xarray-2024.1.1}/licenses/DASK_LICENSE +0 -0
  188. {xarray-2024.1.0 → xarray-2024.1.1}/licenses/ICOMOON_LICENSE +0 -0
  189. {xarray-2024.1.0 → xarray-2024.1.1}/licenses/NUMPY_LICENSE +0 -0
  190. {xarray-2024.1.0 → xarray-2024.1.1}/licenses/PANDAS_LICENSE +0 -0
  191. {xarray-2024.1.0 → xarray-2024.1.1}/licenses/PYTHON_LICENSE +0 -0
  192. {xarray-2024.1.0 → xarray-2024.1.1}/licenses/SCIKIT_LEARN_LICENSE +0 -0
  193. {xarray-2024.1.0 → xarray-2024.1.1}/licenses/SEABORN_LICENSE +0 -0
  194. {xarray-2024.1.0 → xarray-2024.1.1}/properties/README.md +0 -0
  195. {xarray-2024.1.0 → xarray-2024.1.1}/properties/conftest.py +0 -0
  196. {xarray-2024.1.0 → xarray-2024.1.1}/properties/test_encode_decode.py +0 -0
  197. {xarray-2024.1.0 → xarray-2024.1.1}/properties/test_pandas_roundtrip.py +0 -0
  198. {xarray-2024.1.0 → xarray-2024.1.1}/setup.cfg +0 -0
  199. {xarray-2024.1.0 → xarray-2024.1.1}/setup.py +0 -0
  200. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/__init__.py +0 -0
  201. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/__init__.py +0 -0
  202. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/common.py +0 -0
  203. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/file_manager.py +0 -0
  204. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/h5netcdf_.py +0 -0
  205. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/locks.py +0 -0
  206. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/lru_cache.py +0 -0
  207. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/memory.py +0 -0
  208. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/netCDF4_.py +0 -0
  209. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/netcdf3.py +0 -0
  210. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/plugins.py +0 -0
  211. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/pydap_.py +0 -0
  212. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/pynio_.py +0 -0
  213. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/scipy_.py +0 -0
  214. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/store.py +0 -0
  215. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/backends/zarr.py +0 -0
  216. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/coding/__init__.py +0 -0
  217. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/coding/calendar_ops.py +0 -0
  218. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/coding/cftimeindex.py +0 -0
  219. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/coding/strings.py +0 -0
  220. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/coding/times.py +0 -0
  221. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/coding/variables.py +0 -0
  222. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/conventions.py +0 -0
  223. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/convert.py +0 -0
  224. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/__init__.py +0 -0
  225. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/_typed_ops.py +0 -0
  226. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/accessor_str.py +0 -0
  227. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/alignment.py +0 -0
  228. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/arithmetic.py +0 -0
  229. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/combine.py +0 -0
  230. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/common.py +0 -0
  231. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/computation.py +0 -0
  232. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/concat.py +0 -0
  233. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/coordinates.py +0 -0
  234. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/dask_array_ops.py +0 -0
  235. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/daskmanager.py +0 -0
  236. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/dataset.py +0 -0
  237. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/dtypes.py +0 -0
  238. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/extensions.py +0 -0
  239. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/formatting.py +0 -0
  240. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/formatting_html.py +0 -0
  241. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/groupby.py +0 -0
  242. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/indexes.py +0 -0
  243. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/indexing.py +0 -0
  244. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/merge.py +0 -0
  245. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/missing.py +0 -0
  246. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/nanops.py +0 -0
  247. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/npcompat.py +0 -0
  248. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/ops.py +0 -0
  249. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/options.py +0 -0
  250. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/parallel.py +0 -0
  251. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/parallelcompat.py +0 -0
  252. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/pdcompat.py +0 -0
  253. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/pycompat.py +0 -0
  254. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/resample.py +0 -0
  255. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/resample_cftime.py +0 -0
  256. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/rolling.py +0 -0
  257. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/rolling_exp.py +0 -0
  258. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/types.py +0 -0
  259. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/core/variable.py +0 -0
  260. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/indexes/__init__.py +0 -0
  261. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/namedarray/__init__.py +0 -0
  262. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/namedarray/_aggregations.py +0 -0
  263. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/namedarray/_array_api.py +0 -0
  264. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/namedarray/_typing.py +0 -0
  265. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/namedarray/core.py +0 -0
  266. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/namedarray/dtypes.py +0 -0
  267. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/namedarray/utils.py +0 -0
  268. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/plot/__init__.py +0 -0
  269. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/plot/accessor.py +0 -0
  270. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/plot/dataarray_plot.py +0 -0
  271. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/plot/dataset_plot.py +0 -0
  272. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/plot/facetgrid.py +0 -0
  273. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/plot/utils.py +0 -0
  274. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/py.typed +0 -0
  275. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/static/__init__.py +0 -0
  276. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/static/css/__init__.py +0 -0
  277. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/static/css/style.css +0 -0
  278. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/static/html/__init__.py +0 -0
  279. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/static/html/icons-svg-inline.html +0 -0
  280. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/testing/__init__.py +0 -0
  281. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/testing/assertions.py +0 -0
  282. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/testing/strategies.py +0 -0
  283. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/__init__.py +0 -0
  284. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/data/bears.nc +0 -0
  285. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/data/example.grib +0 -0
  286. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/data/example.ict +0 -0
  287. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/data/example.uamiv +0 -0
  288. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/data/example_1.nc +0 -0
  289. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/data/example_1.nc.gz +0 -0
  290. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_accessor_dt.py +0 -0
  291. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_accessor_str.py +0 -0
  292. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_array_api.py +0 -0
  293. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_assertions.py +0 -0
  294. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_backends_api.py +0 -0
  295. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_backends_common.py +0 -0
  296. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_backends_file_manager.py +0 -0
  297. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_backends_locks.py +0 -0
  298. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_backends_lru_cache.py +0 -0
  299. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_calendar_ops.py +0 -0
  300. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_cftimeindex_resample.py +0 -0
  301. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_coarsen.py +0 -0
  302. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_coding.py +0 -0
  303. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_coding_strings.py +0 -0
  304. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_coding_times.py +0 -0
  305. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_combine.py +0 -0
  306. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_computation.py +0 -0
  307. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_concat.py +0 -0
  308. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_conventions.py +0 -0
  309. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_coordinates.py +0 -0
  310. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_cupy.py +0 -0
  311. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_dataarray.py +0 -0
  312. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_deprecation_helpers.py +0 -0
  313. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_distributed.py +0 -0
  314. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_dtypes.py +0 -0
  315. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_error_messages.py +0 -0
  316. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_extensions.py +0 -0
  317. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_formatting.py +0 -0
  318. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_formatting_html.py +0 -0
  319. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_groupby.py +0 -0
  320. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_hashable.py +0 -0
  321. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_indexes.py +0 -0
  322. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_indexing.py +0 -0
  323. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_interp.py +0 -0
  324. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_merge.py +0 -0
  325. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_missing.py +0 -0
  326. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_namedarray.py +0 -0
  327. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_nputils.py +0 -0
  328. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_options.py +0 -0
  329. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_parallelcompat.py +0 -0
  330. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_plot.py +0 -0
  331. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_plugins.py +0 -0
  332. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_print_versions.py +0 -0
  333. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_sparse.py +0 -0
  334. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_strategies.py +0 -0
  335. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_tutorial.py +0 -0
  336. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_typed_ops.py +0 -0
  337. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_ufuncs.py +0 -0
  338. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_units.py +0 -0
  339. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tests/test_weighted.py +0 -0
  340. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/tutorial.py +0 -0
  341. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/util/__init__.py +0 -0
  342. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/util/deprecation_helpers.py +0 -0
  343. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/util/generate_ops.py +0 -0
  344. {xarray-2024.1.0 → xarray-2024.1.1}/xarray/util/print_versions.py +0 -0
  345. {xarray-2024.1.0 → xarray-2024.1.1}/xarray.egg-info/SOURCES.txt +0 -0
  346. {xarray-2024.1.0 → xarray-2024.1.1}/xarray.egg-info/dependency_links.txt +0 -0
  347. {xarray-2024.1.0 → xarray-2024.1.1}/xarray.egg-info/entry_points.txt +0 -0
  348. {xarray-2024.1.0 → xarray-2024.1.1}/xarray.egg-info/requires.txt +0 -0
  349. {xarray-2024.1.0 → xarray-2024.1.1}/xarray.egg-info/top_level.txt +0 -0
@@ -5,3 +5,7 @@ updates:
5
5
  schedule:
6
6
  # Check for updates once a week
7
7
  interval: 'weekly'
8
+ groups:
9
+ actions:
10
+ patterns:
11
+ - "*"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xarray
3
- Version: 2024.1.0
3
+ Version: 2024.1.1
4
4
  Summary: N-D labeled arrays and datasets in Python
5
5
  Author-email: xarray Developers <xarray@googlegroups.com>
6
6
  License: Apache-2.0
@@ -1,15 +1,16 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
+ # install cython for building cftime without build isolation
4
+ micromamba install "cython>=0.29.20" py-cpuinfo
3
5
  # temporarily (?) remove numbagg and numba
4
- pip uninstall -y numbagg
5
- conda uninstall -y numba
6
+ micromamba remove -y numba numbagg
7
+ # temporarily remove backends
8
+ micromamba remove -y cf_units h5py hdf5 netcdf4
6
9
  # forcibly remove packages to avoid artifacts
7
10
  conda uninstall -y --force \
8
11
  numpy \
9
12
  scipy \
10
13
  pandas \
11
- matplotlib \
12
- dask \
13
14
  distributed \
14
15
  fsspec \
15
16
  zarr \
@@ -17,10 +18,8 @@ conda uninstall -y --force \
17
18
  packaging \
18
19
  pint \
19
20
  bottleneck \
20
- sparse \
21
21
  flox \
22
- h5netcdf \
23
- xarray
22
+ numcodecs
24
23
  # to limit the runtime of Upstream CI
25
24
  python -m pip install \
26
25
  -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
@@ -31,19 +30,34 @@ python -m pip install \
31
30
  scipy \
32
31
  matplotlib \
33
32
  pandas
33
+ # without build isolation for packages compiling against numpy
34
+ # TODO: remove once there are `numpy>=2.0` builds for numcodecs and cftime
35
+ python -m pip install \
36
+ --no-deps \
37
+ --upgrade \
38
+ --no-build-isolation \
39
+ git+https://github.com/Unidata/cftime
40
+ python -m pip install \
41
+ --no-deps \
42
+ --upgrade \
43
+ --no-build-isolation \
44
+ git+https://github.com/zarr-developers/numcodecs
45
+ python -m pip install \
46
+ --no-deps \
47
+ --upgrade \
48
+ --no-build-isolation \
49
+ git+https://github.com/pydata/bottleneck
34
50
  python -m pip install \
35
51
  --no-deps \
36
52
  --upgrade \
37
53
  git+https://github.com/dask/dask \
38
54
  git+https://github.com/dask/distributed \
39
55
  git+https://github.com/zarr-developers/zarr \
40
- git+https://github.com/Unidata/cftime \
41
56
  git+https://github.com/pypa/packaging \
42
57
  git+https://github.com/hgrecco/pint \
43
- git+https://github.com/pydata/bottleneck \
44
58
  git+https://github.com/pydata/sparse \
45
59
  git+https://github.com/intake/filesystem_spec \
46
60
  git+https://github.com/SciTools/nc-time-axis \
47
61
  git+https://github.com/xarray-contrib/flox \
48
- git+https://github.com/h5netcdf/h5netcdf \
49
62
  git+https://github.com/dgasmith/opt_einsum
63
+ # git+https://github.com/h5netcdf/h5netcdf
@@ -3,6 +3,8 @@
3
3
  publication date. Compare it against requirements/min-all-deps.yml to verify the
4
4
  policy on obsolete dependencies is being followed. Print a pretty report :)
5
5
  """
6
+ from __future__ import annotations
7
+
6
8
  import itertools
7
9
  import sys
8
10
  from collections.abc import Iterator
@@ -32,7 +32,7 @@ dependencies:
32
32
  - setuptools
33
33
  - sparse
34
34
  - sphinx-autosummary-accessors
35
- - sphinx-book-theme >= 0.3.0
35
+ - sphinx-book-theme<=1.0.1
36
36
  - sphinx-copybutton
37
37
  - sphinx-design
38
38
  - sphinx-inline-tabs
@@ -17,7 +17,7 @@ dependencies:
17
17
  - hdf5
18
18
  - hypothesis
19
19
  - iris
20
- - lxml # Optional dep of pydap
20
+ - lxml # Optional dep of pydap
21
21
  - matplotlib-base
22
22
  - nc-time-axis
23
23
  - netcdf4
@@ -32,6 +32,7 @@ dependencies:
32
32
  - pip
33
33
  - pooch
34
34
  - pre-commit
35
+ - pyarrow # pandas makes a deprecation warning without this, breaking doctests
35
36
  - pydap
36
37
  - pytest
37
38
  - pytest-cov
@@ -7,9 +7,9 @@ Required dependencies
7
7
  ---------------------
8
8
 
9
9
  - Python (3.9 or later)
10
- - `numpy <https://www.numpy.org/>`__ (1.22 or later)
11
- - `packaging <https://packaging.pypa.io/en/latest/#>`__ (21.3 or later)
12
- - `pandas <https://pandas.pydata.org/>`__ (1.4 or later)
10
+ - `numpy <https://www.numpy.org/>`__ (1.23 or later)
11
+ - `packaging <https://packaging.pypa.io/en/latest/#>`__ (22 or later)
12
+ - `pandas <https://pandas.pydata.org/>`__ (1.5 or later)
13
13
 
14
14
  .. _optional-dependencies:
15
15
 
@@ -281,7 +281,7 @@ You can declare the entrypoint in your project configuration like so:
281
281
 
282
282
  .. code:: toml
283
283
 
284
- [project.entry-points."xarray-backends"]
284
+ [project.entry-points."xarray.backends"]
285
285
  my_engine = "my_package.my_module:MyBackendEntrypoint"
286
286
 
287
287
  .. tab:: pyproject.toml [Poetry]
@@ -14,6 +14,36 @@ What's New
14
14
 
15
15
  np.random.seed(123456)
16
16
 
17
+ .. _whats-new.2024.01.1:
18
+
19
+ v2024.01.1 (23 Jan, 2024)
20
+ -------------------------
21
+
22
+ This release is to fix a bug with the rendering of the documentation, but it also includes changes to the handling of pandas frequency strings.
23
+
24
+ Breaking changes
25
+ ~~~~~~~~~~~~~~~~
26
+
27
+ - Following pandas, :py:meth:`infer_freq` will return ``"YE"``, instead of ``"Y"`` (formerly ``"A"``).
28
+ This is to be consistent with the deprecation of the latter frequency string in pandas 2.2.
29
+ This is a follow up to :pull:`8415` (:issue:`8612`, :pull:`8642`).
30
+ By `Mathias Hauser <https://github.com/mathause>`_.
31
+
32
+ Deprecations
33
+ ~~~~~~~~~~~~
34
+
35
+ - Following pandas, the frequency string ``"Y"`` (formerly ``"A"``) is deprecated in
36
+ favor of ``"YE"``. These strings are used, for example, in :py:func:`date_range`,
37
+ :py:func:`cftime_range`, :py:meth:`DataArray.resample`, and :py:meth:`Dataset.resample`
38
+ among others (:issue:`8612`, :pull:`8629`).
39
+ By `Mathias Hauser <https://github.com/mathause>`_.
40
+
41
+ Documentation
42
+ ~~~~~~~~~~~~~
43
+
44
+ - Pin ``sphinx-book-theme`` to ``1.0.1`` to fix a rendering issue with the sidebar in the docs. (:issue:`8619`, :pull:`8632`)
45
+ By `Tom Nicholas <https://github.com/TomNicholas>`_.
46
+
17
47
  .. _whats-new.2024.01.0:
18
48
 
19
49
  v2024.01.0 (17 Jan, 2024)
@@ -7233,10 +7263,16 @@ Breaking changes
7233
7263
  - The ``season`` datetime shortcut now returns an array of string labels
7234
7264
  such `'DJF'`:
7235
7265
 
7236
- .. ipython:: python
7266
+ .. code-block:: ipython
7237
7267
 
7238
- ds = xray.Dataset({"t": pd.date_range("2000-01-01", periods=12, freq="M")})
7239
- ds["t.season"]
7268
+ In[92]: ds = xray.Dataset({"t": pd.date_range("2000-01-01", periods=12, freq="M")})
7269
+
7270
+ In[93]: ds["t.season"]
7271
+ Out[93]:
7272
+ <xarray.DataArray 'season' (t: 12)>
7273
+ array(['DJF', 'DJF', 'MAM', ..., 'SON', 'SON', 'DJF'], dtype='<U3')
7274
+ Coordinates:
7275
+ * t (t) datetime64[ns] 2000-01-31 2000-02-29 ... 2000-11-30 2000-12-31
7240
7276
 
7241
7277
  Previously, it returned numbered seasons 1 through 4.
7242
7278
  - We have updated our use of the terms of "coordinates" and "variables". What
@@ -271,3 +271,8 @@ testpaths = ["xarray/tests", "properties"]
271
271
 
272
272
  [tool.aliases]
273
273
  test = "pytest"
274
+
275
+ [tool.repo-review]
276
+ ignore = [
277
+ "PP308" # This option creates a large amount of log lines.
278
+ ]
@@ -1433,7 +1433,7 @@ def save_mfdataset(
1433
1433
 
1434
1434
  >>> ds = xr.Dataset(
1435
1435
  ... {"a": ("time", np.linspace(0, 1, 48))},
1436
- ... coords={"time": pd.date_range("2010-01-01", freq="M", periods=48)},
1436
+ ... coords={"time": pd.date_range("2010-01-01", freq="ME", periods=48)},
1437
1437
  ... )
1438
1438
  >>> ds
1439
1439
  <xarray.Dataset>
@@ -573,7 +573,7 @@ class YearBegin(YearOffset):
573
573
 
574
574
 
575
575
  class YearEnd(YearOffset):
576
- _freq = "Y"
576
+ _freq = "YE"
577
577
  _day_option = "end"
578
578
  _default_month = 12
579
579
 
@@ -669,6 +669,7 @@ _FREQUENCIES = {
669
669
  "A": YearEnd,
670
670
  "AS": YearBegin,
671
671
  "Y": YearEnd,
672
+ "YE": YearEnd,
672
673
  "YS": YearBegin,
673
674
  "Q": partial(QuarterEnd, month=12),
674
675
  "QE": partial(QuarterEnd, month=12),
@@ -691,6 +692,7 @@ _FREQUENCIES = {
691
692
  **_generate_anchored_offsets("A", YearEnd),
692
693
  **_generate_anchored_offsets("YS", YearBegin),
693
694
  **_generate_anchored_offsets("Y", YearEnd),
695
+ **_generate_anchored_offsets("YE", YearEnd),
694
696
  **_generate_anchored_offsets("QS", QuarterBegin),
695
697
  **_generate_anchored_offsets("Q", QuarterEnd),
696
698
  **_generate_anchored_offsets("QE", QuarterEnd),
@@ -716,7 +718,8 @@ def _generate_anchored_deprecated_frequencies(deprecated, recommended):
716
718
 
717
719
 
718
720
  _DEPRECATED_FREQUENICES = {
719
- "A": "Y",
721
+ "A": "YE",
722
+ "Y": "YE",
720
723
  "AS": "YS",
721
724
  "Q": "QE",
722
725
  "M": "ME",
@@ -725,7 +728,8 @@ _DEPRECATED_FREQUENICES = {
725
728
  "S": "s",
726
729
  "L": "ms",
727
730
  "U": "us",
728
- **_generate_anchored_deprecated_frequencies("A", "Y"),
731
+ **_generate_anchored_deprecated_frequencies("A", "YE"),
732
+ **_generate_anchored_deprecated_frequencies("Y", "YE"),
729
733
  **_generate_anchored_deprecated_frequencies("AS", "YS"),
730
734
  **_generate_anchored_deprecated_frequencies("Q", "QE"),
731
735
  }
@@ -979,7 +983,7 @@ def cftime_range(
979
983
  +--------+--------------------------+
980
984
  | Alias | Description |
981
985
  +========+==========================+
982
- | Y | Year-end frequency |
986
+ | YE | Year-end frequency |
983
987
  +--------+--------------------------+
984
988
  | YS | Year-start frequency |
985
989
  +--------+--------------------------+
@@ -1009,29 +1013,29 @@ def cftime_range(
1009
1013
  +------------+--------------------------------------------------------------------+
1010
1014
  | Alias | Description |
1011
1015
  +============+====================================================================+
1012
- | Y(S)-JAN | Annual frequency, anchored at the end (or beginning) of January |
1016
+ | Y(E,S)-JAN | Annual frequency, anchored at the (end, beginning) of January |
1013
1017
  +------------+--------------------------------------------------------------------+
1014
- | Y(S)-FEB | Annual frequency, anchored at the end (or beginning) of February |
1018
+ | Y(E,S)-FEB | Annual frequency, anchored at the (end, beginning) of February |
1015
1019
  +------------+--------------------------------------------------------------------+
1016
- | Y(S)-MAR | Annual frequency, anchored at the end (or beginning) of March |
1020
+ | Y(E,S)-MAR | Annual frequency, anchored at the (end, beginning) of March |
1017
1021
  +------------+--------------------------------------------------------------------+
1018
- | Y(S)-APR | Annual frequency, anchored at the end (or beginning) of April |
1022
+ | Y(E,S)-APR | Annual frequency, anchored at the (end, beginning) of April |
1019
1023
  +------------+--------------------------------------------------------------------+
1020
- | Y(S)-MAY | Annual frequency, anchored at the end (or beginning) of May |
1024
+ | Y(E,S)-MAY | Annual frequency, anchored at the (end, beginning) of May |
1021
1025
  +------------+--------------------------------------------------------------------+
1022
- | Y(S)-JUN | Annual frequency, anchored at the end (or beginning) of June |
1026
+ | Y(E,S)-JUN | Annual frequency, anchored at the (end, beginning) of June |
1023
1027
  +------------+--------------------------------------------------------------------+
1024
- | Y(S)-JUL | Annual frequency, anchored at the end (or beginning) of July |
1028
+ | Y(E,S)-JUL | Annual frequency, anchored at the (end, beginning) of July |
1025
1029
  +------------+--------------------------------------------------------------------+
1026
- | Y(S)-AUG | Annual frequency, anchored at the end (or beginning) of August |
1030
+ | Y(E,S)-AUG | Annual frequency, anchored at the (end, beginning) of August |
1027
1031
  +------------+--------------------------------------------------------------------+
1028
- | Y(S)-SEP | Annual frequency, anchored at the end (or beginning) of September |
1032
+ | Y(E,S)-SEP | Annual frequency, anchored at the (end, beginning) of September |
1029
1033
  +------------+--------------------------------------------------------------------+
1030
- | Y(S)-OCT | Annual frequency, anchored at the end (or beginning) of October |
1034
+ | Y(E,S)-OCT | Annual frequency, anchored at the (end, beginning) of October |
1031
1035
  +------------+--------------------------------------------------------------------+
1032
- | Y(S)-NOV | Annual frequency, anchored at the end (or beginning) of November |
1036
+ | Y(E,S)-NOV | Annual frequency, anchored at the (end, beginning) of November |
1033
1037
  +------------+--------------------------------------------------------------------+
1034
- | Y(S)-DEC | Annual frequency, anchored at the end (or beginning) of December |
1038
+ | Y(E,S)-DEC | Annual frequency, anchored at the (end, beginning) of December |
1035
1039
  +------------+--------------------------------------------------------------------+
1036
1040
  | Q(E,S)-JAN | Quarter frequency, anchored at the (end, beginning) of January |
1037
1041
  +------------+--------------------------------------------------------------------+
@@ -1311,11 +1315,8 @@ def date_range_like(source, calendar, use_cftime=None):
1311
1315
  freq = freq.replace("QE", "Q")
1312
1316
  elif isinstance(freq_as_offset, YearBegin) and "YS" in freq:
1313
1317
  freq = freq.replace("YS", "AS")
1314
- elif isinstance(freq_as_offset, YearEnd) and "Y-" in freq:
1315
- # Check for and replace "Y-" instead of just "Y" to prevent
1316
- # corrupting anchored offsets that contain "Y" in the month
1317
- # abbreviation, e.g. "Y-MAY" -> "A-MAY".
1318
- freq = freq.replace("Y-", "A-")
1318
+ elif isinstance(freq_as_offset, YearEnd) and "YE" in freq:
1319
+ freq = freq.replace("YE", "A")
1319
1320
 
1320
1321
  use_cftime = _should_cftime_be_used(source, calendar, use_cftime)
1321
1322
 
@@ -183,7 +183,7 @@ class _CFTimeFrequencyInferer: # (pd.tseries.frequencies._FrequencyInferer):
183
183
  if len(np.unique(self.index.month)) > 1:
184
184
  return None
185
185
 
186
- return {"cs": "YS", "ce": "Y"}.get(month_anchor_check(self.index))
186
+ return {"cs": "YS", "ce": "YE"}.get(month_anchor_check(self.index))
187
187
 
188
188
  def _get_quartely_rule(self):
189
189
  if len(self.month_deltas) > 1: