Right now when the init.py file executes, it sets pym.mesa2Py = True even tho pym doesnt have that attribute. When _init.py is executed again within the same session, that attribute still exists in pym so it's an indicator whether this file has already run. It's super hacky but it gets the job done. I'd like to use something smarter, but I don't know what
|
pym.mesa2Py = True #type: ignore FIXME very hacky way to make sure the fortran modules are only initialized once. It works tho |
Right now when the init.py file executes, it sets pym.mesa2Py = True even tho pym doesnt have that attribute. When _init.py is executed again within the same session, that attribute still exists in pym so it's an indicator whether this file has already run. It's super hacky but it gets the job done. I'd like to use something smarter, but I don't know what
MagneticDisconnectSimulator/mesa2Py/__init__.py
Line 287 in 250f27a