You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running run_problem with make_plots=True will fail if any phase has a renamed time variable and the name 'time' is not otherwise present.
The ways to fix this are:
(preferred) Calculate time and include it in the timeseries. This is preferable when there are multiple phases in a single trajectory and only some of them rename the time variable.
Use introspection to detect a time variable name in the trajectory (Either the first one, or perhaps the most commonly used name).
Example
The test test_results_gauss_lobatto_renamed_time in the min time climb tests will demonstrate this problem if the corresponding call to run_problem uses make_plots=True.
Dymos Version
1.10.1-dev
Relevant environment information
No response
The text was updated successfully, but these errors were encountered:
Description
Running run_problem with
make_plots=True
will fail if any phase has a renamed time variable and the name 'time' is not otherwise present.The ways to fix this are:
(preferred) Calculate time and include it in the timeseries. This is preferable when there are multiple phases in a single trajectory and only some of them rename the time variable.
Use introspection to detect a time variable name in the trajectory (Either the first one, or perhaps the most commonly used name).
Example
The test
test_results_gauss_lobatto_renamed_time
in the min time climb tests will demonstrate this problem if the corresponding call torun_problem
usesmake_plots=True
.Dymos Version
1.10.1-dev
Relevant environment information
No response
The text was updated successfully, but these errors were encountered: