Skip to content

Commit

Permalink
Change call to assign_coords to work on old xarray
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Jan 12, 2020
1 parent 78c642c commit 01e28e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metpy/xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def _has_coord(coord_type):
coords = dict(self._rebuild_coords(var, crs))
if crs is not None:
coords['crs'] = crs
return var.assign_coords(coords)
return var.assign_coords(**coords)

def _rebuild_coords(self, var, crs):
"""Clean up the units on the coordinate variables."""
Expand Down

0 comments on commit 01e28e0

Please sign in to comment.