Apply suggestions from code review

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Patrick Shriwise 2021-06-28 08:21:51 -05:00 committed by GitHub
parent 8d36b9b813
commit ae7ff20160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,8 +50,8 @@ RuntimeError: Failed to open HDF5 file with mode 'w': summary.h5
This often occurs when working with the Python API and executing multiple OpenMC
runs in a script. If an :class:`openmc.StatePoint` is open in the Python interpreter,
the file handle of the statpoint file as well as the linked `summary.h5` file will
be unavailable for writing, causing this error to appear. To avoid the situation,
the file handle of the statepoint file as well as the linked `summary.h5` file will
be unavailable for writing, causing this error to appear. To avoid this situation,
it is recommended that data be extracted from statepoint files in a context manager:
.. code-block:: python