Closed evgueni-ovtchinnikov closed 2 years ago
This error occurs if one tries to forward-project an image that has no corresponding acquisitions in the destination container. Somehow the reconstruction processors give back images that don't match the rawdata they came from.
If you send me the data I will take care of this.
Ok boom. I found the reason. I will document it here in case something similar comes up again.
In addition to the established dimensions of k-space such as slice, phase, repetition, contrast etc. there is the possibility to have user-defined dimensions.
The forward method checks if there are acquisitions in the destination container that match the image that we want to forward project, s.t. the forward projection makes sense. The error is generated if I try to forward-project an image that has no corresponding acquisitions (i.e. I try to forward-project an image that carries slice number 2, but none of the acquisitions has that slice number in its header).
The above file has extra dimensions which are only gibberish (as far as I can tell). However, the forward method still compares them to available acquisitions, hence it fails. The solution is to ignore the extra dimensions for both acquisitions and images.
@johannesmayer running
acquisition_model.py
demo onmeas_MID80_2d_cart_cine_30ph_headcoil_FID17006.h5
(which I got from Christoph a couple of years ago or so) gives this error thrown fromMRAcquisitionModel::fwd
SIRF used to be able to work with this raw data fine.