Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for updating points with gpuNUFFT #133

Merged
merged 31 commits into from
Jun 26, 2024

Conversation

chaithyagr
Copy link
Member

This handles a part of #132 . Also added tests, which can be extended by @alineyyy to test her use case.
Adding @paquiteau for review. Notice that we need more recent version of gpuNUFFT for it to pass. Tests passing locally for now, but PyPi release is also done, so we can merge ONLY when all tests are green.

cases=CasesTrajectories,
glob="*random*",
)
@parametrize(backend=["gpunufft"])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alineyyy you can add finufft and cufinufft here after you add similar support in it. (Remember to also update points for the grad_plan)

Copy link
Member

@paquiteau paquiteau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe overcharging the setter is a bad idea.

src/mrinufft/operators/base.py Outdated Show resolved Hide resolved
src/mrinufft/operators/interfaces/gpunufft.py Show resolved Hide resolved
tests/case_trajectories.py Show resolved Hide resolved
@chaithyagr
Copy link
Member Author

Adding what we discussed for documenting. We did overcharge the setter as we want to ensure that everything wrt to NUFFT like density compensation update can happen in background when a train function is called.
Also @paquiteau , in future, other trajectory learning can have a projector within the setter function.

@paquiteau paquiteau merged commit 291d903 into mind-inria:master Jun 26, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants