Skip to content

Commit 47eb5b7

Browse files
authored
Fix typo in method name (#594)
1 parent 835d78d commit 47eb5b7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ namespace sofapython3
135135

136136
py::dict mp = py::dict("time"_a=getContext()->getTime());
137137

138-
PYBIND11_OVERLOAD_PURE(void, Inherit1, applyConstrainsJT, mp,
138+
PYBIND11_OVERLOAD_PURE(void, Inherit1, applyConstraintsJT, mp,
139139
PythonFactory::toPython(&out), PythonFactory::toPython(&in));
140140
}
141141

examples/example-mapping.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def applyJ(self, m, outDeriv, inDeriv):
3232
def applyJT(self, m, outDeriv, inDeriv):
3333
print("PYTHON(🐍) APPLY-JT", outDeriv, inDeriv)
3434

35-
def applyConstrainsJT(self, m, outDeriv, inDeriv):
35+
def applyConstraintsJT(self, m, outDeriv, inDeriv):
3636
print("PYTHON(🐍) APPLY-JT for constraints, data are [⋱]", m, outDeriv, inDeriv)
3737
print("Constraints ", inDeriv.value)
3838

@@ -81,13 +81,13 @@ def createScene(root):
8181
def main():
8282
import SofaRuntime
8383
import Sofa.Gui
84-
import SofaQt
84+
import SofaImGui
8585

8686
root=Sofa.Core.Node("root")
8787
createScene(root)
8888
Sofa.Simulation.initRoot(root)
8989

90-
Sofa.Gui.GUIManager.Init("myscene", "qglviewer")
90+
Sofa.Gui.GUIManager.Init("myscene", "imgui")
9191
Sofa.Gui.GUIManager.createGUI(root, __file__)
9292
Sofa.Gui.GUIManager.SetDimension(1080, 1080)
9393
Sofa.Gui.GUIManager.MainLoop(root)

examples/example-mapping_3_to_1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def applyJ(self, m, outDeriv, inDeriv):
3434
def applyJT(self, m, outDeriv, inDeriv):
3535
print("PYTHON() APPLY-JT", outDeriv, inDeriv)
3636

37-
def applyConstrainsJT(self, m, outDeriv, inDeriv):
37+
def applyConstraintsJT(self, m, outDeriv, inDeriv):
3838
print("PYTHON() APPLY-JT for constraints, data are [⋱]", m, outDeriv, inDeriv)
3939
print("Constraints ", inDeriv.value)
4040

0 commit comments

Comments
 (0)