Closed KrisThielemans closed 7 months ago
By the way, this code looks a bit wasteful
https://github.com/SyneRBI/SIRF/blob/d3956345ec6e56421017a6aca34c73747dbae664/src/xGadgetron/pGadgetron/Gadgetron.py#L526-L527
as out.fill(value)
should work as well and is clearer. On the other hand, that will do the virtually same at the moment (!)
https://github.com/SyneRBI/SIRF/blob/d3956345ec6e56421017a6aca34c73747dbae664/src/xGadgetron/pGadgetron/Gadgetron.py#L407
for reference, the STIR/STIR implementation is here
I don't know what "empty" means, but I guess it is "uninitialised"? @gfardell @paskino ?
It should read allocated but not initialised, i.e. we do not care about the values in it.
Therefore, clone
is a good suggestion.
CIL's doc for allocate says
I don't know what "empty" means, but I guess it is "uninitialised"? @gfardell @paskino ?
None
is supported for STIR, but not for the Gadgetron nor RegI suppose we could just
clone()
? .