Exemple #1
0
# Append the EDNA kernel source directory to the python path

if not os.environ.has_key("EDNA_HOME"):
    strProgramPath = os.path.abspath(sys.argv[0])
    lPath = strProgramPath.split(os.sep)
    if len(lPath) > 3:
        strEdnaHomePath = os.sep.join(lPath[:-3])
    else:
        raise RuntimeError("Problem in the EDNA_HOME path ... %s" % strEdnaHomePath)
        sys.exit()
    os.environ["EDNA_HOME"] = strEdnaHomePath

sys.path.append(os.path.join(os.environ["EDNA_HOME"], "kernel", "src"))
from EDFactoryPlugin import edFactoryPlugin
edFactoryPlugin.loadModule("XSDataEdnaSaxs")
from XSDataCommon import XSDataDouble, XSDataFile, XSDataString
from XSDataEdnaSaxs import XSDataInputSaxsAnalysisModeling
from EDLogging import EDLogging
from EDJob import EDJob
from EDThreading import Semaphore
from EDUtilsParallel import EDUtilsParallel
from EDStatus import EDStatus

class Reprocess(EDLogging):
    def __init__(self, strPluginName, iNbCpu=None):
        EDLogging.__init__(self)
        self.pluginName = strPluginName
        self.startTime = time.time()
        try:
            self.iNbCpu = int(iNbCpu)
from EDUtilsPath import EDUtilsPath
from EDHandlerXSDataISPyBv1_4 import EDHandlerXSDataISPyBv1_4

from EDFactoryPlugin import edFactoryPlugin
from EDUtilsMessenger import EDUtilsMessenger

from XSDataCommon import XSDataFile
from XSDataCommon import XSDataBoolean
from XSDataCommon import XSDataString
from XSDataCommon import XSDataInteger
from XSDataCommon import XSDataTime

from XSDataControlCrystFELv1_0 import XSDataInputControlCrystFEL
from XSDataControlCrystFELv1_0 import XSDataResultControlCrystFEL

edFactoryPlugin.loadModule('XSDataCrystFELv1_0')

from XSDataCrystFELv1_0 import XSDataInputCrystFEL

edFactoryPlugin.loadModule('XSDataISPyBv1_4')
# plugin input/output
from XSDataISPyBv1_4 import AutoProcContainer
from XSDataISPyBv1_4 import AutoProcProgramAttachment
from XSDataISPyBv1_4 import XSDataInputRetrieveDataCollection
from XSDataISPyBv1_4 import XSDataInputStoreAutoProc


edFactoryPlugin.loadModule("XSDataMXWaitFilev1_1")
from XSDataMXWaitFilev1_1 import XSDataInputMXWaitFile

class EDPluginControlCrystFELv1_0(EDPluginControl):
from XSDataCommon import XSDataFlux
from XSDataCommon import XSDataWavelength

from XSDataMXv1 import XSDataExperimentalCondition
from XSDataMXv1 import XSDataDiffractionPlan
from XSDataMXv1 import XSDataCollection
from XSDataMXv1 import XSDataSampleCrystalMM
from XSDataMXv1 import XSDataInputCharacterisation
from XSDataMXv1 import XSDataInputSubWedgeAssemble
from XSDataMXv1 import XSDataInputControlISPyB

from XSDataInterfacev1_3 import XSDataInputInterface
from XSDataInterfacev1_3 import XSDataResultInterface

from EDFactoryPlugin import edFactoryPlugin
edFactoryPlugin.loadModule('XSDataISPyBv1_4')
# add comments to data collection and data collection group
from XSDataISPyBv1_4 import XSDataInputRetrieveDataCollection
from XSDataISPyBv1_4 import XSDataInputISPyBUpdateDataCollectionGroupComment




class EDPluginControlInterfacev1_3(EDPluginControl):
    """
    This is the common class to all plugins managing user interfaces
    """

    def __init__ (self):
        """
        """
Exemple #4
0
    pyLPath = pyStrProgramPath.split(os.sep)
    if len(pyLPath) > 3:
        pyStrEdnaHomePath = os.sep.join(pyLPath[:-3])
    else:
        print ("Problem in the EDNA_HOME path ..." + pyStrEdnaHomePath)
        sys.exit()
    os.environ["EDNA_HOME"] = pyStrEdnaHomePath

sys.path.append(os.path.join(os.environ["EDNA_HOME"], "kernel", "src"))
from EDLogging import EDLogging
from EDFactoryPlugin  import edFactoryPlugin
from EDJob import EDJob
from EDThreading import Semaphore
from EDUtilsParallel import EDUtilsParallel
from EDStatus import EDStatus
edFactoryPlugin.loadModule("XSDataBioSaxsv1_0")
import XSDataBioSaxsv1_0

class Reprocess(EDLogging):
    def __init__(self, strPluginName, iNbCpu=None):
        EDLogging.__init__(self)
        self.pluginName = strPluginName
        self.startTime = time.time()
        try:
            self.iNbCpu = int(iNbCpu)
        except:
            self.iNbCpu = EDUtilsParallel.detectNumberOfCPUs()

        self.screen("Initializing Reprocess with max %i jobs in parallel." % self.iNbCpu)
        self.__semaphoreNbThreads = Semaphore(self.iNbCpu)
        EDUtilsParallel.initializeNbThread(self.iNbCpu)
