From bdad449e9ef69b0a3e762afb6e48e6f49a3834d6 Mon Sep 17 00:00:00 2001 From: Anthony Galassi <28850131+bendhouseart@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:52:59 -0500 Subject: [PATCH] Update pypet2bids/pypet2bids/ecat2nii.py --- pypet2bids/pypet2bids/ecat2nii.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pypet2bids/pypet2bids/ecat2nii.py b/pypet2bids/pypet2bids/ecat2nii.py index ed834c8f..e9e3d792 100644 --- a/pypet2bids/pypet2bids/ecat2nii.py +++ b/pypet2bids/pypet2bids/ecat2nii.py @@ -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 * (