Skip to content

Commit

Permalink
Fix missing plugins (#458)
Browse files Browse the repository at this point in the history
* fix missing plugins

* fix missing plugin again
  • Loading branch information
fredroy authored Sep 25, 2024
1 parent c416793 commit 39cc454
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/Sofa/tests/Core/BaseData.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ def t(c):
self.assertRaises(ValueError, (lambda c: t(c)), color)

def test_DataAsContainerNumpyArray_testIsDirtyOnDoubleAccess_(self):
SofaRuntime.importPlugin("Sofa.Component.Topology.Container.Dynamic")

root = create_scene("rootNode")

root.addObject("PointSetTopologyContainer", points=[[0, 0, 0], [1, 0, 0]])
Expand Down
2 changes: 2 additions & 0 deletions bindings/Sofa/tests/Core/BaseMeshTopology.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def test_regular_grid_hexas(self):

def test_regular_grid_tetra(self):
SofaRuntime.importPlugin("Sofa.Component.Topology.Container.Grid")
SofaRuntime.importPlugin("Sofa.Component.Topology.Container.Constant")
SofaRuntime.importPlugin("Sofa.Component.Topology.Container.Dynamic")
SofaRuntime.importPlugin("Sofa.Component.Topology.Mapping")

root = Sofa.Core.Node("rootNode")
Expand Down
1 change: 1 addition & 0 deletions bindings/Sofa/tests/Core/BaseObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
def create_scene(rootName="root"):
root = Sofa.Core.Node(rootName)
root.addObject("RequiredPlugin", name="Sofa.Component.StateContainer")
root.addObject("RequiredPlugin", name="Sofa.Component.Topology.Container.Constant")
return root

class Test(unittest.TestCase):
Expand Down
1 change: 1 addition & 0 deletions bindings/Sofa/tests/Core/Mass.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def simulate_beam(linear_solver_template):
root.addObject('RequiredPlugin', name='Sofa.Component.Constraint.Projective')
root.addObject('RequiredPlugin', name='Sofa.Component.SolidMechanics.FEM.Elastic')
root.addObject('RequiredPlugin', name='Sofa.Component.Mass')
root.addObject('RequiredPlugin', name='Sofa.Component.Topology.Container.Grid')

root.addObject('EulerImplicitSolver', rayleighStiffness="0.1", rayleighMass="0.1")
root.addObject('SparseLDLSolver', applyPermutation="false", template=linear_solver_template)
Expand Down

0 comments on commit 39cc454

Please sign in to comment.