Exemple #5
0
import socket

from EDPluginControl import EDPluginControl
from EDHandlerESRFPyarchv1_0 import EDHandlerESRFPyarchv1_0
from EDUtilsPath import EDUtilsPath
from EDHandlerXSDataISPyBv1_4 import EDHandlerXSDataISPyBv1_4

from EDFactoryPlugin import edFactoryPlugin
from EDUtilsMessenger import EDUtilsMessenger

from XSDataCommon import XSDataString, XSDataDouble

from XSDataControlCrystFELv1_0 import XSDataInputControlCrystFEL
from XSDataControlCrystFELv1_0 import XSDataResultControlCrystFEL

edFactoryPlugin.loadModule('XSDataCrystFELv1_0')

from XSDataCrystFELv1_0 import XSDataInputCrystFEL
from XSDataCrystFELv1_0 import XSDataResultCrystFEL

edFactoryPlugin.loadModule('XSDataISPyBv1_4')

from XSDataISPyBv1_4 import AutoProcContainer, AutoProc
from XSDataISPyBv1_4 import AutoProcProgram, AutoProcProgramContainer, AutoProcStatus, AutoProcProgramAttachment
from XSDataISPyBv1_4 import AutoProcScaling, AutoProcScalingContainer, AutoProcScalingStatistics
from XSDataISPyBv1_4 import AutoProcIntegrationContainer, AutoProcIntegration
from XSDataISPyBv1_4 import XSDataInputStoreAutoProc, XSDataInputStoreAutoProcStatus
from XSDataISPyBv1_4 import XSDataInputRetrieveDataCollection
from XSDataISPyBv1_4 import XSDataInputISPyBUpdateDataCollectionGroupComment
from XSDataISPyBv1_4 import Image
from EDHandlerESRFPyarchv1_0 import EDHandlerESRFPyarchv1_0
from EDUtilsPath import EDUtilsPath

from EDFactoryPlugin import edFactoryPlugin

from XSDataCommon import XSDataFile
from XSDataCommon import XSDataBoolean
from XSDataCommon import XSDataString
from XSDataCommon import XSDataInteger
from XSDataCommon import XSDataTime
from XSDataCommon import XSDataDouble

from XSDataControlXia2DIALSv1_0 import XSDataInputControlXia2DIALS
from XSDataControlXia2DIALSv1_0 import XSDataResultControlXia2DIALS

edFactoryPlugin.loadModule('XSDataXia2DIALSv1_0')

from XSDataXia2DIALSv1_0 import XSDataInputXia2DIALS

edFactoryPlugin.loadModule('XSDataISPyBv1_4')
# plugin input/output
from XSDataISPyBv1_4 import AutoProcContainer
from XSDataISPyBv1_4 import AutoProcProgramAttachment
from XSDataISPyBv1_4 import XSDataInputRetrieveDataCollection
from XSDataISPyBv1_4 import XSDataInputStoreAutoProc
from XSDataISPyBv1_4 import XSDataResultStoreAutoProc


edFactoryPlugin.loadModule("XSDataMXWaitFilev1_1")
from XSDataMXWaitFilev1_1 import XSDataInputMXWaitFile
#
from __future__ import with_statement
__author__ = "Jérôme Kieffer"
__license__ = "GPLv3+"
__copyright__ = "2011 ESRF"
__status__ = "deprecated"
__date__ = "20120105"

import os, threading
from EDPluginControl        import EDPluginControl
from EDFactoryPlugin        import edFactoryPlugin
from EDConfiguration        import EDConfiguration
from EDUtilsPath            import EDUtilsPath
from EDUtilsPlatform        import EDUtilsPlatform
from EDUtilsArray           import EDUtilsArray
edFactoryPlugin.loadModule("XSDataBioSaxsv1_0")
edFactoryPlugin.loadModule("XSDataSAS")
edFactoryPlugin.loadModule("XSDataWaitFilev1_0")
edFactoryPlugin.loadModule("XSDataExecCommandLine")
from XSDataBioSaxsv1_0      import XSDataInputBioSaxsToSASv1_0, XSDataResultBioSaxsToSASv1_0
from XSDataSAS              import XSDataInputSolutionScattering
from XSDataWaitFilev1_0     import XSDataInputWaitFile
from XSDataExecCommandLine  import XSDataInputRsync
from XSDataCommon           import XSDataInteger, XSDataDouble, XSDataString, XSDataFile, XSPluginItem
architecture = EDUtilsPlatform.architecture
numpyPath = os.path.join(EDUtilsPath.EDNA_HOME, "libraries", "20090405-Numpy-1.3", architecture)
numpy = edFactoryPlugin.preImport("numpy", numpyPath)



class EDPluginBioSaxsToSASv1_0(EDPluginControl):
Exemple #8
0
# Append the EDNA kernel source directory to the python path

