Skip to content

Commit

Permalink
ignored noise calibration data in generate_MCIR_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
evgueni-ovtchinnikov committed May 24, 2024
1 parent 9b344b3 commit fd1eba7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/Python/PETMR/generate_MCIR_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def main():
template_PET_im = pet.ImageData(template_PET_raw)

# Get template MR image from template raw
template_MR_raw = mr.AcquisitionData(template_MR_raw_path)
template_MR_raw = mr.AcquisitionData(template_MR_raw_path, False, mr.IgnoreMask())
template_MR_raw.sort_by_time()
template_MR_raw = mr.preprocess_acquisition_data(template_MR_raw)
template_MR_im = simple_mr_recon(template_MR_raw)
Expand Down
8 changes: 6 additions & 2 deletions src/xGadgetron/pGadgetron/Gadgetron.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,8 @@ def __calc_from_acquisitions(self, data, method_name):
raise AssertionError("The handle for data is None. Please pass valid acquisition data.")

dcw = compute_kspace_density(data)

data = data * dcw

if method_name == 'Inati':

try:
Expand All @@ -686,8 +686,12 @@ def __calc_from_acquisitions(self, data, method_name):
self.fill(csm.astype(numpy.complex64))

elif method_name == 'SRSS':

try_calling(pygadgetron.cGT_computeCoilSensitivities(self.handle, data.handle))

else:
raise error('Unknown method %s' % method_name)

def __calc_from_images(self, data, method_name):

if data.handle is None:
Expand Down Expand Up @@ -1708,7 +1712,7 @@ def preprocess_acquisition_data(input_data):
['NoiseAdjustGadget', \
'AsymmetricEchoAdjustROGadget', \
'RemoveROOversamplingGadget'])

def set_grpe_trajectory(ad, traj=None):
'''
Function that fills the trajectory of AcquisitionData with golden angle radial
Expand Down

0 comments on commit fd1eba7

Please sign in to comment.