Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion niftypet/nipet/img/mmrimg.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def hdr_mu(datain, Cnt):
else:
raise NameError('no DICOM or DICOM filed <CSA Series Header Info> found!')
if os.path.isfile(dcmf):
dhdr = dcm.read_file(dcmf)
dhdr = dcm.dcmread(dcmf)
else:
log.error('DICOM mMR mu-maps are not valid files!')
return None
Expand Down
12 changes: 6 additions & 6 deletions niftypet/nipet/mmraux.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def fwhm2sig(fwhm):
def lm_pos(datain, Cnt):
'''get the position of table and gantry offset from the DICOM list-mode file'''
if 'lm_dcm' in datain and os.path.isfile(datain['lm_dcm']):
dhdr = dcm.read_file(datain['lm_dcm'])
dhdr = dcm.dcmread(datain['lm_dcm'])
elif 'lm_ima' in datain and os.path.isfile(datain['lm_ima']):
dhdr = dcm.read_file(datain['lm_ima'])
dhdr = dcm.dcmread(datain['lm_ima'])
else:
log.error('DICOM list-mode data not found!')
return None
Expand Down Expand Up @@ -91,9 +91,9 @@ def lm_pos(datain, Cnt):
def hdr_lm(datain, Cnt):
'''Get the headers from DICOM list-mode data file'''
if 'lm_dcm' in datain and os.path.isfile(datain['lm_dcm']):
dhdr = dcm.read_file(datain['lm_dcm'])
dhdr = dcm.dcmread(datain['lm_dcm'])
elif 'lm_ima' in datain and os.path.isfile(datain['lm_ima']):
dhdr = dcm.read_file(datain['lm_ima'])
dhdr = dcm.dcmread(datain['lm_ima'])
else:
log.error('DICOM list-mode data not found!')
return None
Expand Down Expand Up @@ -226,9 +226,9 @@ def hmu_resample0(hmupos, parts, Cnt):

def time_diff_norm_acq(datain):
if 'lm_dcm' in datain and os.path.isfile(datain['lm_dcm']):
dcm_lm = dcm.read_file(datain['lm_dcm'])
dcm_lm = dcm.dcmread(datain['lm_dcm'])
elif 'lm_ima' in datain and os.path.isfile(datain['lm_ima']):
dcm_lm = dcm.read_file(datain['lm_ima'])
dcm_lm = dcm.dcmread(datain['lm_ima'])
else:
log.error('dicom header of list-mode data does not exist.')
return None
Expand Down
2 changes: 1 addition & 1 deletion niftypet/nipet/mmrnorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_components(datain, Cnt):
# possible DICOM locations for the Interfile header
nhdr_locations = [[0x29, 0x1010], [0x29, 0x1110]]
# read the DICOM file
d = dcm.read_file(fnrm_hdr)
d = dcm.dcmread(fnrm_hdr)

# if d[0x0018, 0x1020].value == 'syngo MR B20P' or d[0x0018, 0x1020].value == 'syngo MR E11':
# nhdr = d[0x29,0x1010].value.decode()
Expand Down