-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[REGRESSION] to_netcdf doesn't accept dtype=S1 encoding anymore #2149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes, this would warrant an immediate bug fix release.
…On Thu, May 17, 2018 at 7:09 AM crusaderky ***@***.***> wrote:
In xarray 0.10.4, the dtype encoding in to_netcdf has stopped working, *for
all engines*:
>>> import xarray
>>> ds = xarray.Dataset({'x': ['foo', 'bar', 'baz']})
>>> ds.to_netcdf('test.nc', encoding={'x': {'dtype': 'S1'}})
[...]
xarray/backends/netCDF4_.py in _extract_nc4_variable_encoding(variable, raise_on_invalid, lsd_okay, h5py_okay, backend, unlimited_dims)
196 if invalid:
197 raise ValueError('unexpected encoding parameters for %r backend: '
--> 198 ' %r' % (backend, invalid))
199 else:
200 for k in list(encoding):
ValueError: unexpected encoding parameters for 'netCDF4' backend: ['dtype']
I'm still trying to figure out how the regression tests didn't pick it up
and what change introduced it.
@shoyer <https://github.com/shoyer> I'm working on this as my top
priority. Do you agree this is serious enough for an emergency re-release?
(0.10.4.1 or 0.10.5, your choice)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2149>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABKS1o6DKXddpZGzWNVoVa3IYfXomAN4ks5tzYSMgaJpZM4UDJB8>
.
|
|
@shoyer I'm struggling to understand your change - help would be appreciated. |
I just got off an airplane (without internet), but I'll try to look into this shortly. I guess I shouldn't be surprised that 3c8935e was the source of this bug -- it was pretty big refactor :(. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In xarray 0.10.4, the dtype encoding in to_netcdf has stopped working, for all engines:
I'm still trying to figure out how the regression tests didn't pick it up and what change introduced it.
@shoyer I'm working on this as my top priority. Do you agree this is serious enough for an emergency re-release? (0.10.4.1 or 0.10.5, your choice)
The text was updated successfully, but these errors were encountered: