mxcubecore.HardwareObjects.mockup.BeamMockup#
BeamMockup class - methods to define the size and shape of he beam.
Example xml configuration:
<object class="BeamMockup">
<object href="/beam_definer" role="definer"/>
<!-- accepted definer_type values: aperture, slits, definer -->
<definer_type>definer</definer_type>
<beam_divergence_vertical>0</beam_divergence_vertical>
<beam_divergence_horizontal>0</beam_divergence_horizontal>
<check_beam>(0.03, 0.03)</check_beam>
</object>
Classes
|
Beam Mockup class |
- class mxcubecore.HardwareObjects.mockup.BeamMockup.BeamMockup(name)[source]#
Bases:
AbstractBeam
Beam Mockup class
- aperture_diameter_changed(aperture)[source]#
Method called when the aperture diameter changes.
- Parameters:
enum. (Aperture) –
- get_aperture_pos_name() str [source]#
Get the name of the current aperture.
- Returns:
name of current aperture position
- Return type:
- get_defined_beam_size() dict [source]#
Get the predefined beam labels and size.
- Returns:
Dictionary with lists of available beam size labels and the corresponding size (width,height) tuples.
{"label": [str, str, ...], "size": [(w,h), (w,h), ...]}
- Return type:
- set_beam_position_on_screen(beam_x_y: list[int, int])[source]#
Sets beam mark position on screen. #TODO move method to sample_view