if not os.environ.has_key("EDNA_HOME"):
    strProgramPath = os.path.abspath(sys.argv[0])
    lPath = strProgramPath.split(os.sep)
    if len(lPath) > 3:
        strEdnaHomePath = os.sep.join(lPath[:-3])
    else:
        raise RuntimeError("Problem in the EDNA_HOME path ... %s" % strEdnaHomePath)
        sys.exit()
    os.environ["EDNA_HOME"] = strEdnaHomePath

sys.path.append(os.path.join(os.environ["EDNA_HOME"], "kernel", "src"))
from EDFactoryPlugin import edFactoryPlugin
edFactoryPlugin.loadModule("XSDataBioSaxsv1_0")
from XSDataCommon import XSDataDouble, XSDataFile, XSDataString
from XSDataBioSaxsv1_0 import XSDataInputBioSaxsSmartMergev1_0
from EDLogging import EDLogging
from EDJob import EDJob
from EDThreading import Semaphore
from EDUtilsParallel import EDUtilsParallel
from EDStatus import EDStatus

class Reprocess(EDLogging):
    def __init__(self, strPluginName, iNbCpu=None):
        EDLogging.__init__(self)
        self.pluginName = strPluginName
        self.startTime = time.time()
        try:
            self.iNbCpu = int(iNbCpu)
from XSDataCommon import XSDataImage
from XSDataCommon import XSDataAngle

from EDFactoryPluginStatic import EDFactoryPluginStatic

EDFactoryPluginStatic.loadModule("XSDataDozorv1_0")
from XSDataDozorv1_0 import XSDataInputDozor

from XSDataMXv1 import XSDataInputReadImageHeader

from XSDataControlDozorv1_0 import XSDataInputControlDozor
from XSDataControlDozorv1_0 import XSDataResultControlDozor
from XSDataControlDozorv1_0 import XSDataControlImageDozor
from XSDataControlDozorv1_0 import XSDataDozorInput

edFactoryPlugin.loadModule("XSDataISPyBv1_4")
from XSDataISPyBv1_4 import XSDataInputRetrieveDataCollection
from XSDataISPyBv1_4 import XSDataInputISPyBSetImageQualityIndicatorsPlot
from XSDataISPyBv1_4 import XSDataInputRetrieveDataCollection

edFactoryPlugin.loadModule("XSDataH5ToCBFv1_1")
from XSDataH5ToCBFv1_1 import XSDataInputH5ToCBF


class EDPluginControlDozorv1_0(EDPluginControl):
    """
    This plugin runs the Dozor program written by Sasha Popov
    """

    def __init__(self):
        EDPluginControl.__init__(self)
from EDHandlerESRFPyarchv1_0 import EDHandlerESRFPyarchv1_0
from EDUtilsPath import EDUtilsPath

from EDFactoryPlugin import edFactoryPlugin

from XSDataCommon import XSDataFile
from XSDataCommon import XSDataBoolean
from XSDataCommon import XSDataString
from XSDataCommon import XSDataInteger
from XSDataCommon import XSDataTime
from XSDataCommon import XSDataDouble

from XSDataControlAutoPROCv1_0 import XSDataInputControlAutoPROC
from XSDataControlAutoPROCv1_0 import XSDataResultControlAutoPROC

edFactoryPlugin.loadModule('XSDataAutoPROCv1_0')

from XSDataAutoPROCv1_0 import XSDataAutoPROCIdentifier
from XSDataAutoPROCv1_0 import XSDataInputAutoPROC

edFactoryPlugin.loadModule('XSDataISPyBv1_4')
# plugin input/output
from XSDataISPyBv1_4 import AutoProcContainer
from XSDataISPyBv1_4 import AutoProcProgramAttachment
from XSDataISPyBv1_4 import XSDataInputRetrieveDataCollection
from XSDataISPyBv1_4 import XSDataInputStoreAutoProc
from XSDataISPyBv1_4 import XSDataResultStoreAutoProc


edFactoryPlugin.loadModule("XSDataMXWaitFilev1_1")
from XSDataMXWaitFilev1_1 import XSDataInputMXWaitFile
#

__author__ = "Jérôme Kieffer"
__license__ = "GPLv3+"
__copyright__ = "ESRF"

import os, sys

from EDVerbose                          import EDVerbose
from EDAssert                           import EDAssert
from EDTestCasePluginExecute            import EDTestCasePluginExecute
from XSDataBioSaxsv1_0                  import XSDataResultBioSaxsHPLCv1_0
from EDFactoryPlugin                    import edFactoryPlugin
from EDUtilsParallel                    import EDUtilsParallel
# Needed for loading the plugin...
edFactoryPlugin.loadModule("EDInstallNumpyv1_3")
edFactoryPlugin.loadModule("EDInstallPILv1_1_7")
edFactoryPlugin.loadModule("EDInstallFabio_v0_0_7")
import numpy
from fabio.openimage import openimage


class EDTestCasePluginExecuteBioSaxsHPLCv1_0_autosub(EDTestCasePluginExecute):


    def __init__(self, _strTestName=None):
        EDTestCasePluginExecute.__init__(self, "EDPluginBioSaxsHPLCv1_0")
