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'