mxcubecore.HardwareObjects.GenericDiffractometer#

GenericDiffractometer

Classes

BlockShapeEnum(value)

An enumeration.

CalibrationData(*[, top_left, top_right, ...])

ChipLayout(*[, head_type, holder_type, ...])

DiffractometerState()

Enumeration of diffractometer states

GenericDiffractometer(name)

Abstract base class for diffractometers

GonioHeadConfiguration(*[, current])

HeadTypeEnum(value)

An enumeration.

HolderTypeEnum(value)

An enumeration.

PhaseEnum(value)

An enumeration.

PhaseModel(*[, value])

SampleHolderSectionModel(*[, ...])

class mxcubecore.HardwareObjects.GenericDiffractometer.BlockShapeEnum(value)[source]#

Bases: str, Enum

An enumeration.

class mxcubecore.HardwareObjects.GenericDiffractometer.DiffractometerState[source]#

Bases: object

Enumeration of diffractometer states

class mxcubecore.HardwareObjects.GenericDiffractometer.GenericDiffractometer(name)[source]#

Bases: HardwareObject

Abstract base class for diffractometers

accept_centring()[source]#

Descript. : Arg. “ fully_centred_point. True if 3 click centring

else False

property alignment_x#

alignment_x motor object (also used as graphics.focus)

Returns:

AbstractActuator

property alignment_y#

alignment_y motor object

Returns:

AbstractActuator

property alignment_z#

alignment_z motor object

Returns:

AbstractActuator

beam_position_changed(value)[source]#

Descript. :

centring_done(centring_procedure)[source]#

Descript. :

property centring_x#

centring_x motor object

Returns:

AbstractActuator

property centring_y#

centring_y motor object

Returns:

AbstractActuator

close_kappa()[source]#

Descript. :

current_phase_changed(current_phase)[source]#

Descript. :

emit_centring_failed()[source]#

Descript. :

emit_centring_moving()[source]#

Descript. :

emit_centring_started(method)[source]#

Descript. :

emit_centring_successful()[source]#

Descript. :

emit_progress_message(msg=None)[source]#

Descript. :

execute_server_task(method, timeout=30, *args)[source]#
Method is used to execute commands and wait till

diffractometer is in ready state

Parameters:
  • method (instance) – method to be executed

  • timeout (seconds) – timeout in seconds

force_emit_signals()[source]#

Emits all hardware object signals

The method is called from the gui via beamline object to ensure that bricks have values after the initialization. Problem arrise when a hardware object is used by several bricks. If first brick connects to some signal emited by a brick then other bricks connecting to the same signal will not receive the values on the startup. The easiest solution is to call force_emit_signals method directly after the initialization of the beamline object

get_available_centring_methods()[source]#

Descript. :

get_centring_status()[source]#

Descript. :

get_current_centring_method()[source]#

Descript. :

get_current_phase()[source]#

Descript. :

get_grid_direction()[source]#

Descript. :

get_head_type()[source]#

Returns head type

Returns:

string

get_motors()[source]#

Get motor_name:Motor dictionary

get_osc_limits()[source]#

Returns osc limits

get_phase_list()[source]#

Returns list of available phases

Returns:

list with str

get_pixels_per_mm()[source]#

Returns tuple with pixels_per_mm_x and pixels_per_mm_y

Returns:

list with two floats

get_point_between_two_points(point_one, point_two, frame_num, frame_total)[source]#

Method returns a centring point between two centring points It is used to get a position on a helical line based on frame number and total frame number

get_positions()[source]#

Descript. :

get_scan_limits(speed=None, num_images=None, exp_time=None)[source]#

Gets scan limits. Necessary for example in the plate mode where osc range is limited

head_type_changed(head_type)[source]#

Descript. :

image_clicked(x, y, xi=None, yi=None)[source]#

Descript. :

in_plate_mode()[source]#

Returns True if diffractometer in plate mod

Returns:

boolean

init()[source]#

Hardware object init.

is_ready()[source]#

Detects if device is ready

property kappa#

kappa motor object

Returns:

AbstractActuator

property kappa_phi#

kappa_phi motor object

Returns:

AbstractActuator

motor_state_changed(state)[source]#

Descript. :

move_motors(motor_positions, timeout=15)[source]#

Moves diffractometer motors to the requested positions

Parameters:

motors_dict (dict) – dictionary with motor names or hwobj and target values.

move_motors_done(move_motors_procedure)[source]#

Descript. :

move_omega_relative(relative_angle)[source]#

Descript. :

move_to_beam(x, y, omega=None)[source]#
Descript.function to create a centring point based on all motors

positions.

property omega#

omega motor object

Returns:

AbstractActuator

reject_centring()[source]#

Descript. :

sample_is_loaded_changed(sample_is_loaded)[source]#

Descript. :

set_phase(phase, timeout=None)[source]#
Sets diffractometer to selected phase

By default available phase is Centring, BeamLocation, DataCollection, Transfer

Parameters:
  • phase (string) – phase

  • timeout (int) – timeout in sec

set_use_sc(flag)[source]#

Sets use_sc flag, that indicates if sample changer is used

Parameters:

flag (boolean) – use sample changer flag

start_move_to_beam(coord_x=None, coord_y=None, omega=None, wait_result=None)[source]#

Descript. :

transfer_mode_changed(transfer_mode)[source]#

Descript. :

use_sample_changer()[source]#

Returns True if sample changer is in use

Returns:

boolean

visual_align(point_1, point_2)[source]#

Descript. :

wait_device_ready(timeout=30)[source]#

Waits when diffractometer status is ready:

Parameters:

timeout (int) – timeout in second

wait_ready(timeout=30)#

Waits when diffractometer status is ready:

Parameters:

timeout (int) – timeout in second

property zoom#

zoom motor object

NBNB HACK TODO - ocnfigure this in graphics object (which now calls this property)

Returns:

AbstractActuator

class mxcubecore.HardwareObjects.GenericDiffractometer.HeadTypeEnum(value)[source]#

Bases: str, Enum

An enumeration.

class mxcubecore.HardwareObjects.GenericDiffractometer.HolderTypeEnum(value)[source]#

Bases: str, Enum

An enumeration.

class mxcubecore.HardwareObjects.GenericDiffractometer.PhaseEnum(value)[source]#

Bases: str, Enum

An enumeration.