Skip to content

Commit

Permalink
Refactor CosseratBase and tutorial scenes to update parameter handlin…
Browse files Browse the repository at this point in the history
…g and fix typos
  • Loading branch information
adagolodjo committed Oct 14, 2024
1 parent 21b4cdf commit 368f0d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/python3/cosserat/CosseratBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 368f0d2

Please sign in to comment.