Skip to content

Commit b40cf0d

Browse files
committed
Changed np.string_ to np_bytes to work with numpy>=2
1 parent 17aaa96 commit b40cf0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

labscript_devices/IMAQdxCamera/blacs_workers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,9 @@ def transition_to_manual(self):
480480
frametype, data=data, dtype='uint16', compression='gzip'
481481
)
482482
# Specify this dataset should be viewed as an image
483-
dset.attrs['CLASS'] = np.string_('IMAGE')
484-
dset.attrs['IMAGE_VERSION'] = np.string_('1.2')
485-
dset.attrs['IMAGE_SUBCLASS'] = np.string_('IMAGE_GRAYSCALE')
483+
dset.attrs['CLASS'] = np.bytes_('IMAGE')
484+
dset.attrs['IMAGE_VERSION'] = np.bytes_('1.2')
485+
dset.attrs['IMAGE_SUBCLASS'] = np.bytes_('IMAGE_GRAYSCALE')
486486
dset.attrs['IMAGE_WHITE_IS_ZERO'] = np.uint8(0)
487487

488488
# If the images are all the same shape, send them to the GUI for display:

0 commit comments

Comments
 (0)