Apply suggestions from @eepeterson

Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
This commit is contained in:
Patrick Shriwise 2022-03-17 09:20:37 -05:00 committed by GitHub
parent a86c472095
commit faa142c78d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))