ECCC-MSC / msc-pygeoapi

MSC OGC API pygeoapi deployment
MIT License
16 stars 25 forks source link

remove warnings for Xarray based backends #325

Closed tomkralidis closed 6 months ago

tomkralidis commented 6 months ago

This PR removes FutureWarnings on Xarray-based backends:

 /home/runner/work/pygeoapi/pygeoapi/pygeoapi/provider/xarray_.py:389: FutureWarning: The return type of `Dataset.dims` will be changed to return a set of dimension names in future, in order to be more consistent with `DataArray.dims`. To access a mapping from dimension names to lengths, please use `Dataset.sizes`.

Related implementation of https://github.com/geopython/pygeoapi/pull/1623