Skip to content

Commit 99382ed

Browse files
committed
Fix for ramps
1 parent 4475574 commit 99382ed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/mrinufft/trajectories/tools.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,8 @@ def get_gradient_amplitudes_to_travel_for_set_time(
555555
gmax=gmax,
556556
smax=smax,
557557
)
558-
N = (
559-
np.max(np.sum(n_ramp_down + n_ramp_up + n_plateau, axis=0)) + 2
560-
) # Extra 2 buffer samples
558+
# Extra 2 buffer samples
559+
N = np.max(n_ramp_down + n_ramp_up + n_plateau) + 2
561560

562561
area_needed = (ke - ks) / gamma / raster_time
563562
# Intermediate gradient values. This is value of plateau or triangle gradients

0 commit comments

Comments
 (0)