close the file ASAP, open again for reading

This commit is contained in:
NichtJens
2024-10-01 19:31:47 +02:00
parent 42329b7585
commit e2d59f5d4f
+2
View File
@@ -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:")