File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
mxcubeweb/core/components Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -285,17 +285,16 @@ def update_shapes(self, shapes):
285
285
# Store pixels per mm for third party software, to facilitate
286
286
# certain calculations
287
287
288
- beam_info_dict = self .app .beamline .get_beam_info ()
289
-
290
288
shape_data ["pixels_per_mm" ] = (
291
289
HWR .beamline .diffractometer .get_pixels_per_mm ()
292
290
)
291
+
293
292
shape_data ["beam_pos" ] = (
294
- beam_info_dict . get ( "position" )[0 ],
295
- beam_info_dict . get ( "position" )[1 ],
293
+ HWR . beamline . beam . get_beam_position_on_screen ( )[0 ],
294
+ HWR . beamline . beam . get_beam_position_on_screen ( )[1 ],
296
295
)
297
- shape_data ["beam_width" ] = beam_info_dict . get ( "size_x" , 0 )
298
- shape_data ["beam_height" ] = beam_info_dict . get ( "size_y" , 0 )
296
+ shape_data ["beam_width" ] = HWR . beamline . beam . get_value ()[ 0 ]
297
+ shape_data ["beam_height" ] = HWR . beamline . beam . get_value ()[ 1 ]
299
298
300
299
# Shape does not have any refs, create a new Centered position
301
300
if not refs :
You can’t perform that action at this time.
0 commit comments