Skip to content

Commit

Permalink
The terrain was not correctly passed in the contact state plotter
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Dafarra committed Jan 15, 2024
1 parent 80b0c96 commit e5eda9d
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ def __post_init__(
else None
)

self.terrain = (
input_terrain
if isinstance(input_terrain, TerrainDescriptor)
else PlanarTerrain()
)
if not isinstance(self.terrain, TerrainDescriptor):
self.terrain = (
input_terrain
if isinstance(input_terrain, TerrainDescriptor)
else PlanarTerrain()
)


class ContactPointStatePlotter:
Expand Down Expand Up @@ -245,7 +246,7 @@ def _create_complementarity_plot(
ContactPointStatePlotter(
ContactPointStatePlotterSettings(
input_complementarity_axes=[el, last_plot],
terrain=terrain,
input_terrain=terrain,
)
)
for row in axes_list
Expand Down

0 comments on commit e5eda9d

Please sign in to comment.