mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-10-21 15:06:09 +02:00
Fix returning numpy array
This commit is contained in:
1 parent
29e754796a
commit
2e0dabb8c3
1 file changed
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user