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
Consider the following gist where I receive the following error: TypeError: DataArray.name or Dataset key must be either a string or None for serialization to netCDF files.
I think that I run into a bug when DataArray.name is checked by check_name function. I think that k in the corresponding for loop actually represents DataArray not DataArray.name itself. Thus, I suggest something like this to fix it: for k in dataset: check_name(k.name)
The text was updated successfully, but these errors were encountered:
@kuchaale - Thanks for the report. You are trying to save a list of DataArray objects using save_mfdataset, which does not currently support saving DataArrays to netCDF.
Consider the following gist where I receive the following error:
TypeError: DataArray.name or Dataset key must be either a string or None for serialization to netCDF files
.I think that I run into a bug when
DataArray.name
is checked bycheck_name
function. I think thatk
in the corresponding for loop actually representsDataArray
notDataArray.name
itself. Thus, I suggest something like this to fix it:for k in dataset: check_name(k.name)
The text was updated successfully, but these errors were encountered: