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

Mouse colon #54

Merged
merged 18 commits into from
Jul 2, 2019
Merged

Mouse colon #54

merged 18 commits into from
Jul 2, 2019

Conversation

mlin865
Copy link
Contributor

@mlin865 mlin865 commented Jun 27, 2019

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.

Some minor changes before pulling in.

meshrefinement.refineAllElementsCubeStandard3d(refineElementsCountAround, refineElementsCountAlong, refineElementsCountThroughWall)
return meshrefinement.getAnnotationGroups()

def getColonSegmentInnerPoints0TC(region, elementsCountAroundMZ, elementsCountAroundNonMZ, elementsCountAlongSegment,
Copy link
Member

Choose a reason for hiding this comment

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

Name wasn't immediately obvious, rename:
0TC -> NoTeniaColi, or SimpleMesentery?


@classmethod
def getOptionValidScaffoldTypes(cls, optionName):
if optionName == 'Central path':
return [ MeshType_1d_path1 ]
if optionName == 'Segment profile':
return[ MeshType_3d_colonsegmentsimplemesentery1,
Copy link
Member

Choose a reason for hiding this comment

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

Minor. Insert space after return.

haustrumInnerRadiusFactor = options['Haustrum inner radius factor']
haustrumLengthEndDerivativeFactor = options['Haustrum length end derivative factor']
haustrumLengthMidDerivativeFactor = options['Haustrum length mid derivative factor']
widthTC = options['Tenia coli width']
Copy link
Member

Choose a reason for hiding this comment

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

Make consistent with other variables, where width, thickness is last, also with naming conventions I use in heart (including variables starting with lower case, types with upper case):
tcWidth
tcThickness

surface along mid-length of segment.
:return coordinates, derivatives on inner surface of a colon segment.
"""
MZGroup = AnnotationGroup(region, 'mesenteric zone', FMANumber = 'FMANumber unknown', lyphID = 'Lyph ID unknown')
Copy link
Member

Choose a reason for hiding this comment

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

Use standard of variables starting with lower case.

@@ -195,17 +205,17 @@ def generateMesh(cls, region, options):
meshrefinement.refineAllElementsCubeStandard3d(refineElementsCountAround, refineElementsCountAlong, refineElementsCountThroughWall)
return meshrefinement.getAnnotationGroups()

def getColonHaustraSegmentInnerPoints(elementsCountAroundTC, elementsCountAroundHaustrum, elementsCountAlongHaustrum, widthTC, radius,
cornerInnerRadiusFactor, haustrumInnerRadiusFactor, haustrumLengthEndDerivativeFactor, haustrumLengthMidDerivativeFactor, haustrumLength):
def getColonSegmentInnerPoints3TC(region, elementsCountAroundTC, elementsCountAroundHaustrum, elementsCountAlongSegment, widthTC, radius,
Copy link
Member

Choose a reason for hiding this comment

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

3TeniaColi, or is it going to take number of tenia coli as an argument once you do pig? Can always:

  • assert teniaColiCount == 3, 'function name Only implemented for 3 tenia coli'
  • @mlin865
    Copy link
    Contributor Author

    mlin865 commented Jul 1, 2019

    Changes made as requested.

    @rchristie rchristie merged commit 212caff into ABI-Software:master Jul 2, 2019
    @mlin865 mlin865 deleted the mouseColon branch July 2, 2019 03:21
    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