asascience-open / xarray-subset-grid

Subset Xarray datasets in space
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Update xarray version to 2023.10 and Add Support for Python 3.9 #21

Closed omkar-334 closed 1 month ago

omkar-334 commented 1 month ago
  1. From xarray v2023.10.0 onwards, the reset_encoding method was renamed to drop_encoding.
    So all previous versions will raise AttributeError: 'Dataset' object has no attribute 'drop_encoding'.
    Added xarray version in pyproject.toml dependencies to resolve this.

  2. The Union operator | was introduced in python 3.10.
    Replaced | with typing.Union to add support for python 3.9 as well.