Skip to content

Commit

Permalink
fix hdf5_to_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Dec 23, 2024
1 parent 29cf5ef commit eb2b689
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/analysis/hdf5_to_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ def load_dump(fname, geom=None, nulegacy=False):
Ns = dump['local_Ns'][:]
wb2N = Ns*wmean*wmean
w2 = dump['local_wsqr'][:]
dump['local_stddev'] = np.sqrt(wb2N + N2*(w2 - wb2N)/(Ns - 1))
ones = np.ones_like(Ns)
dump['local_stddev'] = np.sqrt(wb2N + Ns*(w2 - wb2N)/(np.minimum(ones, Ns - 1))

This comment has been minimized.

Copy link
@kelslund

kelslund Dec 23, 2024

Collaborator

Missing parenthesis at end of line

if hdr['NEUTRINO_OSCILLATIONS']:
dump['local_osc_rate'] = dfile['local_osc_count'][:]

Expand Down

0 comments on commit eb2b689

Please sign in to comment.