Mutability of AcquisitionHeader #49
Replies: 2 comments 8 replies
-
Have you tried changing and looked if the tests are passing? I don’t see a reason right now why it would not work. |
Beta Was this translation helpful? Give feedback.
-
Ok, I found the reason, why I made it this way. The reason is that we need to exactly replicate the memory layout when writing it to the HDF5 file. I just tried making it mutable and that failed. So I think we definitely should make it mutable for allowing the use case of changing data. But we need a workaround for writing. In the worst case we can have the same type twice and simply convert from the mutable into the immutable variant. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
Just wanted to start a small discussion as I am questioning why the AcquisitionHeader is immutable.
In our use case of MRIReco.jl, we are using it for reconstruction of non-cartesian data acquired from Siemens and Philips scanners. We convert the raw data to ISMRMRD in order to use MRIReco.jl, however during the conversion there are some header parameters which are set arbitrarily and need to be adjusted post-conversion (this is especially true for spiral acquisitions). I do this by locally editing my MRIReco.jl code currently, but would like to avoid this in the future.
If the conversion from raw data to ISMRMRD was precise and specific, I would understand the need for the headers to be immutable, however given that the conversion can introduce arbitrary header parameters itself, I think it would be useful to make the AcquisitionHeader mutable until we have a more robust raw data conversion tool.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions