Skip to content

Commit

Permalink
Update matlab/ecat2nii.m uncomment commented out catch
Browse files Browse the repository at this point in the history
  • Loading branch information
bendhouseart authored May 9, 2024
1 parent 2392575 commit 6dd9a78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions matlab/ecat2nii.m
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,9 @@
% niftiwrite(img_temp,FileListOut{j},info,'Endian','little','Compressed',false);
% end

%catch conversionerr
% FileListOut{j} = sprintf('%s failed to convert:%s',FileListIn{j},conversionerr.message, conversionerr.stack.line);
%end
catch conversionerr
FileListOut{j} = sprintf('%s failed to convert:%s',FileListIn{j},conversionerr.message, conversionerr.stack.line);
end

if exist('newfile','var') % i.e. decompresed .nii.gz
delete(newfile{1});
Expand Down

0 comments on commit 6dd9a78

Please sign in to comment.