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

Fixed a bug that was causing trajectory result reports not to be displayed in the documentation. #1032

Merged
merged 3 commits into from
Jan 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/copy_build_artifacts.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
import fnmatch
import shutil

def copy_build_artifacts(book_dir='openmdao_book'):
def copy_build_artifacts(book_dir='dymos_book'):
"""
Copy build artifacts (html files, images, etc) to the output _build directory.
Parameters
@@ -31,6 +31,6 @@ def copy_build_artifacts(book_dir='openmdao_book'):


if __name__ == '__main__':
copy_build_artifacts('openmdao_book')
copy_build_artifacts('dymos_book')


Binary file modified docs/dymos_book/examples/brachistochrone/brachistochrone_fbd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -525,11 +525,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": [
"output_scroll"
]
},
"metadata": {},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
@@ -541,6 +537,8 @@
"from dymos.examples.plotting import plot_results\n",
"from dymos.utils.lgl import lgl\n",
"\n",
"from bokeh.io import output_notebook\n",
"\n",
"p = om.Problem(model=om.Group())\n",
"p.driver = om.pyOptSparseDriver()\n",
"p.driver.options['optimizer'] = 'IPOPT'\n",
@@ -659,21 +657,12 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true
"tags": []
},
"outputs": [],
"source": [
"from IPython.display import Image\n",
"Image(p.get_reports_dir() / 'plots/states_alt.png', width=600)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"Image(p.get_reports_dir() / 'plots/states_mass_fuel.png', width=600)"
"from IPython.display import IFrame\n",
"IFrame(src=str(p.get_reports_dir() / 'traj_results_report.html'), width=800, height=1200)"
]
},
{
@@ -708,7 +697,7 @@
}
],
"metadata": {
"celltoolbar": "Tags",
"celltoolbar": "Edit Metadata",
"jupytext": {
"cell_metadata_filter": "-all",
"notebook_metadata_filter": "-all",
@@ -718,7 +707,7 @@
}
},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
@@ -732,9 +721,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
"version": "3.11.4"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
}