Skip to content

Commit

Permalink
add suggestions from review
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Nov 17, 2023
1 parent b617924 commit ee0bf6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ Breaking changes
``"S"``, ``"L"``, ``"U"``, or ``"N"``. This is to be consistent with the
deprecation of the latter frequency strings (:issue:`8394`, :pull:`8415`). By
`Spencer Clark <https://github.com/spencerkclark>`_.
By `Justus Magin <https://github.com/keewis`_.
- Bump minimum tested pint version to ``>=0.22``. By `Deepak Cherian <https://github.com/dcherian>`_.
- Minimum supported versions for the following packages have changed: ``h5py >=3.7``, ``h5netcdf>=1.1``.
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.

Deprecations
~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion xarray/coding/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ def decode(self):
raise NotImplementedError()


class ObjectStringCoder(VariableCoder):
class ObjectVLenStringCoder(VariableCoder):
def encode(self):
return NotImplementedError

Expand Down
2 changes: 1 addition & 1 deletion xarray/conventions.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def decode_cf_variable(
var = strings.EncodedStringCoder().decode(var)

if original_dtype == object:
var = variables.ObjectStringCoder().decode(var)
var = variables.ObjectVLenStringCoder().decode(var)
original_dtype = var.dtype

if mask_and_scale:
Expand Down

0 comments on commit ee0bf6e

Please sign in to comment.