From 9a99d912a78c7c2592f3e5193950ac7f51f3af13 Mon Sep 17 00:00:00 2001 From: fishpm Date: Wed, 8 Jan 2025 10:51:39 +0100 Subject: [PATCH 1/2] rescaling factor no longer written to .txt file Commented two lines so that ecat2nii no longer tries to write rescaling factor to .txt file --- matlab/ecat2nii.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/ecat2nii.m b/matlab/ecat2nii.m index 52b54e4..34577c7 100644 --- a/matlab/ecat2nii.m +++ b/matlab/ecat2nii.m @@ -212,11 +212,11 @@ end % save scaling factor to file located at ecat_save_steps_dir/8.5_sca_matlab.txt - fid = fopen([ecat_save_steps_dir filesep '8.5_sca_matlab.txt'],'w'); + % fid = fopen([ecat_save_steps_dir filesep '8.5_sca_matlab.txt'],'w'); fprintf(fid,'Scaling factor: %10e\n',Sca); x = mh.ecat_calibration_factor * Sca; fprintf(fid,'Scaling factor * ECAT Cal Factor: %10.10f\n',x); - fclose(fid); + % fclose(fid); end % save debugging step 8 - rescale to 16 bits From 268cfea427d4d238dd9e7a1d52da9c4f0ce01201 Mon Sep 17 00:00:00 2001 From: Anthony Galassi <28850131+bendhouseart@users.noreply.github.com> Date: Wed, 24 Sep 2025 10:02:47 -0400 Subject: [PATCH 2/2] Update matlab/ecat2nii.m Deleting whitespace to kick of CI again. --- matlab/ecat2nii.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/ecat2nii.m b/matlab/ecat2nii.m index cdf2cbe..5f9bde9 100644 --- a/matlab/ecat2nii.m +++ b/matlab/ecat2nii.m @@ -219,7 +219,7 @@ fprintf(fid,'Scaling factor: %10e\n',Sca); x = mh.ecat_calibration_factor * Sca; - fprintf(fid,'Scaling factor * ECAT Cal Factor: %10.10f\n',x); + fprintf(fid,'Scaling factor * ECAT Cal Factor: %10.10f\n',x); end