From f8777ae3f34b186f3a0ab6fcfb44911e2d367724 Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Fri, 11 Oct 2024 09:43:14 +0900 Subject: [PATCH 1/2] fix unit tests due to missing plugin --- bindings/Sofa/tests/Core/BaseLink.py | 1 + bindings/Sofa/tests/Simulation/Node.py | 1 + 2 files changed, 2 insertions(+) diff --git a/bindings/Sofa/tests/Core/BaseLink.py b/bindings/Sofa/tests/Core/BaseLink.py index 5ced9c14..fcdeb8e1 100644 --- a/bindings/Sofa/tests/Core/BaseLink.py +++ b/bindings/Sofa/tests/Core/BaseLink.py @@ -8,6 +8,7 @@ def create_scene(rootName="root"): root = Sofa.Core.Node(rootName) root.addObject("RequiredPlugin", name="Sofa.Component.StateContainer") root.addObject("RequiredPlugin", name="Sofa.Component.SolidMechanics.Spring") + root.addObject("RequiredPlugin", name="Sofa.Component.Mapping.Linear") return root class Test(unittest.TestCase): diff --git a/bindings/Sofa/tests/Simulation/Node.py b/bindings/Sofa/tests/Simulation/Node.py index 6388b501..f0cc5b35 100644 --- a/bindings/Sofa/tests/Simulation/Node.py +++ b/bindings/Sofa/tests/Simulation/Node.py @@ -285,6 +285,7 @@ def test_getMechanicalState(self): def test_getMechanicalMapping(self): root = Sofa.Core.Node("root") root.addObject("RequiredPlugin", name="Sofa.Component.StateContainer") + root.addObject("RequiredPlugin", name="Sofa.Component.Mapping.Linear") root.addObject("MechanicalObject", name="t1") root.addObject("MechanicalObject", name="t2") mm = root.addObject("BarycentricMapping", input="@/t1", output="@/t2") From d5ae31a5c2b4e915c9a7b951478331b936a8166c Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Fri, 11 Oct 2024 10:35:59 +0900 Subject: [PATCH 2/2] fix python unit test due to missing plugin --- bindings/Modules/tests/SofaConstraintSolver/matrix_access.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/Modules/tests/SofaConstraintSolver/matrix_access.py b/bindings/Modules/tests/SofaConstraintSolver/matrix_access.py index 1a8dacdc..e9fb3d11 100644 --- a/bindings/Modules/tests/SofaConstraintSolver/matrix_access.py +++ b/bindings/Modules/tests/SofaConstraintSolver/matrix_access.py @@ -15,6 +15,7 @@ def simulate_pendulum(self): "Sofa.Component.Constraint.Projective", "Sofa.Component.IO.Mesh", "Sofa.Component.LinearSolver.Direct", + "Sofa.Component.Mapping.NonLinear", "Sofa.Component.Mapping.MappedMatrix", "Sofa.Component.Mass", "Sofa.Component.ODESolver.Backward",