Skip to content

Commit 66fb1ac

Browse files
authored
[Bindings] Fix compilation (#117)
* follow deletion of link functions * fix compilation for (future) pr * remove tests using deleted functions * fix again with the sofa master
1 parent 988336e commit 66fb1ac

File tree

7 files changed

+6
-4
lines changed

7 files changed

+6
-4
lines changed

Plugin/src/SofaPython3/PythonTestExtractor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <SofaPython3/PythonTestExtractor.h>
2222
#include <SofaPython3/PythonEnvironment.h>
2323

24+
#include <sofa/helper/logging/Messaging.h>
2425
#include <sofa/helper/system/FileSystem.h>
2526
#include <sofa/helper/StringUtils.h>
2627
#include <sofa/helper/system/SetDirectory.h>

bindings/Modules/tests/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <SofaPython3/PythonTestExtractor.h>
2323
#include <sofa/helper/Utils.h>
2424

25+
#include <sofa/helper/logging/Messaging.h>
2526
#include <sofa/core/logging/PerComponentLoggingMessageHandler.h>
2627

2728

bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_BaseLink.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,8 @@ void moduleAddBaseLink(py::module& m)
8484
link.def("getHelp", &BaseLink::getHelp, sofapython3::doc::baseLink::getHelp);
8585
link.def("setHelp", setHelp, sofapython3::doc::baseLink::setHelp);
8686

87-
link.def("getOwnerData", &BaseLink::getOwnerData, sofapython3::doc::baseLink::getOwnerData);
8887
link.def("getOwnerBase", getOwnerBase, sofapython3::doc::baseLink::getOwnerBase);
8988

90-
link.def("getLinkedData", &BaseLink::getLinkedData, sofapython3::doc::baseLink::getLinkedData);
9189
link.def("getLinkedBase", getLinkedBase, "index"_a = 0, sofapython3::doc::baseLink::getLinkedBase);
9290
link.def("setLinkedBase", &BaseLink::setLinkedBase, sofapython3::doc::baseLink::getLinkedBase);
9391

bindings/Sofa/tests/Core/BaseLink.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,8 @@ def test_getLinked_and_Owner(self):
8686
mm = root.addObject("BarycentricMapping", input="@/t1", output="@/t2")
8787
link_input = mm.findLink("input")
8888
self.assertEqual(link_input.getLinkedBase(0).getName(),"t1")
89-
self.assertEqual(link_input.getLinkedData(0), None)
9089
link_output = mm.findLink("output")
9190
self.assertEqual(link_output.getLinkedBase(0).getName(),"t2")
92-
self.assertEqual(link_output.getLinkedData(0), None)
9391
self.assertEqual(link_input.getOwnerBase().getName(), "BarycentricMapping")
9492
self.assertEqual(link_output.getOwnerBase().getName(), "BarycentricMapping")
9593

bindings/Sofa/tests/PythonModule_Sofa_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ using sofapython3::PythonTestExtractor ;
2929
using sofapython3::PrintTo ;
3030
using std::string;
3131

32+
#include <sofa/helper/logging/Messaging.h>
3233
#include <sofa/core/logging/PerComponentLoggingMessageHandler.h>
3334
using sofa::helper::logging::MessageDispatcher;
3435
using sofa::helper::logging::MainPerComponentLoggingMessageHandler;

bindings/SofaRuntime/src/SofaPython3/SofaRuntime/Timer/Submodule_Timer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ using sofa::helper::AdvancedTimer;
2727

2828
#include <stack>
2929

30+
#include <sofa/helper/logging/Messaging.h>
31+
3032
namespace sofapython3
3133
{
3234

bindings/SofaRuntime/tests/PythonModule_SofaRuntime_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ using sofapython3::PythonTestExtractor ;
2929
using sofapython3::PrintTo ;
3030
using std::string;
3131

32+
#include <sofa/helper/logging/Messaging.h>
3233
#include <sofa/core/logging/PerComponentLoggingMessageHandler.h>
3334
using sofa::helper::logging::MessageDispatcher;
3435
using sofa::helper::logging::MainPerComponentLoggingMessageHandler;

0 commit comments

Comments
 (0)