Closed lgpreston closed 4 years ago
Thanks for the report.
I believe this is the same issue as https://github.com/pydata/xarray/issues/1764
@shoyer is there any update on this? I don't quite understand the error so have so far been unable to develop a workaround.
Sorry, I haven't had time to look into this yet
I think this has been fixed since groupby discards nans in the grouped variable.
Please reopen with a reproducible example if it has not been fixed.
First github issue I've raised so apologies if it doesn't follow protocol.
I'm receiving a StopIteration: error when attempting to use the groupby function in xarray. The error only occurs when attempting to loop through a list of files - if a single file path is input, no error is generated. I've also tried using xr.open_mfdataset to open the full directory of files, but this produced the same error.
Produces:
As does:
However a file path works perfectly,