mxcubecore.HardwareObjects.ALBA.ALBAMiniDiff#

[Name] ALBAMiniDiff

[Description] Specific HwObj for M2D2 diffractometer @ ALBA

[Channels] - N/A

[Commands] - N/A

[Emited signals] - pixelsPerMmChanged - phiMotorMoved - stateChanged - zoomMotorPredefinedPositionChanged

[Functions] - None

[Included Hardware Objects] - None

Functions

test_hwo(hwo)

Classes

ALBAMiniDiff(*args)

Specific diffractometer HwObj for XALOC beamline.

class mxcubecore.HardwareObjects.ALBA.ALBAMiniDiff.ALBAMiniDiff(*args)[source]#

Bases: GenericDiffractometer

Specific diffractometer HwObj for XALOC beamline.

getBeamInfo(update_beam_callback)[source]#

Update beam info (position and shape) ans execute callback.

@update_beam_callback: callback method passed as argument.

getCalibrationData(offset=None)[source]#

Get pixel size for OAV system

@offset: Unused @return: 2-tuple float

get_centred_point_from_coord(x, y, return_by_names=None)[source]#

Returns a dictionary with motors name ans positions centred. It is expected in start_move_to_beam and move_to_beam methods in GenericDIffractometer HwObj.

@return: dict

get_pixels_per_mm()[source]#

Returns the pixel/mm for x and y. Overrides GenericDiffractometer method.

go_sample_view()[source]#

Go to sample view phase.

in_plate_mode()[source]#

Overrides GenericDiffracometer method.

init()[source]#

Hardware object init.

is_sample_view_phase()[source]#

Returns boolean by comparing the supervisor current phase and SAMPLE view phase.

@return: boolean

motor_positions_to_screen(centred_positions_dict)[source]#

Convert motor positions contained in a dictionary to screen (canvas) positions. Overrides GenericDiffractometer method.

@centered_positions_dict: dictionary to be converted @return: position

move_omega(pos, velocity=None)[source]#

Move omega to absolute position.

@pos: target position

move_omega_relative(relpos)[source]#

Move omega to relative position.

@relpos: target relative position

phi_motor_moved(pos)[source]#

Emit phiMotorMoved signal with position value.

phi_motor_state_changed(state)[source]#

Emit stateChanged signal with state value.

phiy_motor_state_changed(state)[source]#

Emit stateChanged signal with state value.

phiz_motor_state_changed(state)[source]#

Emit stateChanged signal with state value.

prepare_centring()[source]#

Prepare beamline for to sample_view phase.

sampleX_motor_state_changed(state)[source]#

Emit stateChanged signal with state value.

sampleY_motor_state_changed(state)[source]#

Emit stateChanged signal with state value.

set_phase(phase)[source]#

General function to set phase by using supervisor commands.

start_auto_centring(*args, **kwargs)[source]#

Start manual centring. Overrides GenericDiffracometer method. Prepares diffractometer for manual centring.

start_manual_centring(*args, **kwargs)[source]#

Start manual centring. Overrides GenericDiffracometer method. Prepares diffractometer for manual centring.

state_changed(state)[source]#

Overides method to map Tango ON state to Difractaometer State Ready.

@state: Tango state

supervisor_phase_changed(phase)[source]#

Emit stateChanged signal according to supervisor current phase.

supervisor_state_changed(state)[source]#

Emit stateChanged signal according to supervisor current state.

update_pixels_per_mm(*args)[source]#

Emit signal with current pixel/mm values.

use_sample_changer()[source]#

Overrides GenericDiffracometer method.

zoom_motor_predefined_position_changed(position_name, offset)[source]#

Update pixel size and emit signal.

zoom_motor_state_changed(state)[source]#

Emit signal for motor zoom changed

@state: new state value to emit.

zoom_position_changed(value)[source]#

Update positions after zoom changed.

@value: zoom position.