Skip to content

Commit

Permalink
fix: replace offending np.NaN with np.nan for numpy 2.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mcencini authored and FrankZijlstra committed Jun 18, 2024
1 parent 96b888e commit 9634b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypulseq/Sequence/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def calculate_kspace(
dk = -k_traj[:, i_period]
if i_period > 0:
# Use nans to mark the excitation points since they interrupt the plots
k_traj[:, i_period - 1] = np.NaN
k_traj[:, i_period - 1] = np.nan
# -1 on len(i_excitation) for 0-based indexing
ii_next_excitation = min(len(i_excitation) - 1, ii_next_excitation + 1)
elif (
Expand Down

0 comments on commit 9634b0d

Please sign in to comment.