Skip to content

Commit

Permalink
Merge pull request #162 from rchristie/utilsfix
Browse files Browse the repository at this point in the history
opencmiss.maths fixes
  • Loading branch information
rchristie authored Oct 26, 2021
2 parents 770335b + 5bf3be0 commit 13d22c0
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ def readfile(filename, split=False):
# into the 'requirements.txt' file.
requires = [
# minimal requirements listing
"opencmiss.maths",
"opencmiss.utils >= 0.3",
"opencmiss.zinc", # not yet on pypi - need manual install from opencmiss.org
"opencmiss.zinc >= 3.5",
"scipy",
"numpy",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from __future__ import division
from math import cos, radians, sin, sqrt
from opencmiss.utils.maths.vectorops import add, cross, magnitude, mult, normalize, sub
from opencmiss.maths.vectorops import add, cross, magnitude, mult, normalize, sub
from opencmiss.utils.zinc.field import findOrCreateFieldCoordinates, findOrCreateFieldFiniteElement
from opencmiss.zinc.element import Element, Elementbasis
from opencmiss.utils.zinc.general import ChangeManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from __future__ import division
import math
from opencmiss.utils.maths.vectorops import cross, mult, normalize, sub
from opencmiss.maths.vectorops import cross, mult, normalize, sub
from opencmiss.utils.zinc.field import findOrCreateFieldCoordinates
from opencmiss.zinc.field import Field
from opencmiss.zinc.node import Node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from __future__ import division
import math
from opencmiss.utils.maths.vectorops import cross, mult, normalize, sub
from opencmiss.maths.vectorops import cross, mult, normalize, sub
from opencmiss.utils.zinc.field import findOrCreateFieldCoordinates
from opencmiss.zinc.field import Field
from opencmiss.zinc.node import Node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from __future__ import division
import math
from opencmiss.utils.maths.vectorops import eulerToRotationMatrix3
from opencmiss.maths.vectorops import eulerToRotationMatrix3
from opencmiss.utils.zinc.field import findOrCreateFieldCoordinates
from opencmiss.utils.zinc.finiteelement import getMaximumElementIdentifier, getMaximumNodeIdentifier
from opencmiss.utils.zinc.general import ChangeManager
Expand Down
2 changes: 1 addition & 1 deletion src/scaffoldmaker/scaffoldpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import math
from opencmiss.utils.zinc.field import createFieldEulerAnglesRotationMatrix
from opencmiss.utils.zinc.general import ChangeManager
from opencmiss.utils.maths.vectorops import euler_to_rotation_matrix
from opencmiss.maths.vectorops import euler_to_rotation_matrix
from scaffoldmaker.annotation.annotationgroup import AnnotationGroup, findAnnotationGroupByName
from scaffoldmaker.meshtypes.scaffold_base import Scaffold_base

Expand Down
2 changes: 1 addition & 1 deletion src/scaffoldmaker/utils/bifurcation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

from __future__ import division
from opencmiss.utils.maths.vectorops import add, cross, dot, magnitude, mult, normalize, sub
from opencmiss.maths.vectorops import add, cross, dot, magnitude, mult, normalize, sub
from opencmiss.zinc.element import Element, Elementbasis
from opencmiss.zinc.field import Field
from opencmiss.zinc.node import Node
Expand Down
2 changes: 1 addition & 1 deletion src/scaffoldmaker/utils/derivativemoothing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'''
from __future__ import division
import math
from opencmiss.utils.maths.vectorops import add, magnitude
from opencmiss.maths.vectorops import add, magnitude
from opencmiss.utils.zinc.field import findOrCreateFieldGroup
from opencmiss.utils.zinc.general import ChangeManager
from opencmiss.zinc.element import Element, Elementbasis
Expand Down
2 changes: 1 addition & 1 deletion tests/test_general.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from opencmiss.utils.maths.vectorops import magnitude
from opencmiss.maths.vectorops import magnitude
from opencmiss.utils.zinc.finiteelement import evaluateFieldNodesetRange, findNodeWithName
from opencmiss.zinc.context import Context
from opencmiss.zinc.field import Field
Expand Down

0 comments on commit 13d22c0

Please sign in to comment.