Skip to content

Commit

Permalink
reg/flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Sep 12, 2024
1 parent fe95f27 commit 5c34495
Showing 1 changed file with 2 additions and 2 deletions.
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 as np
import numpy
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 = np.bytes_(value.encode("utf-8"))
value = numpy.bytes_(value.encode("utf-8"))
h5.attrs[h5key] = value
if task_dict["new"]:
return task_dict
Expand Down

0 comments on commit 5c34495

Please sign in to comment.