-
Notifications
You must be signed in to change notification settings - Fork 39
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
[NSRPARMA-131][feat] gui sparc: if laser interlock is triggered, also blank the beam #3009
base: master
Are you sure you want to change the base?
Conversation
One of the most common reason for the laser interlock to be triggered is that the user opened the SPARC ATM cover. The inside of the ATM can receive X-rays caused by the e-beam. So, to be extra safe, also blank the e-beam whenever the laser interlock is triggered.
timeout=10.0, | ||
level=logging.WARNING) | ||
else: | ||
# Reactivate the e-beam blanker, but only if it is still active (otherwise, it's a sign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Reactivate the e-beam blanker, but only if it is still active (otherwise, it's a sign | |
# Unblank the e-beam blanker, but only if it is still active (otherwise, it's a sign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Reactivate the e-beam blanker" is not correct, indeed. However "unblank the [...] blanker" is confusing too!
It's tricky because the blanker has 3 states: e-beam blanked, e-beam unblanked, and "auto" (= e-beam blanked if not scanning).
I'll try to find a better English wording....
if self._ebeam_blanker and self._ebeam_blanker.value: | ||
self._ebeam_blanker.value = self._pre_interlock_blanker | ||
if self._pre_interlock_blanker != True: | ||
ebeam_str = " E-beam blanker was reactivated." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ebeam_str = " E-beam blanker was reactivated." | |
ebeam_str = " E-beam was unblanked." |
Maybe better
popup.show_message(wx.GetApp().main_frame, | ||
title="Laser safety", | ||
message=f"Laser was suspended automatically due to interlock trigger.", | ||
message=f"Laser {ebeam_str}were suspended automatically due to interlock trigger.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A minor comment, but if there is no ebeam_str
the sentence should be Laser was suspended
and not Laser were suspended
. It's fine by me if you leave it like this, though.
One of the most common reason for the laser interlock to be triggered
is that the user opened the SPARC ATM cover. The inside of the ATM can
receive X-rays caused by the e-beam. So, to be extra safe, also blank
the e-beam whenever the laser interlock is triggered.