bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def createSystemPathFromFullID( aSystemFullID ): if aSystemFullID[SYSTEMPATH] == '/': if aSystemFullID[ID] == '/': aNewSystemPath = '/' else: aNewSystemPath = '/' + aSystemFullID[ID] else: aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' +\ aSystemFullID[ID] return aNewSystemPath | def createSystemPathFromFullID( aSystemFullID ): if aSystemFullID[SYSTEMPATH] == '/': if aSystemFullID[ID] == '/': aNewSystemPath = '/' elif aSystemFullID[SYSTEMPATH] == '/': aNewSystemPath = aSystemFullID[SYSTEMPATH] + aSystemFullID[ID] else: aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' +\ aSystemFullID[ID] return... | 34,500 |
def createSystemPathFromFullID( aSystemFullID ): if aSystemFullID[SYSTEMPATH] == '/': if aSystemFullID[ID] == '/': aNewSystemPath = '/' else: aNewSystemPath = '/' + aSystemFullID[ID] else: aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' +\ aSystemFullID[ID] return aNewSystemPath | def createSystemPathFromFullID( aSystemFullID ): if aSystemFullID[SYSTEMPATH] == '/': if aSystemFullID[ID] == '/': aNewSystemPath = '/' else: aNewSystemPath = '/' + aSystemFullID[ID] else: aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' + aSystemFullID[ID] return aNewSystemPath | 34,501 |
def createSystemPathFromFullID( aSystemFullID ): if aSystemFullID[SYSTEMPATH] == '/': if aSystemFullID[ID] == '/': aNewSystemPath = '/' else: aNewSystemPath = '/' + aSystemFullID[ID] else: aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' +\ aSystemFullID[ID] return aNewSystemPath | defcreateSystemPathFromFullID(aSystemFullID):ifaSystemFullID[SYSTEMPATH]=='/':ifaSystemFullID[ID]=='/':aNewSystemPath='/'else:aNewSystemPath='/'+aSystemFullID[ID]else:aNewSystemPath=aSystemFullID[SYSTEMPATH]+'/'+\aSystemFullID[ID]returnaNewSystemPath | 34,502 |
def createSystemPathFromFullID( aSystemFullID ): if aSystemFullID[SYSTEMPATH] == '/': if aSystemFullID[ID] == '/': aNewSystemPath = '/' else: aNewSystemPath = '/' + aSystemFullID[ID] else: aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' +\ aSystemFullID[ID] return aNewSystemPath | def createSystemPathFromFullID( aSystemFullID ): if aSystemFullID[SYSTEMPATH] == '/': if aSystemFullID[ID] == '/': aNewSystemPath = '/' else: aNewSystemPath = '/' + aSystemFullID[ID] else: aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' +\ aSystemFullID[ID] return aNewSystemPath | 34,503 |
def __init__( self, dirname, data, pluginmanager, root=None ): | def __init__( self, dirname, data, pluginmanager, root=None ): | 34,504 |
def __init__( self, dirname, data, pluginmanager, root=None ): | def __init__( self, dirname, data, pluginmanager, root=None ): | 34,505 |
def updateLoggerDataList(self): self.LoggerDataList =[] for aLogger in self.theLoggerList: aLoggerStub = LoggerStub( self.theSession.theSimulator, aLogger ) aEndTime = aLoggerStub.getEndTime() self.LoggerDataList.append( aLoggerStub.getDataWithStartEndInterval(self.StartTime, aEndTime, 1) ) | def updateLoggerDataList(self): self.LoggerDataList =[] for aLogger in self.theLoggerList: aLoggerStub = LoggerStub( self.theSession.theSimulator, aLogger ) aEndTime = aLoggerStub.getEndTime() self.LoggerDataList.append( aLoggerStub.getDataWithStartEndInterval(self.StartTime, aEndTime, 1) ) | 34,506 |
def updateLoggerDataList(self): self.LoggerDataList =[] for aLogger in self.theLoggerList: aLoggerStub = LoggerStub( self.theSession.theSimulator, aLogger ) aEndTime = aLoggerStub.getEndTime() self.LoggerDataList.append( aLoggerStub.getDataWithStartEndInterval(self.StartTime, aEndTime, 1) ) | def updateLoggerDataList(self): self.LoggerDataList =[] for aLogger in self.theLoggerList: aLoggerStub = LoggerStub( self.theSession.theSimulator, aLogger ) aEndTime = aLoggerStub.getEndTime() self.LoggerDataList.append( aLoggerStub.getDataWithStartEndInterval(self.StartTime, aEndTime, 1) ) | 34,507 |
def updateFullDataList( self ): num = 0 FullDataList_prev = self.FullDataList self.FullDataList = [] for LoggerData in self.LoggerDataList: if len(FullDataList_prev) > num : self.FullDataList.append( concatenate( (FullDataList_prev[num], array( LoggerData )))) if num >= len(FullDataList_prev): self.FullDataList.append(... | def updateFullDataList( self ): num = 0 FullDataList_prev = self.FullDataList self.FullDataList = [] for LoggerData in self.LoggerDataList: if len(FullDataList_prev) > num : self.FullDataList.append( concatenate( (FullDataList_prev[num], array( LoggerData )))) if num >= len(FullDataList_prev): if LoggerData != self.the... | 34,508 |
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | 34,509 |
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | 34,510 |
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | 34,511 |
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | 34,512 |
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | 34,513 |
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | 34,514 |
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | 34,515 |
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | 34,516 |
def openWindow( self ): | def openWindow( self ): | 34,517 |
def openWindow( self ): | defopenWindow(self): | 34,518 |
def openWindow( self ): | def openWindow( self ): | 34,519 |
def openWindow( self ): | def openWindow( self ): | 34,520 |
def openWindow( self ): | def openWindow( self ): | 34,521 |
def __recalculateConcentrations(self, aVariable, systemSize ): aValue = float( aVariable[MS_ENTITY_PROPERTYLIST][MS_VARIABLE_VALUE][MS_PROPERTY_VALUE] ) if systemSize != 0.0: newMolarConc = aValue / ( AVOGADRO * systemSize ) else: newMolarConc = 0.0 aVariable[MS_ENTITY_PROPERTYLIST][MS_VARIABLE_MOLARCONC][MS_PROPERTY_... | defaVariable[MS_ENTITY_PROPERTYLIST][MS_VARIABLE_NUMCONC][MS_PROPERTY_FLAGS][MS_CHANGED_FLAG] = 1 __recalculateConcentrations(self,aVariable[MS_ENTITY_PROPERTYLIST][MS_VARIABLE_NUMCONC][MS_PROPERTY_FLAGS][MS_CHANGED_FLAG] = 1 aVariable[MS_ENTITY_PROPERTYLIST][MS_VARIABLE_NUMCONC][MS_PROPERTY_FLAGS][MS_CHANGED_FLAG] = 1... | 34,522 |
def p_stmts(t): ''' stmts : stmt stmts ''' t[0] = createList( 'stmts', t) | def p_stmts(t): ''' stmts : stmts stmt | stmt ''' t[0] = createList( 'stmts', t) | 34,523 |
def p_propertylist(t): ''' propertylist : property propertylist | property | empty ''' t[0] = createList( 'propertylist', t ) | def p_propertylist(t): ''' propertylist : propertylist property | property | empty ''' t[0] = createList( 'propertylist', t ) | 34,524 |
def p_property_entity_list(t): ''' property_entity_list : property_entity property_entity_list | property_entity | empty ''' t[0] = createList( 'property_entity_list', t ) | def p_property_entity_list(t): ''' property_entity_list : property_entity_list property_entity | property_entity | empty ''' t[0] = createList( 'property_entity_list', t ) | 34,525 |
def p_valuelist(t): ''' valuelist : value valuelist | value ''' t[0] = createList( 'valuelist', t ) | def p_valuelist(t): ''' valuelist : valuelist value | value ''' t[0] = createList( 'valuelist', t ) | 34,526 |
def p_matrixlist(t): ''' matrixlist : matrix matrixlist | matrix ''' t[0] = createList( 'matrixlist', t ) | def p_matrixlist(t): ''' matrixlist : matrixlist matrix | matrix ''' t[0] = createList( 'matrixlist', t ) | 34,527 |
def p_error(t): print "Syntax error at line %d in %s. (near '%s')" % ( t.lineno, t.value ) yacc.errok() | def p_error(t): print "Syntax error at line %d in %s. " % ( t.lineno, t.value ) yacc.errok() | 34,528 |
def reframey(self): #no redraw! #get max and min from databuffers if self.zoomlevel==0: self.getminmax() if self.minmax[0]==self.minmax[1]: self.minmax[1]=self.minmax[0]*2 #calculate yframemin, max if self.scale_type=='linear': yrange=(self.minmax[1]-self.minmax[0])/(self.yframemax_when_rescaling-self.yframemin_when_r... | def reframey(self): #no redraw! #get max and min from databuffers if self.zoomlevel==0: self.getminmax() if self.minmax[0]==self.minmax[1]: if self.minmax[0]==0: self.minmax[1]=1 else: self.minmax[1]=self.minmax[0]*2 #calculate yframemin, max if self.scale_type=='linear': yrange=(self.minmax[1]-self.minmax[0])/(self.y... | 34,529 |
def reframey(self): #no redraw! #get max and min from databuffers if self.zoomlevel==0: self.getminmax() if self.minmax[0]==self.minmax[1]: self.minmax[1]=self.minmax[0]*2 #calculate yframemin, max if self.scale_type=='linear': yrange=(self.minmax[1]-self.minmax[0])/(self.yframemax_when_rescaling-self.yframemin_when_r... | def reframey(self): #no redraw! #get max and min from databuffers if self.zoomlevel==0: self.getminmax() if self.minmax[0]==self.minmax[1]: self.minmax[1]=self.minmax[0]*2 #calculate yframemin, max if self.scale_type=='linear': yrange=(self.minmax[1]-self.minmax[0])/(self.yframemax_when_rescaling-self.yframemin_when_r... | 34,530 |
def reframey(self): #no redraw! #get max and min from databuffers if self.zoomlevel==0: self.getminmax() if self.minmax[0]==self.minmax[1]: self.minmax[1]=self.minmax[0]*2 #calculate yframemin, max if self.scale_type=='linear': yrange=(self.minmax[1]-self.minmax[0])/(self.yframemax_when_rescaling-self.yframemin_when_r... | def reframey(self): #no redraw! #get max and min from databuffers if self.zoomlevel==0: self.getminmax() if self.minmax[0]==self.minmax[1]: self.minmax[1]=self.minmax[0]*2 #calculate yframemin, max if self.scale_type=='linear': yrange=(self.minmax[1]-self.minmax[0])/(self.yframemax_when_rescaling-self.yframemin_when_r... | 34,531 |
def addtrace(self,add_list): return_list=[] for add_item in add_list: #checks whether there's room for new traces #allocates a color aFullPNString= add_item[0] pm=Plot.addtrace(self,aFullPNString) if pm!=None: return_list.append([aFullPNString,pm]) #try to get more from logger self.refresh_loggerstartendmap() #if mode ... | defaddtrace(self,add_list):return_list=[]foradd_iteminadd_list:#checkswhetherthere'sroomfornewtraces#allocatesacoloraFullPNString=add_item[0]pm=Plot.addtrace(self,aFullPNString)ifpm!=None:return_list.append([aFullPNString,pm])#trytogetmorefromloggerself.refresh_loggerstartendmap()#ifmodeisstripifself.strip_mode=='strip... | 34,532 |
def createInstance( self, sim, data, parent=None ): aConstructor = self.theModule.__dict__[self.theName] anArgumentTuple = tuple( self.theDirectoryName ) + (sim,) + (data,) apply( aConstructor, anArgumentTuple ) | def createInstance( self, sim, data, parent=None ): aConstructor = self.theModule.__dict__[self.theName] anArgumentTuple = ( self.theDirectoryName, sim , data ) apply( aConstructor, anArgumentTuple ) | 34,533 |
def printMessage( self, aMessage ): | def printMessage( self, aMessage ): | 34,534 |
def printMessage( self, aMessage ): | def printMessage( self, aMessage ): | 34,535 |
def printMessage( self, aMessage ): | def printMessage( self, aMessage ): | 34,536 |
def __init__( self, dirname, data, pluginmanager, root=None ): | def __init__( self, dirname, data, pluginmanager, root=None ): | 34,537 |
def __init__( self, dirname, data, pluginmanager, root=None ): | def __init__( self, dirname, data, pluginmanager, root=None ): | 34,538 |
def __init__( self, dirname, data, pluginmanager, root=None ): | def __init__( self, dirname, data, pluginmanager, root=None ): | 34,539 |
#def initialize( self ): | #def initialize( self ): | 34,540 |
def update( self ): aString = str( self.theFullPN()[ID] ) aString += ':\n' + str( self.theFullPN()[PROPERTY] ) self.theIDEntry.set_text ( aString ) | def update( self ): aString = str( self.theFullPN()[ID] ) aString += ':\n' + str( self.theFullPN()[PROPERTY] ) self.theIDEntry.set_text ( aString ) | 34,541 |
def update( self ): aString = str( self.theFullPN()[ID] ) aString += ':\n' + str( self.theFullPN()[PROPERTY] ) self.theIDEntry.set_text ( aString ) | def update( self ): aString = str( self.theFullPN()[ID] ) aString += ':\n' + str( self.theFullPN()[PROPERTY] ) self.theIDEntry.set_text ( aString ) | 34,542 |
def update( self ): aString = str( self.theFullPN()[ID] ) aString += ':\n' + str( self.theFullPN()[PROPERTY] ) self.theIDEntry.set_text ( aString ) | def update( self ): aString = str( self.theFullPN()[ID] ) aString += ':\n' + str( self.theFullPN()[PROPERTY] ) self.theIDEntry.set_text ( aString ) | 34,543 |
def updateByAuto( self, value ): | def updateByAuto( self, value ): | 34,544 |
def updateByAddbutton( self , obj ): | def updateByAddbutton( self , obj ): | 34,545 |
def updateByAddbutton( self , obj ): | def updateByAddbutton( self , obj ): | 34,546 |
def updateBySubtractbutton( self,obj ): | def updateBySubtractbutton( self,obj ): | 34,547 |
def updateByTextentry(self, obj): | def updateByTextentry(self, obj): | 34,548 |
def updateByTextentry(self, obj): | def updateByTextentry(self, obj): | 34,549 |
def updateByTextentry(self, obj): | def updateByTextentry(self, obj): | 34,550 |
def calculateBarLength( self, value ): | def calculateBarLength( self, value ): | 34,551 |
def calculateBarLength( self, value ): | def calculateBarLength( self, value ): | 34,552 |
def __loadProperty( self, anEml, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | def __loadProperty( self, anEml, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | 34,553 |
def __init__( self ): | def __init__( self ): | 34,554 |
def __init__( self ): | def __init__( self ): | 34,555 |
def createNewEntryList( self, button_obj ) : aEntryList = EntryListWindow.EntryListWindow( self, self.theSimulator ) | def createNewEntryList( self, button_obj ) : aEntryList = EntryListWindow.EntryListWindow( self ) | 34,556 |
def __loadData( self, *arg ) : """loads model or script file arg[0] --- ok button of FileSelection arg[1] --- 'Model'/'Script' (str) Return None """ | def __loadData( self, *arg ) : """loads model or script file arg[0] --- ok button of FileSelection arg[1] --- 'Model'/'Script' (str) Return None """ | 34,557 |
def __toggleMessageWindow( self, *arg ) : | def __toggleMessageWindow( self, *arg ) : | 34,558 |
def __toggleMessageWindow( self, *arg ) : | def __toggleMessageWindow( self, *arg ) : | 34,559 |
def __toggleEntityListWindow( self, *arg ): | def __toggleEntityListWindow( self, *arg ): | 34,560 |
def setmode_strip(self,pointmap): #delete buffers #reframe buffers end-interval/end self.refresh_loggerstartendmap() #adjust xframe self.xframe[1]=0 for fpn in self.data_list: if pointmap[fpn][DP_TIME]>self.xframe[1]: self.xframe[1]=pointmap[fpn][DP_TIME] self.xframe[0]=floor(self.xframe[1]/self.stripinterval)*self.str... | def setmode_strip(self,pointmap): #delete buffers #reframe buffers end-interval/end self.refresh_loggerstartendmap() #adjust xframe self.xframe[1]=0 for fpn in self.data_list: if pointmap[fpn][DP_TIME]>self.xframe[1]: self.xframe[1]=pointmap[fpn][DP_TIME] self.xframe[0]=floor(self.xframe[1]/self.stripinterval)*self.str... | 34,561 |
def drawpoint(self, aFullPNString, datapoint): if self.strip_mode == 'history': self.drawpoint_minmax(aFullPNString, datapoint) else: self.drawpoint_connect(aFullPNString, datapoint) | def drawpoint(self, aFullPNString, datapoint): if self.strip_mode == 'history': self.drawpoint_minmax(aFullPNString, datapoint) else: self.drawpoint_connect(aFullPNString, datapoint) | 34,562 |
def drawpoint_minmax(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[DP_TIME]) ymax=self.converty_to_plot(datapoint[DP_MAX]) ymin=self.converty_to_plot(datapoint[DP_MIN]) | def drawpoint_minmax(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[DP_TIME]) ymax=self.converty_to_plot(datapoint[DP_MAX]) ymin=self.converty_to_plot(datapoint[DP_MIN]) | 34,563 |
def drawpoint_minmax(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[DP_TIME]) ymax=self.converty_to_plot(datapoint[DP_MAX]) ymin=self.converty_to_plot(datapoint[DP_MIN]) | def drawpoint_minmax(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[DP_TIME]) ymax=self.converty_to_plot(datapoint[DP_MAX]) ymin=self.converty_to_plot(datapoint[DP_MIN]) | 34,564 |
def drawpoint_minmax(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[DP_TIME]) ymax=self.converty_to_plot(datapoint[DP_MAX]) ymin=self.converty_to_plot(datapoint[DP_MIN]) | def drawpoint_minmax(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[DP_TIME]) ymax=self.converty_to_plot(datapoint[DP_MAX]) ymin=self.converty_to_plot(datapoint[DP_MIN]) | 34,565 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, x, y, ymax, ymin, lastx, lasty, lastymax, lastymin ): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinfr... | 34,566 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | 34,567 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | 34,568 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | 34,569 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | 34,570 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | 34,571 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | 34,572 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | 34,573 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | 34,574 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | 34,575 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | 34,576 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | 34,577 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | 34,578 |
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang... | 34,579 |
def __init__( self, scale_type, root, plottitle="" ): | def __init__( self, scale_type, root, plottitle="" ): | 34,580 |
def drawpoint(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if datapoint[0]<self.xframe[1] and datapoint[0]>self.xframe[0] and\ datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) #getlastpoint... | def drawpoint(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if datapoint[0]<self.xframe[1] and datapoint[0]>self.xframe[0] and\ datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) #getlastpoint... | 34,581 |
def drawpoint(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if datapoint[0]<self.xframe[1] and datapoint[0]>self.xframe[0] and\ datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) #getlastpoint... | def drawpoint(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if datapoint[0]<self.xframe[1] and datapoint[0]>self.xframe[0] and\ datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) #getlastpoint... | 34,582 |
def update( self ): self.theEntityListStore.clear() | def update( self ): self.theEntityListStore.clear() | 34,583 |
def constructTree( self, aParentTree, aSystemFullID ): newlabel = aSystemFullID[ID] iter = self.theSysTreeStore.append( aParentTree ) | defconstructTree(self,aParentTree,aSystemFullID):newlabel=aSystemFullID[ID]iter=self.theSysTreeStore.append(aParentTree) | 34,584 |
def updateSystemSelection( self, obj=None ): aSelectedSystemIter = self.theSystemTree.get_selection().get_selected()[1] if aSelectedSystemIter == None: return | defself.selectSystem( aSelectedSystemIter ) updateSystemSelection(self.selectSystem( aSelectedSystemIter ) self,self.selectSystem( aSelectedSystemIter ) obj=Noneself.selectSystem( aSelectedSystemIter ) ):self.selectSystem( aSelectedSystemIter ) aSelectedSystemIterself.selectSystem( aSelectedSystemIter ) =self.selectSys... | 34,585 |
def __init__( self, aSession ): | def __init__( self, aSession ): | 34,586 |
def openWindow( self ): | def openWindow( self ): | 34,587 |
def update( self ): aModel = self.theInterfaceListWidget.get_model() | def update( self ): aModel = self.theInterfaceListWidget.get_model() | 34,588 |
def __setMenuAndButtonsStatus( self, aDataLoadedStatus ): """sets initial widgets status aDataLoadedStatus -- the status of loading data (TRUE:Model or Script is loaded / FALSE:Not loaded) Returns None """ | def __setMenuAndButtonsStatus( self, aDataLoadedStatus ): """sets initial widgets status aDataLoadedStatus -- the status of loading data (TRUE:Model or Script is loaded / FALSE:Not loaded) Returns None """ | 34,589 |
def getStepperList(): return self.theSimulator.getStepperList() | def getStepperList( self ): return self.theSimulator.getStepperList() | 34,590 |
def createEntityListWindow( self ): """creates and returns an EntityListWindow """ anEntityListWindow = None | def createEntityListWindow( self, rootWidget = 'EntityListWindow' ): """creates and returns an EntityListWindow """ anEntityListWindow = None | 34,591 |
def createEntityListWindow( self ): """creates and returns an EntityListWindow """ anEntityListWindow = None | def createEntityListWindow( self ): """creates and returns an EntityListWindow """ anEntityListWindow = None | 34,592 |
def createEntityListWindow( self ): """creates and returns an EntityListWindow """ anEntityListWindow = None | def createEntityListWindow( self ): """creates and returns an EntityListWindow """ anEntityListWindow = None | 34,593 |
def createEntityListWindow( self ): """creates and returns an EntityListWindow """ anEntityListWindow = None | def createEntityListWindow( self ): """creates and returns an EntityListWindow """ anEntityListWindow = None | 34,594 |
def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME' | def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME' | 34,595 |
def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME' | def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME' | 34,596 |
def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME' | def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME' | 34,597 |
def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME' | def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME' | 34,598 |
def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME' | def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME' | 34,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.