#        self.setConfigurationFile(os.path.join(self.getPluginTestsDataHome(),
#                                               "XSConfiguration_BioSaxsHPLC.xml"))
        self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), \
                                           "XSDataInputBioSaxsHPLC_autosub.xml"))
from EDFactoryPlugin import edFactoryPlugin

from XSDataCommon import XSDataFile, XSDataBoolean, XSDataString
from XSDataCommon import  XSDataInteger, XSDataTime, XSDataFloat

from XSDataAutoproc import XSDataAutoprocInput
from XSDataAutoproc import XSDataResCutoff
from XSDataAutoproc import XSDataMinimalXdsIn
from XSDataAutoproc import XSDataXdsGenerateInput
from XSDataAutoproc import XSDataXdsOutputFile
from XSDataAutoproc import XSDataXscaleInput
from XSDataAutoproc import XSDataXscaleInputFile
from XSDataAutoproc import XSDataAutoprocInput
from XSDataAutoproc import XSDataAutoprocImport

edFactoryPlugin.loadModule('XSDataWaitFilev1_0')
from XSDataWaitFilev1_0 import XSDataInputWaitFile

edFactoryPlugin.loadModule('XSDataISPyBv1_4')
# plugin input/output
from XSDataISPyBv1_4 import XSDataInputStoreAutoProc
from XSDataISPyBv1_4 import XSDataResultStoreAutoProc

# what actually goes inside
from XSDataISPyBv1_4 import AutoProcContainer, AutoProc, AutoProcScalingContainer
from XSDataISPyBv1_4 import AutoProcScaling, AutoProcScalingStatistics
from XSDataISPyBv1_4 import AutoProcIntegrationContainer, AutoProcIntegration
from XSDataISPyBv1_4 import AutoProcProgramContainer, AutoProcProgram
from XSDataISPyBv1_4 import AutoProcProgramAttachment
from XSDataISPyBv1_4 import Image
from XSDataISPyBv1_4 import XSDataInputStoreAutoProc
Exemple #13
0
from EDFactoryPlugin import edFactoryPlugin

from XSDataCommon import XSDataFile, XSDataBoolean, XSDataString
from XSDataCommon import XSDataInteger, XSDataTime, XSDataFloat

from XSDataAutoproc import XSDataAutoprocInput
from XSDataAutoproc import XSDataResCutoff
from XSDataAutoproc import XSDataMinimalXdsIn
from XSDataAutoproc import XSDataXdsGenerateInput
from XSDataAutoproc import XSDataXdsOutputFile
from XSDataAutoproc import XSDataXscaleInput
from XSDataAutoproc import XSDataXscaleInputFile
from XSDataAutoproc import XSDataAutoprocInput
from XSDataAutoproc import XSDataAutoprocImport

edFactoryPlugin.loadModule('XSDataWaitFilev1_0')
from XSDataWaitFilev1_0 import XSDataInputWaitFile

edFactoryPlugin.loadModule('XSDataISPyBv1_4')
# plugin input/output
from XSDataISPyBv1_4 import XSDataInputStoreAutoProc
from XSDataISPyBv1_4 import XSDataResultStoreAutoProc

# what actually goes inside
from XSDataISPyBv1_4 import AutoProcContainer, AutoProc, AutoProcScalingContainer
from XSDataISPyBv1_4 import AutoProcScaling, AutoProcScalingStatistics
from XSDataISPyBv1_4 import AutoProcIntegrationContainer, AutoProcIntegration
from XSDataISPyBv1_4 import AutoProcProgramContainer, AutoProcProgram
from XSDataISPyBv1_4 import AutoProcProgramAttachment
from XSDataISPyBv1_4 import Image
from XSDataISPyBv1_4 import XSDataInputStoreAutoProc
#

__author__ = "irakli"
__license__ = "GPLv3+"
__copyright__ = "DLS"
__status__ = "deprecated"

import os, itertools, math
from math import pi, cos, sin

from EDVerbose import EDVerbose
from EDPluginExecProcessScript import EDPluginExecProcessScript
from XSDataEdnaSaxs import XSDataInputSupcomb, XSDataResultSupcomb
from XSDataCommon import XSDataString, XSDataFile, XSDataDouble, XSDataRotation, XSDataVectorDouble
from EDFactoryPlugin import edFactoryPlugin
edFactoryPlugin.loadModule("EDPDBFilter")
from EDPDBFilter import EDPDBFilter

class EDPluginExecSupcombv0_1(EDPluginExecProcessScript):
    """
    Execution plugin for ab-initio model determination using Supcomb
    """


    def __init__(self):
        """
        """
        EDPluginExecProcessScript.__init__(self)
        self.setXSDataInputClass(XSDataInputSupcomb)

        self.__bEnantiomorphs = True
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

__author__ = "irakli"
__license__ = "GPLv3+"
__copyright__ = "DLS"

import os, itertools, math
from math import pi, cos, sin

