Skip to content

Commit

Permalink
Update Registration.py
Browse files Browse the repository at this point in the history
Check for path
  • Loading branch information
MarkGardnerUSyd committed Aug 15, 2024
1 parent 3e7606b commit 3b489ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CBCTCardiacSegmentation/Registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3b489ae

Please sign in to comment.