-
Notifications
You must be signed in to change notification settings - Fork 1
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
horiba-ihr320: state changes on restart #10
Comments
the thing is, we do try to do that, soooo |
We should loop and retry until correct. We do this in other daemons. Hardware sucks, make it work 😢 |
Hello! I faced the same problem when i tried to operate micro-hr using this program.
at the end of the home function in _horiba_mono.py to call the task. |
I'm not quite sure why you would want to do that @usui-bluec, but I'm willing to listen if it seems to be improving things for you. We already call I've never used I feel like I have a concrete, ugly solution to this problem. I'm going to make a PR. |
@ksunden @kameyer226 @usui-bluec please checkout #19 and see what you think |
The difference between run until complete and await is that run until complete is called from a synchronous method (and spins up an event loop of one doesn't exist) await cannot be used directly in init We use the alternative of create task (because we know that an event loop exists) |
User complaint
This has been problematic because such property changes are easily missed when restarting daemons. It's likely that the slit position changes to some hardware default position after a hard restart, and state is updated with the position it reads.
I am proposing, that, on daemon startup, we actively set slits/whatever else to positions in the daemon state (if state has valid positions). Of course open to other suggestions...
The text was updated successfully, but these errors were encountered: