Skip to content

Commit

Permalink
ref: support numpy 2
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Sep 12, 2024
1 parent 1ab6343 commit fe95f27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.17.2
- ref: support numpy 2
0.17.1
- setup: bump dclab from 0.60.0 to 0.61.1 (fix writing wrong frame numbers
when joining files that were measured a longer time apart)
Expand Down
4 changes: 2 additions & 2 deletions dckit/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import imageio
import imageio_ffmpeg
import nptdms
import numpy
import numpy as np
from PyQt5 import uic, QtCore, QtWidgets

from . import dlg_icheck
Expand Down Expand Up @@ -704,7 +704,7 @@ def write_metadata(self, path, metadata):
task_dict["new"][h5key] = value
task_dict["old"][h5key] = value_old
if isinstance(value, str): # (after task_dict)
value = numpy.string_(value.encode("utf-8"))
value = np.bytes_(value.encode("utf-8"))
h5.attrs[h5key] = value
if task_dict["new"]:
return task_dict
Expand Down

0 comments on commit fe95f27

Please sign in to comment.