From 368f0d2b4a6c1c0d71d77825b5baec27b0684150 Mon Sep 17 00:00:00 2001 From: Yinoussa Adagolodjo Date: Mon, 14 Oct 2024 18:32:13 +0200 Subject: [PATCH] Refactor CosseratBase and tutorial scenes to update parameter handling and fix typos --- examples/python3/cosserat/CosseratBase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/python3/cosserat/CosseratBase.py b/examples/python3/cosserat/CosseratBase.py index d2896566..1b27c9b7 100644 --- a/examples/python3/cosserat/CosseratBase.py +++ b/examples/python3/cosserat/CosseratBase.py @@ -53,7 +53,7 @@ class CosseratBase(Sofa.Prefab): def __init__(self, *args, **kwargs): Sofa.Prefab.__init__(self, *args, **kwargs) - self.params = kwargs.get("beam_params") # Use the Parameters class with default values + self.params = kwargs.get("params") # Use the Parameters class with default values self.beamPhysicsParams = self.params.beam_physics_params self.beam_mass = self.beamPhysicsParams.beam_mass # self.cosseratGeometry['beamMass']