Closed johannesmayer closed 1 year ago
false
for all acquisitions will solve this problem
@johannesmayer ... and will create problems elsewhere (as_array
, fill
, norm
, dot
, ...)
Better try your steps with these lines in MRAcquisitionData::read
commented out:
if( TO_BE_IGNORED(acq) )
continue;
else
Thanks, good point @evgueni-ovtchinnikov. For my tests I did as you suggested.
I checked again and I ran the following reconstruction (using the "old" Gadgetron commit that's used in the current Superbuild)
preprocessed_data = preprocess_acquisition_data(acq_data)
# Perform reconstruction of the preprocessed data.
# 1. set the reconstruction to be for Cartesian GRAPPA data.
recon_gadgets = ['AcquisitionAccumulateTriggerGadget',
'BucketToBufferGadget',
'GenericReconCartesianReferencePrepGadget',
'GRAPPA:GenericReconCartesianGrappaGadget',
'GenericReconFieldOfViewAdjustmentGadget',
'GenericReconImageArrayScalingGadget',
'ImageArraySplitGadget',
'PhysioInterpolationGadget(phases=30, mode=0, first_beat_on_trigger=true, interp_method=BSpline)']
recon = Reconstructor(recon_gadgets)
recon.set_gadget_property('GRAPPA', 'send_out_gfactor', True)
# 2. set the reconstruction input to be the data we just preprocessed.
recon.set_input(preprocessed_data)
# 3. run (i.e. 'process') the reconstruction.
print('---\n reconstructing...\n')
recon.process()
# retrieve reconstruced image and G-factor data
image_data = recon.get_output('Image PhysioInterp')
image_data = image_data.abs()
image_data.write("output.dcm")
Left: reconstruction including the TO_BE_IGNORED
in the read function, right without it. So it seems not to be just about the client.
@johannesmayer so I understand removing those 3 lines fixed the issue? If so, could you please create a PR, and if GHA builds succeed merge it - or I could do it if you are busy.
see PR #1161
taken care of by #1174, closing...
I encountered a problem executing the following steps:
gadgetron_ismrmrd_client
on that file to reconstructall reconstructions yield zeros.
I have found the solution: https://github.com/SyneRBI/SIRF/blob/93f280fbfc95f914642d1a532a65882d83938eb5/src/xGadgetron/cGadgetron/include/sirf/Gadgetron/gadgetron_data_containers.h#L62
to
false
for all acquisitions will solve this problem.