Skip to content
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

try forever to get mirrors, slits into initial positions #19

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

untzag
Copy link
Member

@untzag untzag commented Feb 3, 2023

closes #10

Untested, please look closely and test if you can.

@untzag untzag self-assigned this Feb 3, 2023
Copy link
Member

@ksunden ksunden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still salty in general that this is necessary (empirically something does need to change here, just not happy that it's so), but not blocking on that front... just that it doesn't do what is intended yet

Regardless I am also unwilling to merge this particular kind of patch (complicated startup timing) without it being tested on the real hardware

yaqd_horiba/_horiba_ihr.py Outdated Show resolved Hide resolved
@untzag untzag requested a review from ksunden February 3, 2023 19:52
@ksunden
Copy link
Member

ksunden commented Feb 3, 2023

I'm not a huge fan of unbounded startup loops...

Perhaps we should issue a warning/error after a certain number of attempts

(and or exponential backoff to give other factors which might be impeding success time to be fixed)

@untzag
Copy link
Member Author

untzag commented Feb 3, 2023

@ddkohler @kameyer226 as end-users what behavior do you want? Do you want the mono to keep trying to return to the old positions forever? Do you want it to give up and shut itself off after a while? Do you want it to try a certain number of times and then just stop trying?

@kameyer226
Copy link
Contributor

I believe it should just try to move 3-4 times. The initialization already takes time, so adding a few trials makes little impact on overall time.

@untzag
Copy link
Member Author

untzag commented Feb 5, 2023

@kameyer226 in your opinion what should happen if it doesn't succeed after 4 attempts?

@kameyer226
Copy link
Contributor

If not succeed, write failure to logger, not sure what else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

horiba-ihr320: state changes on restart
3 participants