From faa142c78d590a3bf27d39f816c670bf5244f182 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Thu, 17 Mar 2022 09:20:37 -0500 Subject: [PATCH] Apply suggestions from @eepeterson Co-authored-by: Ethan Peterson --- openmc/weight_windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/weight_windows.py b/openmc/weight_windows.py index 499772bcf9..f7963628d0 100644 --- a/openmc/weight_windows.py +++ b/openmc/weight_windows.py @@ -525,7 +525,7 @@ def wwinp_to_wws(path): intervals = grid_vals.reshape(-1, 3) coords = [grid0] for sx, px, qx in intervals: - coords += list(np.linspace(coords[-1], px, int(sx + 1)))[1:] + coords += np.linspace(coords[-1], px, int(sx + 1)).tolist()[1:] grids.append(np.array(coords))