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

Add sub-scaffolds #47

Merged
merged 14 commits into from
Apr 9, 2019
Merged

Add sub-scaffolds #47

merged 14 commits into from
Apr 9, 2019

Conversation

rchristie
Copy link
Member

Add colon central line sub-scaffold.

coordinates.setNodeParameters(cache, -1, Node.VALUE_LABEL_D_DS1, 1, dx_ds1)
nodeIdentifier = nodeIdentifier + 1

# create elements
Copy link
Contributor

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

Copy link
Contributor

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)
Copy link
Contributor

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?

and (self._meshEdits == other._meshEdits)
return NotImplemented

def __ne__(self, other):
Copy link
Contributor

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)
Copy link
Contributor

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

Copy link
Contributor

@hsorby hsorby left a 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.

@rchristie rchristie merged commit c7f1a98 into ABI-Software:master Apr 9, 2019
@rchristie rchristie deleted the package branch May 15, 2019 21:32
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.

3 participants