-
Notifications
You must be signed in to change notification settings - Fork 319
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
Error for unpick-able instruments #59
Comments
Re: getting more information on what caused the pickling error - Just looking at the traceback, I don't think I'm going to be able to do much. I could wrap Re: still running in the background - fundamentally, if you want to run this in the background, everything you will interact with in the loop needs to be somewhere outside the main process. Which means that either it's picklable so it can be sent to a separate process, or it needs to have been created in a separate process in the first place and no matter which process wants to talk to it, you do so by sending messages to it in its own process. The latter is what I've settled on doing even for simple models, because this also means the model never gets copied, so it can have state that every caller in any process will agree about. My Simpler, and probably better for this purpose, is to just make a single Check out how Will that work for Kwant systems? You may also find the Sorry for being so slow to respond to your issues... getting the basics of the new |
I think this solution might work quite well for numerical simulations. If I understand correctly, I need the |
@damazter @alexcjohnson should we close and move forward with this ? |
Yes, this issue is obsolete - must have gotten missed in the great purge :) |
Similar to the situation described in QCoDeS/Qcodes_loop#13
A numerical simulation is written in instrument form and I try to run it with the following code
which gives the following error:
I feel that this error is not very helpful.
I assume the error is that my instrument driver is non-pickable. I think that the error should reflect this. Is it possible to check if a driver is pickable, and if not raise a very specific and clear error to the user such that it is clear were the problem actually is?
The Error I would like to get from this is something that contains the name or class of the instrument and the fact that it is unpickable.
I don't know if it is possible to give more specific information on why it is non-pickable, if it were possible I would like to see that information in the error as well
Finally, related to #53 , I would like it a lot if it were possible to still run this simulation in the background for an unpickable instrument.
(The problem is that Kwant systems are unpickable, such that it is not possible to write my Instrument in a pickable way)
The text was updated successfully, but these errors were encountered: