# Outdated example codes

**URL:** <https://openmc.discourse.group/t/outdated-example-codes/5667>\
**Category:** Site Feedback\
**Created:** [July 10, 2025, 11:44am UTC](https://openmc.discourse.group/t/outdated-example-codes/5667 "2025-07-10T11:44:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hannawes](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hannawes](https://openmc.discourse.group/u/hannawes)\
**Post date:** [July 10, 2025, 11:44am UTC](https://openmc.discourse.group/t/outdated-example-codes/5667/1 "2025-07-10T11:44:51Z")

</div>

I am just getting into OpenMC. To learn,I’ve been using the provided examples under basics on this website. There are however quite a few changes that have to be made to the code due to the examples being for version v.0.9.0. They aren’t hard fixes, and mostly just require you to change R to r for future versions. I am only on the post processing example so far, but one change is to the _openmc.stats.Box_ class. It uses the _only\_fissionable_ argument instead of the constraints, making it unable to run on v.0.15.0 and so on.  
The documentation for the class is slighty unclear as well, as it suggests to

> Use the _constraits_ argument when defining a source object instead.

To find how it is to be used you have to go to the changes documentation, as the documentantion has not been updated for v0.15.0+.

> **[openmc.stats.Box — OpenMC Documentation](https://docs.openmc.org/en/v0.15.1/pythonapi/generated/openmc.stats.Box.html)**

Thank you

---

<div class="post-metadata">

**Author:** ![hannawes](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hannawes](https://openmc.discourse.group/u/hannawes)\
**Post date:** [July 13, 2025, 11:04am UTC](https://openmc.discourse.group/t/outdated-example-codes/5667/3 "2025-07-13T11:04:28Z")

</div>

Sorry… I just realized this probably wasn’t the right topic to put this under. I would have deleted it and posted it correctly but I can’t seem to do that. I suppose that would be nice if I could do haha.
