def _defineParams(self, form):
        ProtMonitor._defineParams(self, form)

        group1 = form.addGroup('Experiment')
        group1.addParam('proposal', params.StringParam,
                      label="Proposal",
                      help="Proposal")

        group1.addParam('sampleAcronym', params.StringParam,
                      label="Sample acronym",
                      help="Name of the sample acronym")

        group1.addParam('proteinAcronym', params.StringParam,
                      label="Protein acronym",
                      help="Name of the protein acronym")

        group2 = form.addGroup('Parameters')
        group2.addParam('db', params.EnumParam,
                        choices=["production", "valid", "lindemaria", "test"],
                        label="Database",
                        help="Select which ISPyB database you want to use.")

        group2.addParam('allParamsJsonFile', params.StringParam,
                        label="All parameters json file",
                        help="Json file containing all parameters from processing.")
Exemple #2
0
    def setFailed(self, errorMsg):
        #print("en el setfailed")
        #sys.out.flush()
        for child in self.childs:
            if child.isRunning() or child.isScheduled():
                #child.setFailed(errorMsg)
                self.getProject().stopProtocol(child)

        ProtMonitor.setFailed(self, errorMsg)
Exemple #3
0
    def setAborted(self):
        #print("en el setaborted")
        #sys.out.flush()
        for child in self.childs:
            if child.isRunning() or child.isScheduled():
                #child.setAborted()
                self.getProject().stopProtocol(child)

        ProtMonitor.setAborted(self)
Exemple #4
0
    def _defineParams(self, form):
        ProtMonitor._defineParams(self, form)

        group = form.addGroup('Experiment')
        group.addParam('visit', params.StringParam,
                      label="Visit",
                      help="Visit. If you're using test data, you can enter cm14451-2")

        form.addParam('db', params.EnumParam,
                      choices=["production", "devel", "test"],
                      label="Database",
                      help="Select which ISPyB database you want to use.")
    def _defineParams(self, form):
        ProtMonitor._defineParams(self, form)

        group = form.addGroup('Experiment')
        group.addParam('visit', params.StringParam,
                      label="Visit",
                      help="Visit")

        form.addParam('db', params.EnumParam,
                      choices=["production", "devel", "test"],
                      label="Database",
                      help="Select which ISPyB database you want to use.")
Exemple #6
0
 def __init__(self, **kwargs):
     ProtMonitor.__init__(self, **kwargs)
     self._runIds = pwobj.CsvList(pType=int)
     self.childs = []