From 93699e40412eb100406ec321674f5c2148a12d21 Mon Sep 17 00:00:00 2001 From: Juan Garcia Bonilla Date: Fri, 13 Dec 2024 11:48:08 -0700 Subject: [PATCH] Add getStateVector to DynParamManager in Python The method is used in a test script. --- .../dynamics/stateArchitecture/stateArchitecture.i | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/simulation/dynamics/stateArchitecture/stateArchitecture.i b/src/simulation/dynamics/stateArchitecture/stateArchitecture.i index dee9e72c8b..817fe84111 100755 --- a/src/simulation/dynamics/stateArchitecture/stateArchitecture.i +++ b/src/simulation/dynamics/stateArchitecture/stateArchitecture.i @@ -31,6 +31,14 @@ from Basilisk.architecture.swig_common_model import * %include "swig_eigen.i" %include "swig_conly_data.i" +// This method should not be exposed, but it's used in +// test_stateArchitecture.py, so we enable it here. If +// the test is every reworked, this extension should be removed. +%extend DynParamManager +{ + StateVector getStateVector() {return self->stateContainer;} +} + %include "../_GeneralModuleFiles/dynParamManager.i" %include "../../../architecture/utilities/avsEigenSupport.h"