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

[NSRPARMA-131][feat] gui sparc: if laser interlock is triggered, also blank the beam #3009

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pieleric
Copy link
Member

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.

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.
@pieleric pieleric changed the title [feat] gui sparc: if laser interlock is triggerred, also blank the beam [NSRPARMA-131][feat] gui sparc: if laser interlock is triggered, also blank the beam Jan 23, 2025
timeout=10.0,
level=logging.WARNING)
else:
# Reactivate the e-beam blanker, but only if it is still active (otherwise, it's a sign
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# 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

Copy link
Member Author

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."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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.",
Copy link
Contributor

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.

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.

3 participants