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

Fix beamstop and capillary not shown #1447

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

Conversation

axelboc
Copy link
Collaborator

@axelboc axelboc commented Oct 14, 2024

This fixes the beamstop and capillary beamline attributes in the mock environment ... and probably the beamstop distance overlay in production environments too??

image

image

image

@@ -1,5 +1,5 @@
<object class="ExporterNStateMockup">
<username>beamstop</username>
<values>{"OUT": "OFF", "IN": "BEAM"}</values>
<values>{"IN": "BEAM", "OUT": "OFF"}</values>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The front-end expects the "good" state (green) to come first.

Comment on lines +103 to +105
attribute: diffractometer.beamstop
- label: Capillary
attribute: capillary
attribute: diffractometer.capillary
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This makes the two attributes appear in the UI.

function renderBeamstopAlignmentOverlay() {
const { hardwareObjects } = beamline;
const motorInputList = [];
let popover = null;

const motor = hardwareObjects.beamstop_alignemnt_x;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There was a typo, but the hardware object is no longer called beamstop_alignment_x anyway but diffractometer.beamstop_distance.

This and the changes below fix the beamstop distance overlay as shown in the third screenshot (the cog icon + overlay with OneAxisTranslationControl).

@axelboc axelboc marked this pull request as ready for review October 14, 2024 13:45
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.

1 participant