From 3b489aec30433f447102ab706efa2acf1a020a68 Mon Sep 17 00:00:00 2001 From: Mark Gardner Date: Thu, 15 Aug 2024 14:04:21 +1000 Subject: [PATCH] Update Registration.py Check for path --- CBCTCardiacSegmentation/Registration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/CBCTCardiacSegmentation/Registration.py b/CBCTCardiacSegmentation/Registration.py index bb02d4e..edec23b 100644 --- a/CBCTCardiacSegmentation/Registration.py +++ b/CBCTCardiacSegmentation/Registration.py @@ -28,6 +28,7 @@ def __init__(self, RegOutputDir='', ParamDir='', RigidParamFile='', NonRigidPara if platform.system() == 'Linux': assert not(not ElastixDir),'Directory to elastix bin/lib files needs to be added for linux' + assert Path(os.path.join(ElastixDir,'bin','elastix.exe')).exists(), 'Elastix Cannot be found at {}'.format(os.path.join(ElastixDir,'bin','elastix.exe')) self.ElastixDir = ElastixDir