Error with openmoc_compatible.get_openmc_geometry()

Hi All,

I’m trying to use the openmoc_compatible.get_openmc_geometry() feature to compare some OpenMOC runs to OpenMC, but am running into the following error:

--> 410     for openmoc_node in openmoc_region.getNodes():
    411         openmc_node = get_openmc_region(openmoc_node)
    412         openmc_region.append(openmc_node)

TypeError: 'SwigPyObject' object is not iterable

I’m not experienced with SWIG, could anyone offer some guidance on this error? Thanks!

Hey @kevinm387. I haven’t really used the OpenMOC-compatibility layer much so unfortunately don’t have much advice. It looks like the OpenMOC Region class does indeed have a getNodes() method that should be iterable in Python. Do you have a script you’re able to share that demonstrates this problem so that someone can try to reproduce?