Esempio n. 1
0
    def __prepareFolder(self):
        logger.Logger().log("Preparing folder")
        self.__workingFolder = "/tmp/biosaxsworkflows/" + datetime.datetime.now(
        ).strftime('%Y-%m-%d_%H-%M-%S')
        try:
            # Creating working folder
            self.__workingFolder = self.createFolder(self.__workingFolder)
            # Creating input folder
            self.__inputFolder = self.createFolder(self.__workingFolder +
                                                   "/input")
            # Creating output folder
            self.__outputFolder = self.createFolder(self.__workingFolder +
                                                    "/output")

            # Downloading subtractions
            for filePath in self.getDataset().getSubtractionFilePathList():
                fileName = ntpath.basename(filePath)
                dest = self.createFolder(self.__inputFolder +
                                         "/substraction") + "/" + fileName
                self.ispyb.getFile(filePath, dest)
                self.getDataset().setSubtractedfilePath(filePath, dest)

            for filePath in self.getDataset().getPDBfilePathList():
                fileName = ntpath.basename(filePath)
                dest = self.createFolder(self.__inputFolder +
                                         "/pdb") + "/" + fileName
                self.ispyb.getFile(filePath, dest)
                self.getDataset().setPDBfilePath(filePath, dest)

        except ValueError:
            raise SaxsFlowException('My exception occurred, value:',
                                    ValueError.value)
Esempio n. 2
0
 def updateResults(self):
     logger.Logger().log("updateResult: Method not implemented")
     return
Esempio n. 3
0
 def run(self):
     logger.Logger().log("run : Method not implemented")
     return
Esempio n. 4
0
 def postProcessing(self):
     logger.Logger().log("postProcessing: Method not implemented")
     return
Esempio n. 5
0
 def preProcessing(self):
     logger.Logger().log("preProcessing")
     return