Replies: 1 comment
|
Hello @damca, Thank you for your interesting example. I had to take your code for I think you're right that the "setup opm" button isn't doing anything useful for this case. The way it's currently written, the Thank you for the kind words about ray-optics. Feel free to make suggestions for improving the GUI; I haven't had much feedback. Regards, Mike Hayford |
Uh oh!
There was an error while loading. Please reload this page.
I have been enjoying the QT app quite a bit. It's extremely useful. A workflow I've enjoyed using is something like the following:
run -i script.pyfrom the QT Gui console:However, I'd like to rerun
run -i script.pywithout adding more lenses to the system. One work around to this is to have the script like the following:This can then be run multiple times without introducing new lenses. And it seems to work correctly until I click the "First order data" button. Which throws an error. And I think this is because some references to opm are not updating with the
custom_lens2.pyabove. Even when I click 'setup opm' after running.I am thinking the issue might be In the source code, for
ipyconsole.pyline 111:Here the check on
opt_modelseems to never run, and this might be a python closure issue:Anyways, that was a long digression. So my essential questions are 1. is there a cleaner way to structure the scripts meant to be run in the global namespace ideally for 're-runnability' and 2. what is the role of 'setup opm' and how is it supposed to work?
Many thanks for this amazing package!
All reactions