Closed KrisThielemans closed 3 years ago
preprocessed_data.sort()
needs to be added after
preprocessed_data = mr.preprocess_acquisition_data(mr_acq)
Thanks, that looks like the reason, @ckolbPTB . I will modify the C++
layer s.t. when it reads in the data it automatically sorts them by time, s.t. actually we never need to call the sort()
method from Python
again. It does not do anything anymore anyway.
@evgueni-ovtchinnikov any reason why not to call sort
automatically? I'm assuming that the overhead is low?
Ah I just saw, that this is not the problem, (as @ckolbPTB actually said), but the return value of the preprocess_acquisition_data()
method is not sorted.
ok. The question is what is the best: let it sort it on time automatically, or let the user do it, or let the CSM stuff call sort
. Up to the MR experts...
Ok, so I proposed a solution in PR #950 (there are now more PR's than issues :dancing_men: ). Feel free to tell me to modify it there in the PR 👍
When my SIRF is compiled with ISMRMR 1.4.1, running
SIRF-Exercises/Introductory/acquisition_model_mr_pet_ct.ipynb
gaveThis gives me an error
@ckolbPTB do you see this as well?