mxcubecore.HardwareObjects.XMLRPCServer#
XMLRPC-Server that makes it possbile to access core features of MXCuBE like the queue from external applications. The Server is implemented as a hardware object and is configured with an XML-file. See the example configuration XML for more information.
Classes
|
- class mxcubecore.HardwareObjects.XMLRPCServer.XMLRPCServer(name)[source]#
Bases:
HardwareObject
- get_available_beam_size()[source]#
Get the available predefined beam sizes. :returns:
- Dictionary wiith list of avaiable beam size labels
and the corresponding size (width,height) tuples. {“label”: [str, str, …], “size”: [(w,h), (w,h), …]}
- Return type:
(dict)
- get_beam_size()[source]#
Get the beam size [um], its shape and label. :returns:
- (width, heigth, shape, label), with types
(float, float, str, str)
- Return type:
(tuple)
- is_queue_executing(node_id=None)[source]#
- Returns:
True if the queue is executing otherwise False
- Return type:
- log_message(message, level='info')[source]#
Logs a message in the user_level_log of MxCuBE, normally displayed at the bottom of the MxCuBE window.
- Parameters:
message – The message to log
message – The log level, one of the strings: ‘info’. ‘warning’, ‘error’
- Returns:
True on success otherwise False
- Return type:
- open_dialog(dict_dialog)[source]#
Opens the workflow dialog in mxCuBE. This call blocks util the dialog is ended by the user.
- queue_execute_entry_with_id(node_id, use_async=False)[source]#
Execute the entry that has the model with node id <node_id>.
- Parameters:
node_id (int) – The node id of the model to find.
- queue_set_workflow_lims_id(node_id, lims_id)[source]#
Set lims id of workflow node with id <node_id>
- shape_history_get_grid(sid)[source]#
- Parameters:
sid – Shape id
- Returns:
Grid with id <sid>
- Return type:
Format of the returned dictionary:
- {‘id’: id,
‘dx_mm’: float, ‘dy_mm’: float, ‘steps_x’: int, ‘steps_y’: int, ‘x1’: float, ‘y1’: float, ‘angle’: float}