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

Unit stomach #213

Merged
merged 6 commits into from
Oct 13, 2022
Merged

Unit stomach #213

merged 6 commits into from
Oct 13, 2022

Conversation

mlin865
Copy link
Contributor

@mlin865 mlin865 commented Oct 5, 2022

Hi Richard,

I've scaled stomach scaffolds for all species to have a geometric central path of 2.0 unit and the scaffolds (material coordinates too) are aligned such that the junction between fundus and body along the central path now sits on the origin. The markers' material coordinates are updated to reflect the changes in alignment of the material coordinates. Unit tests are also updated accordingly. Please review. Thanks

Mabelle

@mlin865
Copy link
Contributor Author

mlin865 commented Oct 7, 2022

Hi Richard,

I've undo the translation of material coordinates and have now translated stomach scaffold for all species such that their fundus-body intersection along their central path align with the corresponding point for material coordinates. Please review. Thanks

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.

Small change as noted.

@@ -1222,11 +1222,12 @@ def createStomachMesh3d(region, fm, coordinates, stomachTermsAlong, allAnnotatio
elementsThroughEsophagusWall = GEJSettings['Number of elements through wall']
ostiumDiameter = GEJSettings['Ostium diameter']
limitingRidge = options['Limiting ridge']
wallThickness = options['Wall thickness'] * GEJSettings['Unit scale']
Copy link
Member

Choose a reason for hiding this comment

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

It's unexpected that the wall thickness is multiplied by the unit scale of the GEJ. I suggest having the actual thickness in unit scale for the wall thickness, and dividing by GEJSettings['Unit scale'] when transferring to the GEJ in updateSubScaffoldOptions.
I hadn't thought about the GEJ options all needing rescalin , sorry. I think it's OK if they keep their custom unit scale (as you've done) as long as the parent wall thickness is independent as above.
(Also, in hindsight I would have aligned not just the fundus-body junction on the central path, but also it's direction at that point. Not asking you to do this as we've bigger fish to fry.)

@mlin865
Copy link
Contributor Author

mlin865 commented Oct 10, 2022

Change made, please review. Thanks

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.

Great.

@rchristie rchristie merged commit 9a041af into ABI-Software:main Oct 13, 2022
@mlin865 mlin865 deleted the unitStomach branch October 13, 2022 22:58
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