You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if kwargs.get("group", None) is None:
return apply_ufunc(method, obs, simh, simp, **kwargs).to_dataset()
must be rename a dataarray object befor it be converted to dataset. so the L149 should be pass a name (for example, 'tas') and rewrite as return apply_ufunc(method, obs, simh, simp, **kwargs).rename('tas').to_dataset().
The text was updated successfully, but these errors were encountered:
@aierfulz, thank you for sharing your idea! Indeed I never thought about applying these techniques to xarray.Dataarrays that don't provide a name. For named dataarrays, the name provided by simp is taken - so no need to apply rename.
ValueError: unable to convert unnamed DataArray to a Dataset without providing an explicit name
IMO the error is very clear and could be avoided by adding a proper name to the input data sets. Extending the implementation as you suggested would add more complexity which is only needed in rare cases - and solved easier by adding a proper name. I don't see any actions to do here.
core.py Line 148-149
must be rename a dataarray object befor it be converted to dataset. so the L149 should be pass a name (for example, 'tas') and rewrite as
return apply_ufunc(method, obs, simh, simp, **kwargs).rename('tas').to_dataset()
.The text was updated successfully, but these errors were encountered: