radiasoft/rshellweg

BeamSolver retains global state

Closed this issue · 6 comments

beam_solver_test.py doesn't pass, because there's global state held in BeamSolver. The individual cases pass, but something in the library holds state that it shouldn't.

run as separate tests.

This is a different bug.

Workaround 36e11c8

This is really still a problem if you are using BeamSolver more than once in a program. Generally not what we do in the agent, but still is a bug. If using in a IPython notebook, this could be a problem.

This is consistent with my experience from using Hellweg as compiled for windows. You don't execute the solver more than once -- you have to exit the application and restart.

Closing here. I'll create a separate issue to address this bug in the future.