.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/post_process/post_process_file.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_post_process_post_process_file.py: Post-process an HDF5 file ========================= .. GENERATED FROM PYTHON SOURCE LINES 25-29 .. code-block:: default from __future__ import annotations from gemseo import execute_post .. GENERATED FROM PYTHON SOURCE LINES 30-33 We can post-process an HDF5 file generated from an :class:`.OptimizationProblem` or a :class:`.Scenario` with the function :func:`.execute_post`: .. GENERATED FROM PYTHON SOURCE LINES 33-35 .. code-block:: default execute_post("my_results.hdf", "BasicHistory", variable_names=["y"]) .. GENERATED FROM PYTHON SOURCE LINES 36-44 .. note:: By default, |g| saves the images on the disk. Use ``save=False`` to not save figures and ``show=True`` to display them on the screen. .. seealso:: - :ref:`sphx_glr_examples_post_process_save_from_scenario.py`, - :ref:`sphx_glr_examples_post_process_save_from_opt_problem.py`. .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.000 seconds) .. _sphx_glr_download_examples_post_process_post_process_file.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: post_process_file.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: post_process_file.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_