From b662a7f80cea671957acbc9dde7b235e22a69f22 Mon Sep 17 00:00:00 2001 From: kccwing <60852830+kccwing@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:39:08 +0100 Subject: [PATCH] Big fix to read rot_axisA2 as optional argument indeed --- sharpy/utils/generate_cases.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sharpy/utils/generate_cases.py b/sharpy/utils/generate_cases.py index 5458f56f7..1b396b7db 100644 --- a/sharpy/utils/generate_cases.py +++ b/sharpy/utils/generate_cases.py @@ -2026,7 +2026,11 @@ def generate_multibody_file(list_LagrangeConstraints, list_Bodies, route, case_n data=getattr(constraint, "penaltyFactor")) except: pass - + try: + constraint_id.create_dataset("rot_axisA2", + data=getattr(constraint, "rot_axisA2")) + except: + pass iconstraint += 1 # Write the body information