Closed TomAugspurger closed 3 years ago
Ugh, thanks for reporting. Definitely need to address and get a 0.9 out the door.
Maybe something similar to what psyplot is doing could work ? https://psyplot.readthedocs.io/en/latest/_modules/psyplot/gdal_store.html
try:
from xarray.core.utils import FrozenOrderedDict
except ImportError:
FrozenOrderedDict = dict
It's actually likely we do like MetPy, and bump our minimum supported xarray version and change the code to:
from xarray.core.utils import FrozenDict
Looks like this was actually already done in #291 , but just not released yet.
With siphon 0.8.0 and a call with
use_xarray=True
, I see an ImportError inside siphon:From http://xarray.pydata.org/en/stable/faq.html#what-parts-of-xarray-are-considered-public-api, xarray considers
xarray.core
to be private, so libraries probably shouldn't be importing from it.Full example: