Correct behavior of the python API
Hi,
I'm trying to convert my old .geo scripts to python API. I'm using pycharm as IDE.
I've tested the API tutorials and they are executed correctly if I comment out the code:
if '-nopopup' not in sys.argv:
gmsh.fltk.run()
If I enable the Gmsh GUI view, the result is visualized but the execution of the script does not proceed over, I have to close manually the GUI to continue. The command gmsh.finalize()
is not reached.
Is this the expected behavior?
In the past, I used to write the .geo file -> reload script in Gmsh -> check the result, edit the code if necessary -> reload script, etc...
Now, with the python API, I would like to open the GUI -> execute a command (i.e. debugging mode) -> check the result -> continue with a new command, etc.
Is this possible? Otherwise, which workflow is more suitable for the API?
Thanks for your precious work.