Fix returning numpy array

This commit is contained in:
2020-06-29 15:01:12 +02:00
parent 29e754796a
commit 2e0dabb8c3
+1 -1
View File
@@ -109,7 +109,7 @@ class BinaryBufferReader(object):
metadata["is_good_frame"] = False
data_shape = [self.n_modules * MODULE_Y_SIZE, MODULE_X_SIZE]
return metadata, data.astype(dtype="uint16").reshape(shape=data_shape)
return metadata, data.view("uint16").reshape(shape=data_shape)
def get_file_frame_index(pulse_id):