Skip to content

Commit 55ad92d

Browse files
chaithyagrchaithyagrpaquiteauAsma TANABENEDaval-G
committed
Add prephasors, rewinders etc. (#276)
* Added * Fix * Remove bymistake add * Fix * Fixed lint * Lint * Added refbackend * Fix NDFT * feat: use finufft as ref backend. * feat(tests): move ndft vs nufft tests to own file. * Add support for pipe * \!docs_build try to run cufinufft tests * \!docs_build fix style * Added next235 for stability * Fix lint * Fix CUPY * WIP * Updates * fix back learn examples * move tto flatiron * fix black * Move to test on GPU * Update pyproject toml and use it in test-ci, to prevent duplication of dependencies and actually test them! * Make CI build shorter * Test run to run * \!docs_build Added * adding density normalization * Start support for finufft spread and interpolate (pipe) * Add support for density comp * Add support for normlize back * Added a bunch of extra codes * PEP fixes * Update siemens.py * Added fixes * add [docs] * Fixes and updates on the locatuions * Update the codes to be in sync with cufinufft / finufft 2.4.0 * Merged to master * [style] * Fix toml ffile [docs] * Fix toml ffile [docs] * Update testbatch stuff * Update the tests * Fixed tests againnnn * All set * Add finufft * Updates * Fixes * More fixes * make tests less strict again * remove bymistake * Remove strictness, everything works, hopefully [docs] * [docs] setup cufinufft also * [docs] fix style * [docs] more updates, fixes * pywavelets * [docs] fixes further * [docs] try again * [docs] final comments * [docs] method class use * WIP, updated codes to get itw orking * trying to vectorize * WIP * WIP * added direct change * More updates * Added timing and gradients * Update gradspec and codes * Update the error for slew * Added tests * Setup PEP, ready for review * Minor update on spec * WIP * Fixes for tests * fix docs * Update src/mrinufft/io/nsp.py Co-authored-by: Pierre-Antoine Comby <[email protected]> * remove unused stuff * Final fixes. [docs] * Haandleing comments * Update src/mrinufft/trajectories/tools.py Co-authored-by: Guillaume Daval-Frérot <[email protected]> * [docs] update the docnames * update TE_pos * style fixes * style fixes * Fix for ramps * Update src/mrinufft/trajectories/tools.py Co-authored-by: Guillaume Daval-Frérot <[email protected]> * Apply suggestions from code review Co-authored-by: Guillaume Daval-Frérot <[email protected]> * Update src/mrinufft/io/nsp.py Co-authored-by: Guillaume Daval-Frérot <[email protected]> * Update src/mrinufft/io/nsp.py Co-authored-by: Guillaume Daval-Frérot <[email protected]> * Update src/mrinufft/io/nsp.py Co-authored-by: Guillaume Daval-Frérot <[email protected]> * Update src/mrinufft/io/nsp.py Co-authored-by: Guillaume Daval-Frérot <[email protected]> * Handle comments * rename parameters and fix ordering * Handle comments * Update codes * More updates * Fixed some bugs * Update the tools * style fixes and [docs] * More bugs! Fixes * [WIP] * Updateds WIP * wip * WIP: moved to solvers * Fixed everything, ready for review * Update src/mrinufft/trajectories/tools.py Co-authored-by: Pierre-Antoine Comby <[email protected]> * style fixes * Update ruff * Added joblib * style changes [docs] * Apply suggestions from code review Co-authored-by: Pierre-Antoine Comby <[email protected]> * Renaming * Fix more comments * Undo changes * fix undo * refactor: split test in two --------- Co-authored-by: chaithyagr <[email protected]> Co-authored-by: Pierre-antoine Comby <[email protected]> Co-authored-by: Asma TANABENE <[email protected]> Co-authored-by: Guillaume Daval-Frérot <[email protected]> Co-authored-by: Pierre-Antoine Comby <[email protected]>
1 parent 3716a90 commit 55ad92d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mrinufft/io/nsp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ def write_trajectory(
319319
kspace_start_loc=final_positions,
320320
acq=acq,
321321
)
322+
gradients = np.hstack([gradients, end_gradients])
323+
Ns_to_skip_at_end = end_gradients.shape[1]
322324
# Check constraints if requested
323325
if check_constraints:
324326
slewrates, _ = convert_gradients_to_slew_rates(gradients, acq)

0 commit comments

Comments
 (0)