mirror of
https://gitlab.com/scemama/qmcchem.git
synced 2024-12-21 11:53:30 +01:00
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
|
||||
|> Int64.to_int
|
||||
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
Block a user