-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plots don't update after error #25
Comments
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington). Thanks for the report. This is surprising! I'll see if I can reproduce the problem. |
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington). It could be related to runmanager issue #42 (labscript-suite/runmanager#42), I think that would cause problems - not necessarily after an error in the script. Basically we have code (labscript_utils.modulewatcher, used by both runmanager and lyse) that unloads Python modules so that changes in those modules will be reflected when they are next imported. And it looks like it is being a bit too overzealous unloading modules. It might be unloading things required for plotting. |
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington). I'm not able to reproduce this, unfortunately. I can run this script:
repeatedly, unpausing analysis each time it pauses due to the Could you provide a minimal example that demonstrates the problem? |
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington). Right, but not after all errors? It makes sense that if something lyse-related crashes instead of your analysis code, that this will break the analysis subprocess until it is restarted. If that's the case, it's a bug and whatever is crashing should be fixed. Even if it is your code that is causing the error prior to the plots not updating, I'd be interested to see the traceback, as it might help me narrow down the cause. |
Original comment by Jan Werkmann (Bitbucket: PhyNerd, GitHub: PhyNerd). That I haven't checkt till now it but your example shows that it doesn't seem to be all errors. It happened a few times now and thats why I reported it. I'll take a look at the lyse.log tomorrow when I'm in the lab and look for the traceback (we had one of those 'no more plots' errors just this afternoon) |
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington). Sounds good. I'll be going on holiday soon so I may not see updates here, but will look at things when I get back if they have not already been resolved. |
Original comment by Jan Werkmann (Bitbucket: PhyNerd, GitHub: PhyNerd). Ok so I was finally able to reproduce the bug and narrowed it down a bit.
For context Atoms is a single shot script and Atom0 a result of it |
Labconfig Approved-by: Chris Billington <chrisjbillington@gmail.com>
Original report (archived issue) by Jan Werkmann (Bitbucket: PhyNerd, GitHub: PhyNerd).
When there was a error in a script the plots belonging to the script won't update on subsequent runs of the script (where there is no error). To get them to update again one needs to remove the script and add it again.
The text was updated successfully, but these errors were encountered: