Reshape and change the data before returning

This commit is contained in:
2020-06-29 14:50:40 +02:00
parent 7f2e8e7136
commit 29e754796a
+2 -1
View File
@@ -108,7 +108,8 @@ class BinaryBufferReader(object):
if not metadata_init:
metadata["is_good_frame"] = False
return metadata, data
data_shape = [self.n_modules * MODULE_Y_SIZE, MODULE_X_SIZE]
return metadata, data.astype(dtype="uint16").reshape(shape=data_shape)
def get_file_frame_index(pulse_id):