from EDVerbose import EDVerbose
from EDPluginExecProcessScript import EDPluginExecProcessScript
from XSDataEdnaSaxs import XSDataInputSupcomb, XSDataResultSupcomb
from XSDataCommon import XSDataString, XSDataFile, XSDataDouble, XSDataRotation, XSDataVectorDouble
from EDFactoryPlugin import edFactoryPlugin
edFactoryPlugin.loadModule("EDPDBFilter")
from EDPDBFilter import EDPDBFilter

class EDPluginExecSupcombv0_1(EDPluginExecProcessScript):
    """
    Execution plugin for ab-initio model determination using Supcomb
    """


    def __init__(self):
        """
        """
        EDPluginExecProcessScript.__init__(self)
        self.setXSDataInputClass(XSDataInputSupcomb)

        self.__bEnantiomorphs = True
from EDHandlerESRFPyarchv1_0 import EDHandlerESRFPyarchv1_0
from EDUtilsPath import EDUtilsPath
from EDHandlerXSDataISPyBv1_4 import EDHandlerXSDataISPyBv1_4

from EDFactoryPlugin import edFactoryPlugin

from XSDataCommon import XSDataFile
from XSDataCommon import XSDataBoolean
from XSDataCommon import XSDataString
from XSDataCommon import XSDataInteger
from XSDataCommon import XSDataTime

from XSDataControlXia2DIALSv1_0 import XSDataInputControlXia2DIALS
from XSDataControlXia2DIALSv1_0 import XSDataResultControlXia2DIALS

edFactoryPlugin.loadModule('XSDataXia2DIALSv1_0')

from XSDataXia2DIALSv1_0 import XSDataInputXia2DIALS

edFactoryPlugin.loadModule('XSDataISPyBv1_4')
# plugin input/output
from XSDataISPyBv1_4 import AutoProcContainer
from XSDataISPyBv1_4 import AutoProcProgramAttachment
from XSDataISPyBv1_4 import XSDataInputRetrieveDataCollection
from XSDataISPyBv1_4 import XSDataInputStoreAutoProc

edFactoryPlugin.loadModule("XSDataMXWaitFilev1_1")
from XSDataMXWaitFilev1_1 import XSDataInputMXWaitFile


class EDPluginControlXia2DIALSv1_0(EDPluginControl):
import os, sys
if sys.version_info < (3, 0):
    from Queue import Queue
else:
    from queue import Queue
from EDVerbose                  import EDVerbose
from EDPluginControl            import EDPluginControl
from EDUtilsArray               import EDUtilsArray
from EDFactoryPlugin            import edFactoryPlugin as EDFactoryPluginStatic
from EDUtilsPlatform            import EDUtilsPlatform
from EDUtilsParallel            import EDUtilsParallel
from EDShare                    import EDShare
from EDThreading                import Semaphore
from EDUtilsPath                import EDUtilsPath
EDFactoryPluginStatic.loadModule("XSDataFullFieldXAS")
EDFactoryPluginStatic.loadModule("EDPluginAccumulatorv1_0")
from EDPluginAccumulatorv1_0    import EDPluginAccumulatorv1_0
from XSDataCommon               import XSDataString, XSDataBoolean, XSDataDouble, XSDataInteger, \
    XSDataImageExt
EDFactoryPluginStatic.loadModule("XSDataFullFieldXAS")
from XSDataFullFieldXAS         import XSDataInputAlignStack
from XSDataFullFieldXAS         import XSDataResultAlignStack
EDFactoryPluginStatic.loadModule("XSDataHDF5v1_0")
from XSDataHDF5v1_0             import XSDataInputHDF5StackImages
EDFactoryPluginStatic.loadModule("XSDataShiftv1_0")
from XSDataShiftv1_0            import XSDataInputShiftImage, XSDataInputMeasureOffset
EDFactoryPluginStatic.loadModule("XSDataAccumulatorv1_0")
from XSDataAccumulatorv1_0      import XSDataQuery, XSDataInputAccumulator
EDFactoryPluginStatic.loadModule("EDPluginAccumulatorv1_0")
EDFactoryPluginStatic.loadModule("EDPluginExecMeasureOffsetv1_0")
Exemple #18
0
from EDFactoryPlugin import edFactoryPlugin

from EDHandlerXSDataISPyBv1_4 import EDHandlerXSDataISPyBv1_4

from XSDataCommon import XSDataFile
from XSDataCommon import XSDataBoolean
from XSDataCommon import XSDataString
from XSDataCommon import XSDataInteger
from XSDataCommon import XSDataTime
from XSDataCommon import XSDataDouble

from XSDataControlXDSAPPv1_0 import XSDataInputControlXDSAPP
from XSDataControlXDSAPPv1_0 import XSDataResultControlXDSAPP

edFactoryPlugin.loadModule('XSDataXDSAPPv1_0')

from XSDataXDSAPPv1_0 import XSDataInputXDSAPP

