Skip to content

Commit f142080

Browse files
committed
Add workaround to prevent object array
Add a workaround for pydata/xarray#1792 --- the mask was accidentally being turned into an object dtype array.
1 parent 4c07453 commit f142080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fogpy/composites.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ def _convert_to_xr(projectables, fls, mask):
279279
"start_time", "end_time", "area", "resolution")}
280280

281281
xrfls = xarray.DataArray(
282-
fls, dims=dims, coords=coords, attrs=attrs)
282+
fls.data, dims=dims, coords=coords, attrs=attrs)
283283
xrmsk = xarray.DataArray(
284-
mask, dims=dims, coords=coords, attrs=attrs)
284+
mask.data, dims=dims, coords=coords, attrs=attrs)
285285

286286
return (xrfls, xrmsk)
287287

0 commit comments

Comments
 (0)