Skip to content

Commit

Permalink
Update pypet2bids/pypet2bids/ecat2nii.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bendhouseart authored Feb 16, 2024
1 parent f1127f5 commit bdad449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypet2bids/pypet2bids/ecat2nii.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ def ecat2nii(ecat_main_header=None,
randoms.append(0)

ecat_cal_units = main_header['CALIBRATION_UNITS'] # Header field designating whether data has already been calibrated
if ecat_cal_units==0: # Calibrate if it hasn't been already
if ecat_cal_units==1: # Calibrate if it hasn't been already
final_image = img_temp * main_header['ECAT_CALIBRATION_FACTOR']
elif ecat_cal_units==1: # And don't calibrate if it has
else: # And don't calibrate if CALIBRATION_UNITS is anything else but 1
final_image = img_temp

qoffset_x = -1 * (
Expand Down

0 comments on commit bdad449

Please sign in to comment.