From 2eab6fd3351527cd24639df68010f93a984acd8c Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Tue, 15 Mar 2022 18:53:42 -0500 Subject: [PATCH] Apply suggestions from @paulromano Co-authored-by: Paul Romano --- openmc/weight_windows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/weight_windows.py b/openmc/weight_windows.py index 443500c844..734d73d4df 100644 --- a/openmc/weight_windows.py +++ b/openmc/weight_windows.py @@ -460,7 +460,7 @@ def wwinp_to_wws(path): # create generator for getting the next parameter from the file wwinp = _wwinp_reader(path) - # first parameter, if, of wwinp file is unused + # first parameter, 'if' (file type), of wwinp file is unused next(wwinp) # check time parameter, iv @@ -569,7 +569,7 @@ def wwinp_to_wws(path): # it is implied that zero is always the first bound in MCNP e_bounds = np.asarray([0.0] + [float(next(wwinp)) for _ in range(ne)]) # adjust energy from MeV to eV - e_bounds *= 1E6 + e_bounds *= 1e6 # create an array for weight window lower bounds ww_lb = np.zeros((*mesh.dimension, ne))