Question about generating XML files through the python script. #866
-
@aprilnovak Hello! I've been encountering a common issue recently while testing OpenMC functionality, where I'm unable to generate the corresponding XML files using a Python script.
I think it's because the version of openmc changes. Furthermore, there have been some changes in syntax. Here is the version of my openmc:
It's a little bit difficult for me to modify the script. What should I do? Ethan |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ah, sorry about that! We don't test the Python scripts in our regression suite, so these fell a bit out of date. You were most of the way there with the fix, but the changes in OpenMC also changed the underlying "type" of the object being created (from a I've fixed this here, which I'll merge as soon as the tests pass (~1 hour). Once that is merged, you can then pull in the latest Cardinal and everything should work. Thanks for pointing this out! |
Beta Was this translation helpful? Give feedback.
Ah, sorry about that! We don't test the Python scripts in our regression suite, so these fell a bit out of date. You were most of the way there with the fix, but the changes in OpenMC also changed the underlying "type" of the object being created (from a
region
to asurface
, which you now need to use+
/-
to indicate the half-spaces for).I've fixed this here, which I'll merge as soon as the tests pass (~1 hour). Once that is merged, you can then pull in the latest Cardinal and everything should work.
Thanks for pointing this out!