Skip to content

Commit

Permalink
Merge pull request #45 from rchristie/rodent
Browse files Browse the repository at this point in the history
Add rat, mouse heart parameters
  • Loading branch information
rchristie authored Mar 14, 2019
2 parents 1219096 + 39bebc4 commit 53317d1
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 4 deletions.
6 changes: 5 additions & 1 deletion scaffoldmaker/meshtypes/meshtype_3d_heart1.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ def getParameterSetNames():
return [
'Default',
'Human 1',
'Mouse 1',
'Pig 1',
'Rat 1',
'Unit Human 1',
'Unit Pig 1']
'Unit Mouse 1',
'Unit Pig 1',
'Unit Rat 1']

@staticmethod
def getDefaultOptions(parameterSetName='Default'):
Expand Down
30 changes: 29 additions & 1 deletion scaffoldmaker/meshtypes/meshtype_3d_heartatria1.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ def getParameterSetNames():
return [
'Default',
'Human 1',
'Mouse 1',
'Pig 1',
'Rat 1',
'Unit Human 1',
'Unit Pig 1']
'Unit Mouse 1',
'Unit Pig 1',
'Unit Rat 1']

@staticmethod
def getDefaultOptions(parameterSetName='Default'):
Expand Down Expand Up @@ -87,6 +91,18 @@ def getDefaultOptions(parameterSetName='Default'):
if 'Human' in parameterSetName:
if 'Unit' not in parameterSetName:
options['Unit scale'] = 80.0
elif 'Mouse' in parameterSetName:
if 'Unit' not in parameterSetName:
options['Unit scale'] = 5.0
options['Number of left pulmonary veins'] = 1
options['Left pulmonary vein angle up degrees'] = 30.0
options['Left pulmonary vein inner diameter'] = 0.16
options['Left pulmonary vein wall thickness'] = 0.011
options['Right pulmonary vein angle up degrees'] = 10.0
options['Right pulmonary vein inner diameter'] = 0.15
options['Right pulmonary vein wall thickness'] = 0.011
options['Superior vena cava inner diameter'] = 0.17
options['Superior vena cava wall thickness'] = 0.012
elif 'Pig' in parameterSetName:
if 'Unit' not in parameterSetName:
options['Unit scale'] = 80.0
Expand All @@ -98,6 +114,18 @@ def getDefaultOptions(parameterSetName='Default'):
options['Right pulmonary vein wall thickness'] = 0.011
options['Inferior vena cava angle left degrees'] = 50.0
options['Superior vena cava angle up degrees'] = 30.0
elif 'Rat' in parameterSetName:
if 'Unit' not in parameterSetName:
options['Unit scale'] = 12.0
options['Number of left pulmonary veins'] = 1
options['Left pulmonary vein angle up degrees'] = 30.0
options['Left pulmonary vein inner diameter'] = 0.16
options['Left pulmonary vein wall thickness'] = 0.011
options['Right pulmonary vein angle up degrees'] = 10.0
options['Right pulmonary vein inner diameter'] = 0.15
options['Right pulmonary vein wall thickness'] = 0.011
options['Superior vena cava inner diameter'] = 0.17
options['Superior vena cava wall thickness'] = 0.012
return options

@staticmethod
Expand Down
17 changes: 16 additions & 1 deletion scaffoldmaker/meshtypes/meshtype_3d_heartventricles1.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ def getParameterSetNames():
return [
'Default',
'Human 1',
'Mouse 1',
'Pig 1',
'Rat 1',
'Unit Human 1',
'Unit Pig 1']
'Unit Mouse 1',
'Unit Pig 1',
'Unit Rat 1']

@staticmethod
def getDefaultOptions(parameterSetName='Default'):
Expand Down Expand Up @@ -70,6 +74,11 @@ def getDefaultOptions(parameterSetName='Default'):
if 'Unit' not in parameterSetName:
options['Unit scale'] = 80.0
options['LV outer height'] = 0.9
elif 'Mouse' in parameterSetName:
if 'Unit' not in parameterSetName:
options['Unit scale'] = 5.0
options['LV apex thickness'] = 0.08
options['RV width'] = 0.35
elif 'Pig' in parameterSetName:
options['Number of elements up LV apex'] = 2
options['Number of elements up RV'] = 3
Expand All @@ -81,6 +90,12 @@ def getDefaultOptions(parameterSetName='Default'):
options['RV inner height fraction'] = 0.65
options['RV width growth factor'] = 0.65
options['Ventricular septum thickness'] = 0.12
elif 'Rat' in parameterSetName:
if 'Unit' not in parameterSetName:
options['Unit scale'] = 12.0
options['LV outer height'] = 0.9
options['LV apex thickness'] = 0.08
options['RV width'] = 0.35
return options

@staticmethod
Expand Down
10 changes: 9 additions & 1 deletion scaffoldmaker/meshtypes/meshtype_3d_heartventriclesbase1.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,13 @@ def getParameterSetNames():
return [
'Default',
'Human 1',
'Mouse 1',
'Pig 1',
'Rat 1',
'Unit Human 1',
'Unit Pig 1']
'Unit Mouse 1',
'Unit Pig 1',
'Unit Rat 1']

@staticmethod
def getDefaultOptions(parameterSetName='Default'):
Expand Down Expand Up @@ -76,8 +80,12 @@ def getDefaultOptions(parameterSetName='Default'):
options['Ventricles translation y'] = -0.2
if 'Human' in parameterSetName:
pass
elif 'Mouse' in parameterSetName:
options['LV outer height'] = 1.0
elif 'Pig' in parameterSetName:
options['RV outlet left incline degrees'] = 10.0
elif 'Rat' in parameterSetName:
pass
return options

@staticmethod
Expand Down

0 comments on commit 53317d1

Please sign in to comment.