-
Notifications
You must be signed in to change notification settings - Fork 44
Aperture changes #1336
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
Aperture changes #1336
Conversation
We should aim for millilmeters if possible: https://mxcubeweb.readthedocs.io/en/latest/dev/contributing.html#units |
Hm, I need to double check but but I'm fairly certain we don't have this and we express our beam size in |
tack, you are correct! The issue comes from our aperture being set as um all the time, and how the internal mxcube translates the size_x and size_y (dividing by 1000). I fixed by changing our
current_aperture is 10, 50... etc. But I still have the issue when the aperture is changed via MD3. Mxcube does not get the value. I will redo this MR with the changes I had to apply |
👍 Ok, I see. I have to take a closer look we made a fix for this some time a go that we have not pushed yet. One thing you can look at is if the beam_changed "event" is called when you change the beamsize. Line 190 in f513f24
|
yes, that's where I was digging! I updated the MR with few lines, let me know if it fits your needs. I kept it simple, the beam definer / beam info / aperture changes coming from @beteva will bring more changes in ui I believe |
yes thats true, it looks like you guys did a really nice work on that part. It seems to handle the different scenarios we have here nicely |
@meguiraun, the beam definer is developed on top of your code, so we share the work. I believe that the changes in the ui are mostly renaming aperture to beam definer if we want to be consistent, but it does work even without doing this. |
yes, But we migth want to display things in the UI differently |
is this MR ok then? |
I think there is some sort of mismatch that will need to deal with later, what you have called aperture we have called label, @beteva can probably explain better but the idea is that we might have other beam defining devices apart from aperture and thus thus we called this label. |
@marcus-oscarsson You are right. The output of the beam HO get_value() is a dictionary |
mxcubeweb/routes/signals.py
Outdated
"size_x": _beam[0], | ||
"size_y": _beam[1], | ||
"shape": _beam[2].value, | ||
"aperture": _beam[3], |
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.
Ok, so to avoid future conflicts it would probably be better if this is:
"shape": _beam[2].value,
"label": _beam[3],
}
The suggested updates would result in a minimal conflict (if any) later. |
I can live with the suggested changes :) |
c40af64
to
933f8c4
Compare
There was a indentation mistake in my suggestion, I fixed it, sorry @meguiraun. Ill merge when the pipelines have finished |
Co-authored-by: Marcus Oscarsson <marcus.oscarsson@esrf.fr>
Fixed indentation mistake in previous suggestion
b3d6a84
to
5e117dd
Compare
Small fixes:
makeImageOverlay
has to divide that by 1000...)