Skip to content

Conversation

@schuenke
Copy link
Collaborator

As discussed in #129 with @FrankZijlstra and @btasdelen and many other issues/slack chats etc., the current value for the floating point precision np.finfo(np.float64).eps is only valid at the exact value of 1.0. However, we ofen store larger values (we decided 1e6 is a reasonable upper limit for times, grad/rf amplitudes etc), leading to way worse precisions.

I added a comment describing how we pick the new value of eps = 1e-9 now and left the full calculation. Maybe one of both can be removed, but IMO you can never have to much documentation 😄

In the future, we might want to define different eps values for times, gradients, rf pulses etc, but I think this value should actually cover everything without beeing to inaccurate.

@btasdelen btasdelen merged commit 25938e8 into dev Aug 23, 2024
@schuenke schuenke deleted the eps_value branch November 1, 2024 07:36
@schuenke schuenke mentioned this pull request Mar 21, 2025
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.

3 participants