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
which means that I cannot run more than one simulation with the same orh instance. There is a pickle support of jpype, but I've no glue how to start with it.. jpype-project/jpype#533
Trying to create more than one instance of orhelper.OpenRocketInstance() gives
File "....\ortools\lib\site-packages\orhelper_orhelper.py", line 50, in enter
jpype.startJVM(jvm_path, "-ea", f"-Djava.class.path={self.jar_path}")
File "....\ortools\lib\site-packages\jpype_core.py", line 177, in startJVM
raise OSError('JVM cannot be restarted')
It seems to be impossible to launch the JVM (i.e., orhelper.OpenRocketInstance()) more than once within the same python script: jpype-project/jpype#959
The dispersion analysis, basically a monte-carlo simulation, is predestinated for parallelization.
How could one implement this within this python/java framework?
Maybe https://docs.python.org/3/library/multiprocessing.html would do the job.
The text was updated successfully, but these errors were encountered: