mxcubecore.HardwareObjects.abstract.AbstractAperture#
Abstract hardware object for the aperture.
Classes
|
Abstract hardware object for the aperture. |
- class mxcubecore.HardwareObjects.abstract.AbstractAperture.AbstractAperture(name: str)[source]#
Bases:
HardwareObject
Abstract hardware object for the aperture.
- Emits:
diameterIndexChanged (int, float) – Two-item tuple: current index and diameter in millimeters.
valueChanged (str) – Current position name.
- Parameters:
name (str) –
- get_diameter_index() int [source]#
Get current diameter index.
- Returns:
Current diameter index.
- Return type:
- get_diameter_size() float [source]#
Get diameter size.
- Returns:
Current diameter size in millimeters.
- Return type:
- get_position_name() str [source]#
Get current position name.
- Returns:
Current position name.
- Return type:
- is_out() bool [source]#
- Returns:
True
if aperture is in the beam, otherwise returnsFalse
.- Return type:
- set_diameter_index(diameter_index: int) None [source]#
Set active diameter index.
- Parameters:
diameter_index (int) – Selected diameter index.
- Return type:
None
- set_diameter_size(diameter_size: int) None [source]#
Set diameter size.
- Parameters:
diameter_size (int) – selected diameter index
- Return type:
None