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 66dffd5 commit e545137
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ Breaking changes
- drop support for `cdms2 <https://github.com/CDAT/cdms>`_. Please use
`xcdat <https://github.com/xCDAT/xcdat>`_ instead (:pull:`8441`).
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 e545137

Please sign in to comment.