Skip to content

Commit

Permalink
Add getStateVector to DynParamManager in Python
Browse files Browse the repository at this point in the history
The method is used in a test script.
  • Loading branch information
juan-g-bonilla committed Dec 13, 2024
1 parent f8d86da commit 61581c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/simulation/dynamics/stateArchitecture/stateArchitecture.i
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 61581c6

Please sign in to comment.