Skip to content

Commit

Permalink
Revert cleanup in add_gradients because it broke other code...
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankZijlstra committed Feb 7, 2024
1 parent a3cdf82 commit 6a5109d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypulseq/add_gradients.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def add_gradients(
g = grads[ii]
if g.type == "trap":
if g.flat_time > 0: # Trapezoid or triangle
tt = cumsum(g.delay, g.rise_time, g.flat_time, g.fall_time)
tt = list(cumsum(g.delay, g.rise_time, g.flat_time, g.fall_time))
waveform = [0, g.amplitude, g.amplitude, 0]
else:
tt = cumsum(g.delay, g.rise_time, g.fall_time)
tt = list(cumsum(g.delay, g.rise_time, g.fall_time))
waveform = [0, g.amplitude, 0]
else:
tt = g.delay + g.tt
Expand Down

0 comments on commit 6a5109d

Please sign in to comment.