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

Pig colon #55

Merged
merged 2 commits into from
Jul 6, 2019
Merged

Pig colon #55

merged 2 commits into from
Jul 6, 2019

Conversation

mlin865
Copy link
Contributor

@mlin865 mlin865 commented Jul 5, 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 comments to read for future reference / or fix later.


assert tcCount == 3, 'getColonSegmentInnerPointsTeniaColi Only implemented for 3 tenia coli'
Copy link
Member

Choose a reason for hiding this comment

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

Should still assert tcCount in [ 2, 3 ]

d1 = d2 = d3 = [dTC, 0.0, 0.0]
nx = [v1, v2, v3]
nd1 = [d1, d2, d3]
sx, _, _, _, _ = interp.sampleCubicHermiteCurves(nx, nd1, elementsCountAroundTC)
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, it's generally better to change this to:
sx = interp.sampleCubicHermiteCurves(nx, nd1, elementsCountAroundTC)[0]
This allows individual values to be picked out, and is immune to changes in functions returning more values.
Use _ for in-between return values.

@rchristie rchristie merged commit 82d8e93 into ABI-Software:master Jul 6, 2019
@mlin865 mlin865 deleted the pigColon branch July 6, 2019 09:52
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