Exemplo n.º 1
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginExecMtz2Variousv1_0.process")
     self.htmlPagePath, self.jsonPath = self.createHtmlPage()
Exemplo n.º 2
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     EDVerbose.DEBUG("EDPluginExecDIMPLEPHASERv10.process")
Exemplo n.º 3
0
 def process(self, _edObject = None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginMinimalXds.process")
Exemplo n.º 4
0
 def process(self, _oedObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginXDSv1_0.process")
     # It should not be possible to execute this abstract plugin
     if self.getPluginName() == "EDPluginXDSv1_0":
         raise ExectuteAbstractPluginError
Exemplo n.º 5
0
 def process(self):
     self.DEBUG('Truncate: process')
     EDPluginExecProcessScript.process(self)
Exemplo n.º 6
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginMOSFLMv10.process")
     # It should not be possible to execute this abstract plugin
     if (self.getPluginName() == "EDPluginMOSFLMv10"):
         raise RuntimeError, "ExectuteAbstractPluginError"
Exemplo n.º 7
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginExecDamstartv0_2.process")
 def process(self, _edObject = None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginExecMtz2Variousv1_0.process")
Exemplo n.º 9
0
    def process(self, _edObject = None):
        EDPluginExecProcessScript.process(self)
        EDVerbose.DEBUG('*** EDPluginExecDIMPLECADv10.process')

        return
 def process(self, _edObject = None):
     EDPluginExecProcessScript.process(self)
     EDVerbose.DEBUG("EDPluginExecDIMPLEPointlessOriginv10.process")
     
     return
Exemplo n.º 11
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginExecDamstartv0_3.process")
Exemplo n.º 12
0
 def process(self, _oedObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginXDSv1_0.process")
     # It should not be possible to execute this abstract plugin
     if (self.getPluginName() == "EDPluginXDSv1_0"):
          raise ExectuteAbstractPluginError
Exemplo n.º 13
0
 def process(self):
     self.DEBUG('XdsToSca: process')
     EDPluginExecProcessScript.process(self)
Exemplo n.º 14
0
 def process(self, _edObject = None):
     self.DEBUG("EDPluginXscale.process")
     EDPluginExecProcessScript.process(self)
Exemplo n.º 15
0
 def process(self):
     self.DEBUG('XdsToSca: process')
     EDPluginExecProcessScript.process(self)
Exemplo n.º 16
0
 def process(self):
     self.DEBUG('Uniqueify: process')
     EDPluginExecProcessScript.process(self)
Exemplo n.º 17
0
 def process(self):
     self.DEBUG('Truncate: process')
     EDPluginExecProcessScript.process(self)
Exemplo n.º 18
0
 def process(self):
     self.DEBUG('Pointless: process')
     EDPluginExecProcessScript.process(self)
Exemplo n.º 19
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     EDVerbose.DEBUG("EDPluginSTACv10.process")
     # It should not be possible to execute this abstract plugin
     if (self.getPluginName() == "EDPluginSTACv10"):
          raise ExectuteAbstractPluginError
Exemplo n.º 20
0
 def process(self, _edObject = None):
     EDPluginExecProcessScript.process(self)
     EDVerbose.DEBUG("EDPluginExecDIMPLEPHASERv10.process")
Exemplo n.º 21
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginExecMtz2Variousv1_0.process")
Exemplo n.º 22
0
    def process(self, _edObject = None):
        EDPluginExecProcessScript.process(self)
        EDVerbose.DEBUG("*** EDPluginExecDIMPLEUNIQUEv10.process")

        return
Exemplo n.º 23
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginExecGnomv0_2.process")
Exemplo n.º 24
0
    def process(self, _edObject=None):
        EDPluginExecProcessScript.process(self)
        EDVerbose.DEBUG('*** EDPluginExecDIMPLETRUNCATEv10.process')

        return
Exemplo n.º 25
0
    def process(self, _edObject=None):
        EDPluginExecProcessScript.process(self)
        EDVerbose.DEBUG("*** EDPluginExecDIMPLEUNIQUEv10.process")

        return
Exemplo n.º 26
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     EDVerbose.DEBUG("EDPluginExecGnomv0_1.process")
Exemplo n.º 27
0
    def process(self):
        EDPluginExecProcessScript.process(self)
        self.DEBUG("EDPluginExecProcessScriptAutoRgv1_0.process")
        # Create some output data
        #        2.83326 0.011646 2.04258e+07 18565.3 47 81 0.783626 1 bioSaxsMerged.dat
        strOutput = self.readProcessLogFile()
        xsDataResult = XSDataResultAutoRg()
        dic_Rg = {}  #key: filename, value: XSDataAutoRg
        listXSDOut = []
        for line in strOutput.split(os.linesep):
            words = line.split(None, 8)
            if len(words) < 8:
                break
            try:
                xsData = XSDataAutoRg()
                filename = words[-1]
                xsData.rg = XSDataLength(float(words[0]))
                xsData.rgStdev = XSDataLength(float(words[1]))
                xsData.i0 = XSDataDouble(float(words[2]))
                xsData.i0Stdev = XSDataDouble(float(words[3]))
                xsData.firstPointUsed = XSDataInteger(int(words[4]))
                xsData.lastPointUsed = XSDataInteger(int(words[5]))
                xsData.quality = XSDataDouble(float(words[6]))
                xsData.isagregated = XSDataDouble(float(words[7]))
            except Exception:
                strError = "Error in parsing output:" + line
                self.error(strError)
                self.setFailure()
            else:
                xsData.filename = XSDataFile(XSDataString(filename))
                dic_Rg[filename] = xsData
#                listXSDOut.append(xsData)

        if self.isFailure():
            # Change failure output for ATSAS version >= 2.5 to micmic old version
            strErrOutput = self.readProcessErrorLogFile()
            for line in strErrOutput.split(os.linesep):
                if 'Not enough valid data' in line:
                    words = line.split()
                    try:
                        xsData = XSDataAutoRg()
                        filename = words[-1].strip("'.")
                        xsData.rg = XSDataLength(0.0)
                        xsData.rgStdev = XSDataLength(0.0)
                        xsData.i0 = XSDataDouble(0.0)
                        xsData.i0Stdev = XSDataDouble(0.0)
                        xsData.firstPointUsed = XSDataInteger(0)
                        xsData.lastPointUsed = XSDataInteger(0)
                        xsData.quality = XSDataDouble(0.0)
                        xsData.isagregated = XSDataDouble(0.0)
                    except Exception:
                        strError = "Error in parsing output:" + line
                        self.error(strError)
                        self.setFailure()
                    else:
                        xsData.filename = XSDataFile(XSDataString(filename))
                        dic_Rg[filename] = xsData
        if self.isFailure() and dic_Rg:
            # we have some data ... unset the failure flag
            self.setFailure(False)
        xsData_zero = XSDataAutoRg(isagregated=XSDataDouble(1.0),
                                   quality=XSDataDouble(0.0),
                                   lastPointUsed=XSDataInteger(0),
                                   firstPointUsed=XSDataInteger(0),
                                   i0Stdev=XSDataDouble(0.0),
                                   i0=XSDataDouble(0.0),
                                   rgStdev=XSDataLength(0.0),
                                   rg=XSDataLength(0.0))
        for filename in self.inputCurve:
            if filename in dic_Rg:
                listXSDOut.append(dic_Rg[filename])
            else:
                xsData_zero.filename = XSDataFile(XSDataString(filename))
                listXSDOut.append(xsData_zero)

        xsDataResult.autoRgOut = listXSDOut
        self.setDataOutput(xsDataResult)
    def process(self, _edObject=None):
        EDPluginExecProcessScript.process(self)
        EDVerbose.DEBUG('*** EDPluginExecDIMPLEREFMACRigidBodyv10.process')

        return
    def process(self, _edObject = None):
        EDPluginExecProcessScript.process(self)
        EDVerbose.DEBUG(
            '*** EDPluginExecDIMPLEREFMACRestrainedRefinementv10.process')

        return
Exemplo n.º 30
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginH5ToCBFv1_0.process")
Exemplo n.º 31
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginExecSupcombv0_3.process")
Exemplo n.º 32
0
 def process(self):
     self.DEBUG('Uniqueify: process')
     EDPluginExecProcessScript.process(self)
Exemplo n.º 33
0
    def process(self):
        EDPluginExecProcessScript.process(self)
        self.DEBUG("EDPluginExecProcessScriptAutoRgv1_0.process")
        # Create some output data
#        2.83326 0.011646 2.04258e+07 18565.3 47 81 0.783626 1 bioSaxsMerged.dat
        strOutput = self.readProcessLogFile()
        xsDataResult = XSDataResultAutoRg()
        dic_Rg = {} #key: filename, value: XSDataAutoRg
        listXSDOut = []
        for line in strOutput.split(os.linesep):
            words = line.split(None, 8)
            if len(words) < 8:
                break
            try:
                xsData = XSDataAutoRg()
                filename = words[-1]
                xsData.rg = XSDataLength(float(words[0]))
                xsData.rgStdev = XSDataLength(float(words[1]))
                xsData.i0 = XSDataDouble(float(words[2]))
                xsData.i0Stdev = XSDataDouble(float(words[3]))
                xsData.firstPointUsed = XSDataInteger(int(words[4]))
                xsData.lastPointUsed = XSDataInteger(int(words[5]))
                xsData.quality = XSDataDouble(float(words[6]))
                xsData.isagregated = XSDataDouble(float(words[7]))
            except Exception:
                strError = "Error in parsing output:" + line
                self.error(strError)
                self.setFailure()
            else:
                xsData.filename = XSDataFile(XSDataString(filename))
                dic_Rg[filename] = xsData
#                listXSDOut.append(xsData)

        if self.isFailure():
            # Change failure output for ATSAS version >= 2.5 to micmic old version
            strErrOutput = self.readProcessErrorLogFile()
            for line in strErrOutput.split(os.linesep):
                if 'Not enough valid data' in line:
                    words = line.split()
                    try:
                        xsData = XSDataAutoRg()
                        filename = words[-1].strip("'.")
                        xsData.rg = XSDataLength(0.0)
                        xsData.rgStdev = XSDataLength(0.0)
                        xsData.i0 = XSDataDouble(0.0)
                        xsData.i0Stdev = XSDataDouble(0.0)
                        xsData.firstPointUsed = XSDataInteger(0)
                        xsData.lastPointUsed = XSDataInteger(0)
                        xsData.quality = XSDataDouble(0.0)
                        xsData.isagregated = XSDataDouble(0.0)
                    except Exception:
                        strError = "Error in parsing output:" + line
                        self.error(strError)
                        self.setFailure()
                    else:
                        xsData.filename = XSDataFile(XSDataString(filename))
                        dic_Rg[filename] = xsData
        if self.isFailure() and dic_Rg:
            # we have some data ... unset the failure flag
            self.setFailure(False)
        xsData_zero = XSDataAutoRg(isagregated=XSDataDouble(1.0),
                                   quality=XSDataDouble(0.0),
                                   lastPointUsed=XSDataInteger(0),
                                   firstPointUsed=XSDataInteger(0),
                                   i0Stdev=XSDataDouble(0.0),
                                   i0=XSDataDouble(0.0),
                                   rgStdev=XSDataLength(0.0),
                                   rg=XSDataLength(0.0))
        for filename in self.inputCurve:
            if filename in dic_Rg:
                listXSDOut.append(dic_Rg[filename])
            else:
                xsData_zero.filename = XSDataFile(XSDataString(filename))
                listXSDOut.append(xsData_zero)

        xsDataResult.autoRgOut = listXSDOut
        self.setDataOutput(xsDataResult)
Exemplo n.º 34
0
 def process(self):
     EDPluginExecProcessScript.process(self)
Exemplo n.º 35
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginExecMtz2Variousv1_0.process")
     self.htmlPagePath, self.jsonPath = self.createHtmlPage()
Exemplo n.º 36
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginMOSFLMv10.process")
     # It should not be possible to execute this abstract plugin
     if (self.getPluginName() == "EDPluginMOSFLMv10"):
         raise RuntimeError, "ExectuteAbstractPluginError"
Exemplo n.º 37
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginMinimalXds.process")
Exemplo n.º 38
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     EDVerbose.DEBUG("EDPluginExecDamfiltv0_1.process")
Exemplo n.º 39
0
 def process(self):
     self.DEBUG('Aimless: process')
     EDPluginExecProcessScript.process(self)
Exemplo n.º 40
0
 def process(self, _edObject=None):
     EDPluginExecProcessScript.process(self)
     self.DEBUG("EDPluginH5ToCBFv1_1.process")
    def process(self, _edObject=None):
        EDPluginExecProcessScript.process(self)
        EDVerbose.DEBUG("EDPluginExecDIMPLEPointlessOriginv10.process")

        return