edFactoryPlugin.loadModule('XSDataISPyBv1_4')
# plugin input/output
from XSDataISPyBv1_4 import AutoProc
from XSDataISPyBv1_4 import Image
from XSDataISPyBv1_4 import AutoProcProgram
from XSDataISPyBv1_4 import AutoProcContainer
from XSDataISPyBv1_4 import AutoProcIntegration
from XSDataISPyBv1_4 import AutoProcScaling
from XSDataISPyBv1_4 import AutoProcScalingContainer
from XSDataISPyBv1_4 import AutoProcScalingStatistics
from XSDataISPyBv1_4 import AutoProcIntegrationContainer
from XSDataISPyBv1_4 import AutoProcProgramContainer
Exemple #19
0
#
from __future__ import with_statement
__author__ = "Jérôme Kieffer"
__license__ = "GPLv3+"
__copyright__ = "2011 ESRF"
__status__ = "Development"
__date__ = "20120105"

import os, threading
from EDPluginControl import EDPluginControl
from EDFactoryPlugin import edFactoryPlugin
from EDConfiguration import EDConfiguration
from EDUtilsPath import EDUtilsPath
from EDUtilsPlatform import EDUtilsPlatform
from EDUtilsArray import EDUtilsArray
edFactoryPlugin.loadModule("XSDataBioSaxsv1_0")
edFactoryPlugin.loadModule("XSDataSAS")
edFactoryPlugin.loadModule("XSDataWaitFilev1_0")
edFactoryPlugin.loadModule("XSDataExecCommandLine")
from XSDataBioSaxsv1_0 import XSDataInputBioSaxsToSASv1_0, XSDataResultBioSaxsToSASv1_0
from XSDataSAS import XSDataInputSolutionScattering
from XSDataWaitFilev1_0 import XSDataInputWaitFile
from XSDataExecCommandLine import XSDataInputRsync
from XSDataCommon import XSDataInteger, XSDataDouble, XSDataString, XSDataFile, XSPluginItem
architecture = EDUtilsPlatform.architecture
numpyPath = os.path.join(EDUtilsPath.EDNA_HOME, "libraries",
                         "20090405-Numpy-1.3", architecture)
numpy = edFactoryPlugin.preImport("numpy", numpyPath)


class EDPluginBioSaxsToSASv1_0(EDPluginControl):
__license__ = "GPLv3+"
__copyright__ = "ESRF"


from shutil import copyfile
import os.path

from EDPluginControl import EDPluginControl
from EDVerbose import EDVerbose
from EDFactoryPlugin import edFactoryPlugin

from XSDataCommon import XSDataString
from XSDataCommon import XSDataDouble
from XSDataCommon import XSDataBoolean

edFactoryPlugin.loadModule('XSDataXDSv1_0')

from XSDataXDSv1_0 import XSDataMinimalXdsIn
from XSDataXDSv1_0 import XSDataXdsGenerateInput
from XSDataXDSv1_0 import XSDataXdsGenerateOutput
from xdscfgparser import parse_xds_file, dump_xds_file

class EDPluginXDSGeneratev1_0(EDPluginControl):

    def __init__(self):
        EDPluginControl.__init__(self)
        self.setXSDataInputClass(XSDataXdsGenerateInput)
        self.setDataOutput(XSDataXdsGenerateOutput())

    def checkParameters(self):
        """
from XSDataCommon import XSDataFile
from XSDataCommon import XSDataImage
from XSDataCommon import XSDataAngle

from EDFactoryPluginStatic import EDFactoryPluginStatic
EDFactoryPluginStatic.loadModule("XSDataDozorv1_0")
from XSDataDozorv1_0 import XSDataInputDozor

from XSDataMXv1 import XSDataInputReadImageHeader

from XSDataControlDozorv1_0 import XSDataInputControlDozor
from XSDataControlDozorv1_0 import XSDataResultControlDozor
from XSDataControlDozorv1_0 import XSDataControlImageDozor
from XSDataControlDozorv1_0 import XSDataDozorInput

edFactoryPlugin.loadModule('XSDataISPyBv1_4')
from XSDataISPyBv1_4 import XSDataInputRetrieveDataCollection
from XSDataISPyBv1_4 import XSDataInputISPyBSetImageQualityIndicatorsPlot
from XSDataISPyBv1_4 import XSDataInputRetrieveDataCollection

edFactoryPlugin.loadModule('XSDataH5ToCBFv1_1')
from XSDataH5ToCBFv1_1 import XSDataInputH5ToCBF



class EDPluginControlDozorv1_0(EDPluginControl):
    """
    This plugin runs the Dozor program written by Sasha Popov
    """

Exemple #22
0
from XSDataCommon import XSDataWavelength

from XSDataMXv1 import XSDataExperimentalCondition
from XSDataMXv1 import XSDataDiffractionPlan
from XSDataMXv1 import XSDataCollection
from XSDataMXv1 import XSDataSampleCrystalMM
from XSDataMXv1 import XSDataInputCharacterisation
from XSDataMXv1 import XSDataInputSubWedgeAssemble
from XSDataMXv1 import XSDataInputControlISPyB

from XSDataInterfacev1_3 import XSDataInputInterface
from XSDataInterfacev1_3 import XSDataResultInterface

from EDFactoryPlugin import edFactoryPlugin

edFactoryPlugin.loadModule('XSDataISPyBv1_4')
# add comments to data collection and data collection group
from XSDataISPyBv1_4 import XSDataInputRetrieveDataCollection
from XSDataISPyBv1_4 import XSDataInputISPyBUpdateDataCollectionGroupComment


class EDPluginControlInterfacev1_3(EDPluginControl):
    """
    This is the common class to all plugins managing user interfaces
    """
    def __init__(self):
        """
        """
        EDPluginControl.__init__(self)

        self.setXSDataInputClass(XSDataInputInterface)
#

__author__ = "Jérôme Kieffer"
__license__ = "GPLv3+"
__copyright__ = "ESRF"

import os, sys

from EDVerbose import EDVerbose
from EDAssert import EDAssert
from EDTestCasePluginExecute import EDTestCasePluginExecute
from XSDataBioSaxsv1_0 import XSDataResultBioSaxsHPLCv1_0
from EDFactoryPlugin import edFactoryPlugin
from EDUtilsParallel import EDUtilsParallel
# Needed for loading the plugin...
edFactoryPlugin.loadModule("EDInstallNumpyv1_3")
edFactoryPlugin.loadModule("EDInstallPILv1_1_7")
edFactoryPlugin.loadModule("EDInstallFabio_v0_0_7")
import numpy
from fabio.openimage import openimage


class EDTestCasePluginExecuteBioSaxsHPLCv1_0_autosub(EDTestCasePluginExecute):
    def __init__(self, _strTestName=None):
        EDTestCasePluginExecute.__init__(self, "EDPluginBioSaxsHPLCv1_0")
        #        self.setConfigurationFile(os.path.join(self.getPluginTestsDataHome(),
        #                                               "XSConfiguration_BioSaxsHPLC.xml"))
        self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), \
                                           "XSDataInputBioSaxsHPLC_autosub.xml"))
        self.setReferenceDataOutputFile(os.path.join(self.getPluginTestsDataHome(), \
                                                     "XSDataResultBioSaxsHPLC_autosub_v1_0.xml"))
from __future__ import with_statement

__author__ = "Jérôme Kieffer"
__license__ = "GPLv3+"
__copyright__ = "ESRF"
__date__ = "20140923"
__status__ = "production"

import os, time
from EDVerbose              import EDVerbose
from EDPluginControl        import EDPluginControl
from EDFactoryPlugin        import edFactoryPlugin
from EDThreading            import Semaphore
from EDUtilsUnit            import EDUtilsUnit
from EDUtilsArray           import EDUtilsArray
edFactoryPlugin.loadModule("XSDataEdnaSaxs")
edFactoryPlugin.loadModule("XSDataBioSaxsv1_0")
edFactoryPlugin.loadModule("XSDataWaitFilev1_0")
from XSDataWaitFilev1_0     import XSDataInputWaitFile
from XSDataBioSaxsv1_0      import XSDataInputBioSaxsProcessOneFilev1_0, XSDataResultBioSaxsProcessOneFilev1_0
from XSDataCommon           import XSDataStatus, XSDataString, XSDataFile, XSDataInteger, XSDataTime
import fabio
import numpy
import pyFAI

if [int(i) for i in pyFAI.version.split(".")[:2]] <= [0,8]:
    EDVerbose.ERROR("Too old version of pyFAI detected ... expect to fail !")


class EDPluginBioSaxsProcessOneFilev1_4(EDPluginControl):
    """
Exemple #25
0
from __future__ import with_statement

__author__ = "Jérôme Kieffer, Alejandro Antolinos, Martha Brennich"
__contact__ = "*****@*****.**"
__license__ = "GPLv3+"
__copyright__ = "2015, ESRF Grenoble, EMBL Grenoble"
__date__ = "20150117"
__status__ = "production"

import os, shutil, time
from math import log
from EDPluginControl import EDPluginControl
from EDFactoryPluginStatic import EDFactoryPluginStatic
from EDFactoryPlugin import edFactoryPlugin
from EDThreading import Semaphore
edFactoryPlugin.loadModule("XSDataExecCommandLine")
EDFactoryPluginStatic.loadModule("XSDataEdnaSaxs")
EDFactoryPluginStatic.loadModule("XSDataBioSaxsv1_0")
EDFactoryPluginStatic.loadModule("XSDataWaitFilev1_0")
from XSDataCommon import XSDataString, XSDataStatus, XSDataFile, XSDataTime, XSDataInteger
from XSDataBioSaxsv1_0      import XSDataInputBioSaxsSmartMergev1_0, XSDataResultBioSaxsSmartMergev1_0, \
                            XSDataInputBioSaxsISPyBv1_0
from XSDataEdnaSaxs import XSDataInputDataver, XSDataInputAutoSub, XSDataInputDatop, XSDataInputSaxsAnalysis
from XSDataWaitFilev1_0 import XSDataInputWaitMultiFile
from XSDataExecCommandLine import XSDataInputRsync
from freesas.cormap import gof
from numpy import loadtxt


