Skip to content

Commit 58ff26b

Browse files
committed
Minor bug fix
1 parent 686894d commit 58ff26b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

psyplot/data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2275,6 +2275,8 @@ def _gridweights_cdo(self):
22752275
if bounds and bounds in set(base.coords) - set(ds.coords):
22762276
ds[bounds] = base.sel(
22772277
**{d: arr.coords[d] for d in sdims}).coords[bounds]
2278+
ds = ds.drop([c.name for c in six.itervalues(ds.coords)
2279+
if not c.ndim])
22782280
to_netcdf(ds, fname)
22792281
ret = cdo.gridweights(input=fname, returnArray='cell_weights')
22802282
try:

0 commit comments

Comments
 (0)