mirror of
https://github.com/paulscherrerinstitute/sf_daq_broker.git
synced 2026-08-06 01:22:26 +02:00
close the file ASAP, open again for reading
This commit is contained in:
@@ -49,6 +49,8 @@ def main():
|
||||
dst = h5f.create_dataset(DST_NAME, data=data)
|
||||
dst.attrs.update(attributes)
|
||||
|
||||
with h5py.File(fn_out, "r") as h5f:
|
||||
dst = h5f["gains"]
|
||||
print()
|
||||
print(f"File {fn_out} written, size of {DST_NAME} dataset: {dst.shape}")
|
||||
print("Written attributes:")
|
||||
|
||||
Reference in New Issue
Block a user