Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stomach layers #168

Merged
merged 23 commits into from
Nov 13, 2021
Merged

Stomach layers #168

merged 23 commits into from
Nov 13, 2021

Conversation

mlin865
Copy link
Contributor

@mlin865 mlin865 commented Nov 8, 2021

No description provided.

Copy link
Member

@rchristie rchristie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great.
Only one real issue: The Ostium is not working as expect for me (creating it on its own). If I set more than one layer through the wall of the ostium or vessels, it multiplies the wall thickness. Expected behaviour is for the overall thickness to be as specified, but for the relative thicknesses to proportionately distribute layer thicknesses from the overall thickness.
Everything else is mainly questions, some comments in code, plus:
The rat stomach has gaps in the 'mucosa of stomach' between esophagogastric junction and body. Check that is as expected.

@@ -82,10 +82,11 @@ def test_cecum1(self):
fieldcache = fieldmodule.createFieldcache()
result, surfaceArea = surfaceAreaField.evaluateReal(fieldcache, 1)
self.assertEqual(result, RESULT_OK)
self.assertAlmostEqual(surfaceArea, 65959.34314511667, delta=1.0E-6)
self.assertAlmostEqual(surfaceArea, 65960.20655074248, delta=1.0E-6)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future reference, I suggest these deltas be made larger e.g. 1.0E-3 here (or barely more than single precision differences of 7-8 sig figs i.e. the value / 1E7 or 1E8); since these are integrals over the mesh errors build up and each OS/compiler will give slightly different results - anticipating the testing being actually run on different systems.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted.

@@ -74,12 +74,12 @@ def getDefaultOptions(parameterSetName='Default'):
'Start tenia coli width derivative': 0.0,
'End tenia coli width': 10.0,
'End tenia coli width derivative': 0.0,
'Tenia coli thickness': 1.6,
'Tenia coli thickness': 0.6,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please check whether these colon parameters are meant to change here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes the tenia coli thickness has been updated to match the measurements of human colons (recent data from Simon Brookes)

@mlin865
Copy link
Contributor Author

mlin865 commented Nov 12, 2021

I have fixed the issue with ostium and I confirm there is a gap in the mucosa around the esophagus for rat stomach.

@rchristie rchristie merged commit f5eacc0 into ABI-Software:main Nov 13, 2021
@mlin865 mlin865 deleted the stomachLayers branch November 14, 2021 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants