def preProcess(self, _edObject=None): """ Sets up the Labelit command line """ EDPluginLabelitv1_1.preProcess(self, _edObject) self.DEBUG("EDPluginLabelitIndexingv1_1.preProcess...") strCommandLabelit = "--index_only" if len(self.dataInput.image) > 2: file = open( os.path.join(self.getWorkingDirectory(), "dataset_preferences.py"), "w") file.write("wedgelimit={0}\n".format(len(self.dataInput.image))) file.close() for xsDataImage in self.dataInput.image: strCommandLabelit = strCommandLabelit + " " + xsDataImage.getPath( ).getValue() self.setScriptCommandline(strCommandLabelit) if self.dataInput.forcedSpaceGroup is not None: self.strForcedSpaceGroup = self.dataInput.forcedSpaceGroup.value if self.strForcedSpaceGroup != "": strScriptCommandline = self.getScriptCommandline() self.setScriptCommandline( "known_symmetry=%s %s" % (self.strForcedSpaceGroup, strScriptCommandline)) self.addListCommandPreExecution("export PYTHONPATH=\"\" ") self.addListCommandPreExecution(". %s" % self.getPathToLabelitSetpathScript()) self.addListCommandPostExecution( "[ -f \"LABELIT_possible\" ] && labelit.mosflm_scripts") # Force name of log file self.setScriptLogFileName( self.compactPluginName(self.getClassName()) + ".log")
def preProcess(self, _edObject=None): """ Sets up the Labelit command line """ EDPluginLabelitv1_1.preProcess(self, _edObject) EDVerbose.DEBUG("EDPluginLabelitDistlv1_1.preProcess...") self.setScriptExecutable("labelit.distl") self.initaliseLabelitCommandLine() self.addListCommandPreExecution("export PYTHONPATH=\"\" ") self.addListCommandPreExecution(". %s" % self.getPathToLabelitSetpathScript())
def preProcess(self, _edObject=None): """ Sets up the Labelit command line """ EDPluginLabelitv1_1.preProcess(self, _edObject) self.DEBUG("EDPluginLabelitDistlv1_1.preProcess...") self.setScriptExecutable("labelit.distl") self.initaliseLabelitCommandLine() self.addListCommandPreExecution("export PYTHONPATH=\"\" ") self.addListCommandPreExecution(". %s" % self.getPathToLabelitSetpathScript())
def preProcess(self, _edObject=None): """ Sets up the Labelit command line """ EDPluginLabelitv1_1.preProcess(self, _edObject) EDVerbose.DEBUG("EDPluginLabelitIndexingv1_1.preProcess...") self.setScriptExecutable("labelit.screen") self.initaliseLabelitCommandLine() if self.hasDataInput("forcedSpaceGroup"): self.__strForcedSpaceGroup = self.getDataInput("forcedSpaceGroup")[0].getValue() strScriptCommandline = self.getScriptCommandline() self.setScriptCommandline("known_symmetry=%s %s" % (self.__strForcedSpaceGroup, strScriptCommandline)) self.addListCommandPreExecution("export PYTHONPATH=\"\" ") self.addListCommandPreExecution(". %s" % self.getPathToLabelitSetpathScript()) self.addListCommandPostExecution("[ -f \"LABELIT_possible\" ] && labelit.mosflm_scripts")
def preProcess(self, _edObject=None): """ Sets up the Labelit command line """ EDPluginLabelitv1_1.preProcess(self, _edObject) self.DEBUG("EDPluginLabelitIndexingv1_1.preProcess...") self.setScriptExecutable("labelit.screen") self.initaliseLabelitCommandLine() if self.hasDataInput("forcedSpaceGroup"): self.__strForcedSpaceGroup = self.getDataInput( "forcedSpaceGroup")[0].getValue() strScriptCommandline = self.getScriptCommandline() self.setScriptCommandline( "known_symmetry=%s %s" % (self.__strForcedSpaceGroup, strScriptCommandline)) self.addListCommandPreExecution("export PYTHONPATH=\"\" ") self.addListCommandPreExecution(". %s" % self.getPathToLabelitSetpathScript()) self.addListCommandPostExecution( "[ -f \"LABELIT_possible\" ] && labelit.mosflm_scripts") # Force name of log file self.setScriptLogFileName( self.compactPluginName(self.getClassName()) + ".log")
def preProcess(self, _edObject=None): """ Sets up the Labelit command line """ EDPluginLabelitv1_1.preProcess(self, _edObject) self.DEBUG("EDPluginLabelitIndexingv1_1.preProcess...") strCommandLabelit = "--index_only" if len(self.dataInput.image) > 2: file = open(os.path.join(self.getWorkingDirectory(), "dataset_preferences.py"), "w") file.write("wedgelimit={0}\n".format(len(self.dataInput.image))) file.close() for xsDataImage in self.dataInput.image: strCommandLabelit = strCommandLabelit + " " + xsDataImage.getPath().getValue() self.setScriptCommandline(strCommandLabelit) if self.dataInput.forcedSpaceGroup is not None: self.strForcedSpaceGroup = self.dataInput.forcedSpaceGroup.value if self.strForcedSpaceGroup != "": strScriptCommandline = self.getScriptCommandline() self.setScriptCommandline("known_symmetry=%s %s" % (self.strForcedSpaceGroup, strScriptCommandline)) self.addListCommandPreExecution("export PYTHONPATH=\"\" ") self.addListCommandPreExecution(". %s" % self.getPathToLabelitSetpathScript()) self.addListCommandPostExecution("[ -f \"LABELIT_possible\" ] && labelit.mosflm_scripts") # Force name of log file self.setScriptLogFileName(self.compactPluginName(self.getClassName()) + ".log")