You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just making use of openmc.lib.nuclide.collapse_rate which calls _dll.openmc_nuclide_collapse_rate and then errors with a ctypes.ArgumentError: argument 1: TypeError: wrong type error
It looks like the self_index is the wrong type and causes the code to crash.
@shimwell You were very close to having a working code -- the only change you need is:
nuc=openmc.lib.nuclides['Be9']
The lib.Nuclide class itself takes an integer index (if only it were type hinted, that would have been obvious 😉), where lib.nuclides is a mapping that gives a lib.Nuclide object given the name.
Just making use of
openmc.lib.nuclide.collapse_rate
which calls_dll.openmc_nuclide_collapse_rate
and then errors with actypes.ArgumentError: argument 1: TypeError: wrong type
errorIt looks like the
self_index
is the wrong type and causes the code to crash.Link to line in source code
Bug Description
Steps to Reproduce
Environment
ubuntu 22.04, openmc-dev, python3.10.12
The text was updated successfully, but these errors were encountered: