Beispiel #1
0
    def create_integration_id(self, datacollect_id, comments):
        autoproc_status = edFactoryPlugin.loadPlugin(
            'EDPluginISPyBStoreAutoProcStatusv1_4')
        status_input = XSDataInputStoreAutoProcStatus()
        status_input.dataCollectionId = datacollect_id
        status_input.anomalous = True

        # needed even if we only want to get an integration ID?
        status_data = AutoProcStatus()
        status_data.step = "Indexing"
        status_data.status = "Launched"
        status_data.comments = comments

        # Program
        autoProcProgram = EDHandlerXSDataISPyBv1_4.createAutoProcProgram(
            programId=None,
            status="RUNNING",
            timeStart=self.timeStart,
            timeEnd=self.timeEnd,
            processingCommandLine=self.processingCommandLine,
            processingPrograms=self.processingPrograms)

        status_input.AutoProcProgram = autoProcProgram
        status_input.AutoProcStatus = status_data

        autoproc_status.dataInput = status_input
        # get our EDNAproc status id
        autoproc_status.executeSynchronous()
        return (autoproc_status.dataOutput.autoProcIntegrationId,
                autoproc_status.dataOutput.autoProcProgramId)
def create_integration_id(datacollect_id):
    autoproc_status = edFactoryPlugin.loadPlugin('EDPluginISPyBStoreAutoProcStatusv1_4')
    status_input = XSDataInputStoreAutoProcStatus()
    status_input.dataCollectionId = datacollect_id

    # needed even if we only want to get an integration ID?
    status_data = AutoProcStatus()
    status_data.step = "Indexing"
    status_data.status = "Launched"
    status_data.comments = "Getting integration ID"
    status_input.AutoProcStatus = status_data

    autoproc_status.dataInput = status_input
    # get our autoproc status id
    autoproc_status.executeSynchronous()
    return autoproc_status.dataOutput.autoProcIntegrationId
def log_to_ispyb_impl(integration_id, step, status, comments=""):
    # hack in the event we could not create an integration ID
    if integration_id is None:
        EDVerbose.ERROR('could not log to ispyb: no integration id')
        return
    autoproc_status = edFactoryPlugin.loadPlugin('EDPluginISPyBStoreAutoProcStatusv1_4')
    status_input = XSDataInputStoreAutoProcStatus()
    status_input.autoProcIntegrationId = integration_id
    status_data = AutoProcStatus()
    status_data.step = step
    status_data.status = status
    status_data.comments = comments
    status_input.AutoProcStatus = status_data

    autoproc_status.dataInput = status_input

    autoproc_status.executeSynchronous()
Beispiel #4
0
def create_integration_id(datacollect_id):
    autoproc_status = edFactoryPlugin.loadPlugin(
        'EDPluginISPyBStoreAutoProcStatusv1_4')
    status_input = XSDataInputStoreAutoProcStatus()
    status_input.dataCollectionId = datacollect_id

    # needed even if we only want to get an integration ID?
    status_data = AutoProcStatus()
    status_data.step = "Indexing"
    status_data.status = "Launched"
    status_data.comments = "Getting integration ID"
    status_input.AutoProcStatus = status_data

    autoproc_status.dataInput = status_input
    # get our autoproc status id
    autoproc_status.executeSynchronous()
    return autoproc_status.dataOutput.autoProcIntegrationId
Beispiel #5
0
def log_to_ispyb_impl(integration_id, step, status, comments=""):
    # hack in the event we could not create an integration ID
    if integration_id is None:
        EDVerbose.ERROR('could not log to ispyb: no integration id')
        return
    autoproc_status = edFactoryPlugin.loadPlugin(
        'EDPluginISPyBStoreAutoProcStatusv1_4')
    status_input = XSDataInputStoreAutoProcStatus()
    status_input.autoProcIntegrationId = integration_id
    status_data = AutoProcStatus()
    status_data.step = step
    status_data.status = status
    status_data.comments = comments
    status_input.AutoProcStatus = status_data

    autoproc_status.dataInput = status_input

    autoproc_status.executeSynchronous()
__author__="Thomas Boeglin"
__license__ = "GPLv3+"
__copyright__ = "ESRF"

import os.path
import shutil

from EDPluginControl import EDPluginControl
from EDVerbose import EDVerbose

from XSDataCommon import XSDataString, XSDataBoolean, XSDataStatus
from XSDataBurnStrategy import XSDataInputXdsBurnStrategy, XSDataOutputXdsBurnStrategy
from EDFactoryPlugin import edFactoryPlugin

edFactoryPlugin.loadPlugin('EDPluginExecMinimalXds')
from XSDataAutoproc import XSDataMinimalXdsIn

from xdscfgparser import parse_xds_file, dump_xds_file

class EDPluginControlXdsBurnStrategy(EDPluginControl):
    """
    This plugin runs XDS with the specified input file, unit cell
    constants and spacegroup
    """


    def __init__(self):
        """
        """
        EDPluginControl.__init__(self)
__author__ = "Thomas Boeglin"
__license__ = "GPLv3+"
__copyright__ = "ESRF"

import os.path
import shutil

from EDPluginControl import EDPluginControl
from EDVerbose import EDVerbose

from XSDataCommon import XSDataString, XSDataBoolean, XSDataStatus
from XSDataBurnStrategy import XSDataInputXdsBurnStrategy, XSDataOutputXdsBurnStrategy
from EDFactoryPlugin import edFactoryPlugin

edFactoryPlugin.loadPlugin('EDPluginExecMinimalXds')
from XSDataAutoproc import XSDataMinimalXdsIn

from xdscfgparser import parse_xds_file, dump_xds_file


class EDPluginControlXdsBurnStrategy(EDPluginControl):
    """
    This plugin runs XDS with the specified input file, unit cell
    constants and spacegroup
    """
    def __init__(self):
        """
        """
        EDPluginControl.__init__(self)
        self.setXSDataInputClass(XSDataInputXdsBurnStrategy)