Skip to content

Commit

Permalink
Changed get_gradients to actually use extrapolation in the piecewis…
Browse files Browse the repository at this point in the history
…e polynomial
  • Loading branch information
FrankZijlstra committed Jun 19, 2024
1 parent 9634b0d commit 984d530
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 @@ -865,7 +865,7 @@ def get_gradients(self,
gw[1][gw[1] == -0.0] = 0.0

gw_pp.append(PPoly(np.stack((np.diff(gw[1]) / np.diff(gw[0]),
gw[1][:-1])), gw[0], extrapolate=False))
gw[1][:-1])), gw[0], extrapolate=True))
return gw_pp

def mod_grad_axis(self, axis: str, modifier: int) -> None:
Expand Down

0 comments on commit 984d530

Please sign in to comment.