Fix:missing-t_ktraj-return-from-calculate_kspace#282
Fix:missing-t_ktraj-return-from-calculate_kspace#282Nikbert wants to merge 3 commits intoimr-framework:masterfrom
Conversation
|
As far as I can see, the Matlab example sequences usually use the There is also (an old?) So in my opinion we should keep some consistency and either leave the Python function as it is or adjust it to match the Matlab |
|
I ran into this when I reimplemented One non-breaking option is to add a |
|
I think your suggestions makes sense. |
|
|
|
OK, then we can not mirror Pulseq calculateKspacePP. I think Franks suggestion sounds like a good solution. I think everyone that wants to match k-space data from a Skope fieldcam to the nominal trajectory would highly appreciate this change. I do not know how to alter this pull request accordingly. Frank can you help me? |
|
If we are going to introduce a breaking change with an option to roll back via a |
|
I don't think it makes sense to have the rollback option not set as a default, because then it would still break old code unless the new parameter is set. With it set to default we can give a deprecation warning. If we break things, I agree that returning a To be clear, I'm not opposed to a breaking change, because even when we deprecate the current result values, at some point the breaking change needs to happen anyway. But this is something that would need to be documented. And a user should not get a "too many values to unpack" error without any indication why. |
This adds t_ktraj to the return values of calculate_kspace, to make it consistent with the Matlab Pulseq Version.
t_ktraj is very handy when comparing measured and nominal trajectories.
All the Best