Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jswhit committed Jan 21, 2024
1 parent 58a5ba0 commit 69824b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/netCDF4/_netCDF4.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4988,6 +4988,7 @@ rename a `Variable` attribute named `oldname` to `newname`."""
data[0] = datout
else:
if self._isvlen and not shape:
# issue #1306 - convert length 1 object array to string
data[tuple(i)] = datout.item()
else:
data[tuple(i)] = datout.reshape(shape)
Expand Down

0 comments on commit 69824b3

Please sign in to comment.