Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bokeh Timeseries Plots fail if the time variable is renamed. #1051

Open
robfalck opened this issue Mar 11, 2024 · 0 comments
Open

Bokeh Timeseries Plots fail if the time variable is renamed. #1051

robfalck opened this issue Mar 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@robfalck
Copy link
Contributor

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:

  1. (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.

  2. 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

@robfalck robfalck added the bug Something isn't working label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant