From 26ddd8fc45324ede92a45f17c72bc3148f751e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Weber?= Date: Mon, 22 Jun 2026 14:03:01 +0200 Subject: [PATCH] explicitely use encoding on 32 bits to make it correct --- .../daq_viewer_plugins/plugins_2D/daq_2Dviewer_AndorCCD.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pymodaq_plugins_andor/daq_viewer_plugins/plugins_2D/daq_2Dviewer_AndorCCD.py b/src/pymodaq_plugins_andor/daq_viewer_plugins/plugins_2D/daq_2Dviewer_AndorCCD.py index d35074f..3e78d11 100644 --- a/src/pymodaq_plugins_andor/daq_viewer_plugins/plugins_2D/daq_2Dviewer_AndorCCD.py +++ b/src/pymodaq_plugins_andor/daq_viewer_plugins/plugins_2D/daq_2Dviewer_AndorCCD.py @@ -483,7 +483,7 @@ def prepare_data(self): # %%%%%% Initialize data: self.data for the memory to store new data and self.data_average to store the average data image_size = sizex * sizey - self.data = np.zeros((image_size,), dtype=int) + self.data = np.zeros((image_size,), dtype=np.uint32) self.data_pointer = self.data.ctypes.data_as(ctypes.c_void_p) data_shape = 'Data2D' if sizey != 1 else 'Data1D'