# Reading (summary.h5) file

**URL:** <https://openmc.discourse.group/t/reading-summary-h5-file/1273>\
**Category:** User Support\
**Created:** [June 25, 2021, 9:21am UTC](https://openmc.discourse.group/t/reading-summary-h5-file/1273 "2021-06-25T09:21:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MohammedAhmed2](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@MohammedAhmed2](https://openmc.discourse.group/u/MohammedAhmed2)\
**Post date:** [June 25, 2021, 9:21am UTC](https://openmc.discourse.group/t/reading-summary-h5-file/1273/1 "2021-06-25T09:21:15Z")

</div>

hello, I have a question, how I can read the values inside the (summary.h5)?

---

<div class="post-metadata">

**Author:** ![paulromano](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/paulromano/32/486_2.png) [@paulromano](https://openmc.discourse.group/u/paulromano)\
**Post date:** [June 28, 2021, 3:34am UTC](https://openmc.discourse.group/t/reading-summary-h5-file/1273/2 "2021-06-28T03:34:50Z")

</div>

Hi @MohammedAhmed2. This can be done using the [`openmc.Summary`](https://docs.openmc.org/en/latest/pythonapi/generated/openmc.Summary.html#openmc.Summary) class. Once you load in a file, you can look at the `geometry` and `materials` attributes, which are normal instances of the [`Geometry`](https://docs.openmc.org/en/latest/pythonapi/generated/openmc.Geometry.html#openmc.Geometry) and [`Materials`](https://docs.openmc.org/en/latest/pythonapi/generated/openmc.Materials.html#openmc.Materials) classes:

```auto
import openmc

summary = openmc.Summary('summary.h5')
geom = summary.geometry
mats = summary.materials
...

```

---

<div class="post-metadata">

**Author:** ![MohammedAhmed2](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@MohammedAhmed2](https://openmc.discourse.group/u/MohammedAhmed2)\
**Post date:** [June 29, 2021, 10:01am UTC](https://openmc.discourse.group/t/reading-summary-h5-file/1273/3 "2021-06-29T10:01:13Z")

</div>

thanks for replying, appreciate it.
