ESMG / gridtools

A collection of grid generation tools.
Other
17 stars 15 forks source link

xarray=0.19.0 has widespread impact on gridutils library #12

Closed jr3cermak closed 2 years ago

jr3cermak commented 2 years ago

An upgrade to xarray from 0.18.2 to 0.19.0 is forcing the unpacking of variables using .data prior to establishing a new variable in a Dataset. Reference: Pull request #11. CI/Actions also fail when xarray was upgraded to 0.19.0.

This has more widespread impact and is requiring updates to library code.

ACTION: Upgrade conda environment xarray=0.19.0 and retest all examples.

Example:

OLD:

                    ds['x'] = (('ny','nx'), self.grid['x'])
                    ds['y'] = (('ny','nx'), self.grid['y'])

NEW:

                    ds['x'] = (('ny','nx'), self.grid['x'].data)
                    ds['y'] = (('ny','nx'), self.grid['y'].data)