def _updateRunList(self): self.components.runList.clear() runList = list(set([self._getBaseRunName(runName) for runName in SofiePyTableAccess.getRunsInTheFile(self.filename) if runName != '/RunMeta' ] )) self.components.runList.insertItems(runList,0)
def _updateRunList(self): self.components.runList.clear() runList = list( set( [ self._getBaseRunName(runName) for runName in SofiePyTableAccess.getRunsInTheFile(self.filename) if runName != "/RunMeta" ] ) ) self.components.runList.insertItems(runList, 0)
def on_runName_loseFocus(self, event=None): self.runName = self.components.runName.getLineText(0) if not self.runName: dialog.alertDialog(self, "The Run Name is not set.", "Check you run name") return False self._setRunMeta(self.runName) if self.filename: theRuns = [self._getBaseRunName(runName) for runName in SofiePyTableAccess.getRunsInTheFile(self.filename)] if self.runName in theRuns: dialog.alertDialog(self, "The Run Name already exists.", "Check you run name") return False return True
def on_runName_loseFocus(self, event=None): self.runName = self.components.runName.getLineText(0) if not self.runName: dialog.alertDialog(self,'The Run Name is not set.','Check you run name') return False self._setRunMeta(self.runName) if self.filename: theRuns = [self._getBaseRunName(runName) for runName in SofiePyTableAccess.getRunsInTheFile(self.filename)]; if self.runName in theRuns: dialog.alertDialog(self,'The Run Name already exists.','Check you run name') return False return True
format(options.outfile) print "\n\n-------------------------------\n" exit() except OutFileMustBeAbsolutePath: print "\n\n-------------------------------\n" print "The Outfile ({0}) must be specified as an absolute path.".\ format(options.outfile) print "\n\n-------------------------------\n" exit() if(options.runname==None): print "\n\n-------------------------------\n" print "Specify the rest run name (--runname 01CornerTestRun) " print "\n\n-------------------------------\n" exit() currentRuns = SofiePyTableAccess.getRunsInTheFile(options.outfile, options.runname) if currentRuns: print "\n\n-------------------------------\n" print "The run '{0}' is already in the file '{1}':\n\nCurrent Runs:\n{2}".\ format(options.runname,options.outfile,currentRuns) print "\n\n-------------------------------\n" exit() listeners = \ startExperiment(options.outfile, options.runname, options.serialimu,options.serialant,options.serialar, imuPort=options.imuport,imuHost=options.imuhost, arHighRes=options.highres,arMarkerSize=options.bigmarker) print "\n\n-------------------------------\n" print "LOGGING SETUP: CALLIBRATION STILL PERIOD STARTS"