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

openmc.settings.track does not always validate input #2984

Open
MicahGale opened this issue Apr 27, 2024 · 0 comments
Open

openmc.settings.track does not always validate input #2984

MicahGale opened this issue Apr 27, 2024 · 0 comments
Labels

Comments

@MicahGale
Copy link
Contributor

Bug Description

If you set openmc.settings.track to a nonsensical value it can sometimes raise no errors and export the values while having no impact on what is actually exported to xml.

Steps to Reproduce

MWE:

import openmc
model = openmc.Model()
model.settings.track = it.chain(*[[(j, 1, n) for n in range(1, 10_000)] for j in range(80, 101)])
model.export_to_xml()

The subsequent XML file then has <track></track>, with no warnings or errors.

Environment

  • Openmc 0.14.0
@MicahGale MicahGale added the Bugs label Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant