Closed paskino closed 3 years ago
As explained multiple times elsewhere, the provided "templates" contain no data (they are a template only!). Therefore, you cannot load them in memory.
I don't know how to resolve this confusion satisfactorily, but it is strictly not a bug in my opinion (but I might be the only one).
Unrelated to this remark, but certainly related regarding confusion is #716
:D
To me it doesn't make sense that I cannot load a template in memory, it's just metadata. But on the other hand I have no idea of how this is implemented.
I personally don't like that the AcquisitionData
class may not have data and still be called AcquisitionData
.
Swapping pet.AcquisitionData.set_storage_scheme('memory')
with data = data.get_uniform_copy(0)
does the trick.
To me it doesn't make sense that I cannot load a template in memory, it's just metadata
agreed, but as we have no AcquisitionDataTemplate
class, or AcquisitionDataInfo
, this is our work-around.
It would make sense to have that (for STIR, it'd have to contain stir::ExamInfo
and stir::ProjDataInfo
). I don't know if it's possible for ISMRMRD data.
Do I see a volunteer?
Do you see a volunteer? I don't :D
I am not sure this is meant or a bug but running the following fails. In practice it seems that we cannot load the
AcquisitionData
template in memory.