def cmp(a, b):
    """
#
from __future__ import with_statement

__author__ = "Jérôme Kieffer"
__license__ = "GPLv3+"
__copyright__ = "ESRF"
__date__ = "20130110"
__status__ = "deprecated"

import os, time
from EDVerbose              import EDVerbose
from EDPluginControl        import EDPluginControl
from EDFactoryPlugin        import edFactoryPlugin
from EDThreading            import Semaphore
from EDUtilsUnit            import EDUtilsUnit
edFactoryPlugin.loadModule("XSDataEdnaSaxs")
edFactoryPlugin.loadModule("XSDataBioSaxsv1_0")
edFactoryPlugin.loadModule("XSDataWaitFilev1_0")
from XSDataWaitFilev1_0     import XSDataInputWaitFile
from XSDataBioSaxsv1_0      import XSDataInputBioSaxsProcessOneFilev1_0, XSDataResultBioSaxsProcessOneFilev1_0
from XSDataCommon           import XSDataStatus, XSDataString, XSDataFile, XSDataInteger, XSDataTime
import fabio
import numpy
import pyFAI

if [int(i) for i in pyFAI.version.split(".")[:2]] <= [0,8]:
    EDVerbose.ERROR("Too old version of pyFAI detected ... expect to fail !")


class EDPluginBioSaxsProcessOneFilev1_3(EDPluginControl):
    """
__author__ = "Thomas Boeglin"
__license__ = "GPLv3+"
__copyright__ = "ESRF"

import os.path
import shutil

from EDPluginControl import EDPluginControl
from EDVerbose import EDVerbose
from EDFactoryPlugin import edFactoryPlugin

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

edFactoryPlugin.loadModule('XSDataXDSv1_0')
from XSDataXDSv1_0 import XSDataMinimalXdsIn

from xdscfgparser import parse_xds_file, dump_xds_file


class EDPluginControlXdsBurnStrategyv1_0(EDPluginControl):
    """
    This plugin runs XDS with the specified input file, unit cell
    constants and spacegroup
    """
    def __init__(self):
        """
        """
        EDPluginControl.__init__(self)
        self.setXSDataInputClass(XSDataInputXdsBurnStrategy)
Exemple #28
0
import os, sys
if sys.version_info < (3, 0):
    from Queue import Queue
else:
    from queue import Queue
from EDVerbose import EDVerbose
from EDPluginControl import EDPluginControl
from EDUtilsArray import EDUtilsArray
from EDFactoryPlugin import edFactoryPlugin as EDFactoryPluginStatic
from EDUtilsPlatform import EDUtilsPlatform
from EDUtilsParallel import EDUtilsParallel
from EDShare import EDShare
from EDThreading import Semaphore
from EDUtilsPath import EDUtilsPath

EDFactoryPluginStatic.loadModule("XSDataFullFieldXAS")
EDFactoryPluginStatic.loadModule("EDPluginAccumulatorv1_0")
from EDPluginAccumulatorv1_0 import EDPluginAccumulatorv1_0
from XSDataCommon               import XSDataString, XSDataBoolean, XSDataDouble, XSDataInteger, \
    XSDataImageExt

EDFactoryPluginStatic.loadModule("XSDataFullFieldXAS")
from XSDataFullFieldXAS import XSDataInputAlignStack
from XSDataFullFieldXAS import XSDataResultAlignStack

EDFactoryPluginStatic.loadModule("XSDataHDF5v1_0")
from XSDataHDF5v1_0 import XSDataInputHDF5StackImages

EDFactoryPluginStatic.loadModule("XSDataShiftv1_0")
from XSDataShiftv1_0 import XSDataInputShiftImage, XSDataInputMeasureOffset
from __future__ import with_statement

__author__ = "Jérôme Kieffer, Alejandro Antolinos, Martha Brennich"
__contact__ = "*****@*****.**"
__license__ = "GPLv3+"
__copyright__ = "2015, ESRF Grenoble, EMBL Grenoble"
__date__ = "20150117"
__status__ = "production"

import os, shutil, time
from math import log
from EDPluginControl import EDPluginControl
from EDFactoryPluginStatic import EDFactoryPluginStatic
from EDFactoryPlugin        import edFactoryPlugin
from EDThreading import Semaphore
edFactoryPlugin.loadModule("XSDataExecCommandLine")
EDFactoryPluginStatic.loadModule("XSDataEdnaSaxs")
EDFactoryPluginStatic.loadModule("XSDataBioSaxsv1_0")
EDFactoryPluginStatic.loadModule("XSDataWaitFilev1_0")
from XSDataCommon           import XSDataString, XSDataStatus, XSDataFile, XSDataTime, XSDataInteger
from XSDataBioSaxsv1_0      import XSDataInputBioSaxsSmartMergev1_0, XSDataResultBioSaxsSmartMergev1_0, \
                            XSDataInputBioSaxsISPyBv1_0
from XSDataEdnaSaxs         import XSDataInputDataver, XSDataInputAutoSub, XSDataInputDatop, XSDataInputSaxsAnalysis
from XSDataWaitFilev1_0     import XSDataInputWaitMultiFile
from XSDataExecCommandLine  import XSDataInputRsync
from freesas.cormap import gof
from numpy import loadtxt

def cmp(a, b):
    """
    Helper function to sort XSDataFile object