mirror of https://gitlab.com/scemama/qmcchem.git
Fix running averages
This commit is contained in:
parent
bb64e47ac9
commit
70dbec8ab8
|
@ -110,7 +110,9 @@ let read_bytes b idx =
|
||||||
Bytes.get_int64_ne b idx
|
Bytes.get_int64_ne b idx
|
||||||
|> Int64.to_int
|
|> Int64.to_int
|
||||||
in
|
in
|
||||||
Some (Bytes.sub b (idx+8) m, idx+8+m)
|
try
|
||||||
|
Some (Bytes.sub b (idx+8) m, idx+8+m)
|
||||||
|
with Invalid_argument _ -> None
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue