mxcubecore.HardwareObjects.Gphl.GphlWorkflowConnection#

Workflow connection, interfacing to external workflow engine using py4j and Abstract Beamline Interface messages

License:

This file is part of MXCuBE.

MXCuBE is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

MXCuBE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with MXCuBE. If not, see <https://www.gnu.org/licenses/>.

Classes

GphlWorkflowConnection(name)

This HO acts as a gateway to the Global Phasing workflow engine.

class mxcubecore.HardwareObjects.Gphl.GphlWorkflowConnection.GphlWorkflowConnection(name)[source]#

Bases: HardwareObjectYaml

This HO acts as a gateway to the Global Phasing workflow engine.

abort_workflow(message=None)[source]#

Abort workflow - may be called from controller in any state

get_bdg_licence_dir(name)[source]#

Get directory containing specific licence file (if any) for program called ‘name’

get_executable(name)[source]#

Get location of executable binary for program called ‘name’

init()[source]#

Object initialisation - executed after loading contents

processMessage(py4j_message)[source]#

Receive and process message from workflow server Return goes to server

NB Callled freom external java) workflow

processText(py4j_message)[source]#

Receive and process info message from workflow server Return goes to server

NB Callled freom external java) workflow

toJStringArray(arr)[source]#

Modified from https://stackoverflow.com/questions/61230680/pyspark-py4j-create-java-string-array

to_java_time(time_in)[source]#

Convert time in seconds since the epoch (python time) to Java time value