Skip to content

Commit

Permalink
Update parastell/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Wilson <[email protected]>
  • Loading branch information
connoramoreno and gonuke authored Oct 3, 2024
1 parent 263d3e4 commit 12a3fde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parastell/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def expand_list(list, num):
for entry, next_entry in zip(list[:-1], list[1:]):
num_new_entries = int(round((next_entry - entry) / avg_diff))

# don't append the last entry in the created linspace to avoid adding it twice when
# the next created linspace is appended
list_exp = np.append(
list_exp,
np.linspace(entry, next_entry, num=num_new_entries + 1)[:-1],
Expand Down

0 comments on commit 12a3fde

Please sign in to comment.