Skip to content

Commit a57b2c8

Browse files
committed
Do not simplify symbolic expressions if we are deriving dynamics for more than 2 segments
1 parent ced3f11 commit a57b2c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/derive_planar_pcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
/ f"planar_pcs_ns-{NUM_SEGMENTS}.dill"
1313
)
1414
symbolically_derive_planar_pcs_model(
15-
num_segments=NUM_SEGMENTS, filepath=sym_exp_filepath, simplify_expressions=True
15+
num_segments=NUM_SEGMENTS, filepath=sym_exp_filepath, simplify_expressions=True if NUM_SEGMENTS < 3 else False
1616
)

0 commit comments

Comments
 (0)