-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add sub-scaffolds #47
Conversation
Add several default, arbitrary colon central paths.
coordinates.setNodeParameters(cache, -1, Node.VALUE_LABEL_D_DS1, 1, dx_ds1) | ||
nodeIdentifier = nodeIdentifier + 1 | ||
|
||
# create elements |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insert ########## above and below #Create elements for consistent style
from scaffoldmaker.utils.matrix import * | ||
from scaffoldmaker.utils.meshrefinement import MeshRefinement | ||
from scaffoldmaker.utils.tubemesh import * | ||
from scaffoldmaker.utils.zinc_utils import exnodeStringFromNodeValues | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra line
return optionNames | ||
|
||
def checkOptions(options): | ||
MeshType_3d_haustra1.checkOptions(options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this deleted? Are options for MeshTyle_3d_haustra1 checked elsewhere?
scaffoldmaker/scaffoldpackage.py
Outdated
and (self._meshEdits == other._meshEdits) | ||
return NotImplemented | ||
|
||
def __ne__(self, other): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insert function description
coordinates.setComponentName(1, 'x') | ||
coordinates.setComponentName(2, 'y') | ||
coordinates.setComponentName(3, 'z') | ||
coordinates = getOrCreateCoordinateField(fm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make same changes to meshtype_3d_boxhole1.py, meshtyple_3d_sphereshellseptum1.py, meshtype_3d_stomachhuman1.py, meshtype_3d_tube1.py, meshtype_3d_tubeseptum1.py
Plus other minor fixes from code review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of:
from scaffoldmaker.utils.zinc_utils import *
is generally frowned upon and discouraged with PEP8. Imports should be explicitly done.
Put eft_utils functions in alphabetical order. Move an unrelated function.
Add ScaffoldPackage.getMeshEdits.
Add colon central line sub-scaffold.