rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
if len(self.available_colors)>0:
if len(self.available_colors)>0 and \ (not self.data_list.__contains__(aFullPNString)):
def addtrace(self, aFullPNString): #checks whether there's room for new traces if len(self.available_colors)>0: #allocates a color allocated_color=self.available_colors.pop() self.data_list.append(aFullPNString) self.trace_onoff[aFullPNString]=gtk.TRUE return self.register_color(aFullPNString,allocated_color) else: ret...
e4444c91e474bffc51a9d7a2d79f101519f5af83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e4444c91e474bffc51a9d7a2d79f101519f5af83/Plot.py
def drawline(self, aFullPNString,x0,y0,x1,y1): #uses raw plot coordinates! self.pm.draw_line(self.GCFullPNMap[aFullPNString],x0,y0,x1,y1) self.theWidget.queue_draw_area(min(x0,x1),min(y0,y1),abs(x1-x0)+1,\ abs(y1-y0)+1) return [x1,y1]
e4444c91e474bffc51a9d7a2d79f101519f5af83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e4444c91e474bffc51a9d7a2d79f101519f5af83/Plot.py
def drawline(self, aFullPNString,x0,y0,x1,y1): #uses raw plot coordinates! self.pm.draw_line(self.GCFullPNMap[aFullPNString],x0,y0,x1,y1) self.theWidget.queue_draw_area(min(x0,x1),min(y0,y1),abs(x1-x0)+1,\ abs(y1-y0)+1) return [x1,y1]
e4444c91e474bffc51a9d7a2d79f101519f5af83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e4444c91e474bffc51a9d7a2d79f101519f5af83/Plot.py
def drawxorbox(self,x0,y0,x1,y1): newgc=self.pm.new_gc() newgc.set_function(gtk.gdk.INVERT) self.pm.draw_rectangle(newgc,gtk.TRUE,x0,y0,x1-x0,y1-y0) self.theWidget.queue_draw_area(x0,y0,x1,y1)
e4444c91e474bffc51a9d7a2d79f101519f5af83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e4444c91e474bffc51a9d7a2d79f101519f5af83/Plot.py
def shiftplot(self,realshift): #save plotarea self.pm2.draw_drawable(self.pm2.new_gc(),self.pm,self.origo[0]+realshift, self.plotarea[1],0,0,self.plotarea[2]-realshift, self.plotarea[3]+1) self.clearplotarea() #paste self.pm.draw_drawable(self.pm.new_gc(),self.pm2,0,0,self.origo[0], self.plotarea[1],self.plotarea[2]-re...
e4444c91e474bffc51a9d7a2d79f101519f5af83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e4444c91e474bffc51a9d7a2d79f101519f5af83/Plot.py
if points[fpn][1]>self.yframe[1] or points[fpn][1]<self.yframe[0]:
if (points[fpn][1]>self.yframe[1] or points[fpn][1]<self.yframe[0])\ and self.trace_onoff[fpn]==gtk.TRUE:
def addpoints(self, points): #must be zoom level 0 #if strip: redraw_flag=False
e4444c91e474bffc51a9d7a2d79f101519f5af83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e4444c91e474bffc51a9d7a2d79f101519f5af83/Plot.py
def addpoints(self, points): #must be zoom level 0 #if strip: redraw_flag=False
e4444c91e474bffc51a9d7a2d79f101519f5af83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e4444c91e474bffc51a9d7a2d79f101519f5af83/Plot.py
def addpoints(self, points): #must be zoom level 0 #if strip: redraw_flag=False
e4444c91e474bffc51a9d7a2d79f101519f5af83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e4444c91e474bffc51a9d7a2d79f101519f5af83/Plot.py
for dp in newdata: if dp[0]>self.xframe[1]: redraw_flag=True if dp[1]>self.yframe[1] or dp[1]<self.yframe[0]: redraw_flag=True
if self.trace_onoff[fpn]==gtk.TRUE: for dp in newdata: if dp[0]>self.xframe[1]: redraw_flag=True if dp[1]>self.yframe[1] or dp[1]<self.yframe[0]: redraw_flag=True
def addpoints(self, points): #must be zoom level 0 #if strip: redraw_flag=False
e4444c91e474bffc51a9d7a2d79f101519f5af83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e4444c91e474bffc51a9d7a2d79f101519f5af83/Plot.py
def addpoints(self, points): #must be zoom level 0 #if strip: redraw_flag=False
e4444c91e474bffc51a9d7a2d79f101519f5af83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e4444c91e474bffc51a9d7a2d79f101519f5af83/Plot.py
self['entryProcessVarRefTotal'].set_property( 'xalign', 0.5 ) self['entryProcessVarRefPositive'].set_property( 'xalign', 0.5 ) self['entryProcessVarRefZero'].set_property( 'xalign', 0.5 ) self['entryProcessVarRefNegative'].set_property( 'xalign', 0.5 )
self['entryProcessVarRefTotal'].set_property( 'xalign', 1 ) self['entryProcessVarRefPositive'].set_property( 'xalign', 1 ) self['entryProcessVarRefZero'].set_property( 'xalign', 1 ) self['entryProcessVarRefNegative'].set_property( 'xalign', 1 )
def openWindow( self ): #self.openWindow() OsogoPluginWindow.openWindow(self) # add handers self.addHandlers( { 'on_checkViewAll_toggled' : self.updateViewAllProperties } )
04edfb35a037d21e3341c3726966e4db72dcb216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/04edfb35a037d21e3341c3726966e4db72dcb216/PropertyWindow.py
__getEntityNode( aFullID )
self.__getEntityNode( aFullID )
def isEntityExist( self, aFullID ):
bb0b919dadb69893f720b8835bac527e2330be2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/bb0b919dadb69893f720b8835bac527e2330be2b/eml.py
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
def saveLoggerData( self, aFullPNString='', aStartTime=-1, anEndTime=-1, anInterval=-1, aSaveDirectory='./Data'):
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
self.log( "\'" + aSaveDirectory + "\'" + " file exists." ) aDataFileManager = ecell.DataFileManager.DataFileManager() aDataFileManager.setRootDirectory(aSaveDirectory) aFileIndex = 0
self.message( "\'" + aSaveDirectory + "\'" + " file exists." ) aLoggerNameList = []
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
aLoggerNameList = aFullPNString try:
aLoggerNameList.append( aFullPNString ) aDataFileManager = DataFileManager() aDataFileManager.setRootDirectory(aSaveDirectory) aFileIndex=0 try:
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
for aFullPNString in aLoggerNameList:
for aFullPNString in aLoggerNameList:
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
aFileName=string.split(string.join(string.split(aFullPNString,':')[1:],'-'),'/')[-1] aECDDataFile = ecell.ECDDataFile.ECDDataFile()
aRootIndex=find(aFullPNString,':/') aFileName=aFullPNString[:aRootIndex]+aFullPNString[aRootIndex+1:] aFileName=replace(aFileName,':','_') aFileName=replace(aFileName,'/','_') aECDDataFile = ECDDataFile()
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
aLogger = self.getLogger( aFullPNString ) if aStartTime == -1 or aEndTime == -1:
aLoggerStub = self.createLoggerStub( aFullPNString ) if not aLoggerStub.isExist(): aErrorMessage='\nLogger doesn\'t exist.!\n' self.message( aErrorMessage ) return None aLoggerStartTime= aLoggerStub.getStartTime() aLoggerEndTime= aLoggerStub.getEndTime() if aStartTime == -1 or anEndTime == -1:
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
aStartTime= aLogger.getStartTime() aEndTime = aLogger.getEndTime()
aStartTime = aLoggerStartTime anEndTime = aLoggerEndTime
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
if not (aLogger.getStartTime() < aStartTime < aLogger.getEndTime()): aStartTime = aLogger.getStartTime() if not (aLogger.getStartTime() < aEndTime < aLogger.getEndTime()): aEndTime = aLogger.getEndTime() if aInterval == -1: aMatrixData = aLogger.getData(aStartTime,aEndTime)
if not ( aLoggerStartTime < aStartTime < aLoggerEndTime ): aStartTime = aLoggerStartTime if not ( aLoggerStartTime < anEndTime < aLoggerEndTime ): anEndTime = aLoggerEndTime if anInterval == -1: aMatrixData = aLoggerStub.getData( aStartTime, anEndTime )
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
aMatrixData = aLogger.getData(aStartTime,aEndTime,aInterval)
aMatrixData = aLoggerStub.getData( aStartTime, anEndTime, anInterval )
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
aECDDataFile.setMatrixData(aMatrixData)
aECDDataFile.setData(aMatrixData)
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
except:
aDataFileManager.saveAll() except:
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
self.message( sys.exc_traceback )
import traceback print __name__, aErrorMessageList = traceback.format_exception(sys.exc_type,sys.exc_value,sys.exc_traceback) for aLine in aErrorMessageList: self.message( aLine )
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
return None aDataFileManager.saveAll() self.message( "All files are saved." )
sys.exit(0) else: aSuccessMessage= " All files you selected are saved. " self.message( aSuccessMessage )
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'):
ea4e8e2718af60beede467ccee0cb1bdb0f1e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ea4e8e2718af60beede467ccee0cb1bdb0f1e349/Session.py
aDialog = ConfirmWindow(0,aMessage,'Error!')
aDialog = ConfirmWindow.ConfirmWindow(0,aMessage,'Error!')
def __init__( self, aDirName, aData, aPluginManager, aRoot=None ):
454abd7c23f83fa774617280014f72197d6af8d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/454abd7c23f83fa774617280014f72197d6af8d6/DigitalWindow.py
self.theRuleFileSelection.set_modal(gtk.TRUE)
def openRuleFileSelection( self, anObject ) :
96d59cf394a1ffaaba3aa117d82ee4d64291b680 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/96d59cf394a1ffaaba3aa117d82ee4d64291b680/MainWindow.py
self.theScriptFileSelection.set_modal(gtk.TRUE)
def openScriptFileSelection( self, anObject ) :
96d59cf394a1ffaaba3aa117d82ee4d64291b680 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/96d59cf394a1ffaaba3aa117d82ee4d64291b680/MainWindow.py
self.CompartmentSize = {} self.CompartmentUnit = {}
self.setFunctionDefinitionToDictionaly() def setFunctionDefinitionToDictionaly( self ): if ( self.FunctionDefinitionList != [] ): for aFunctionDefinition in ( self.FunctionDefinitionList ): self.FunctionDefinition[ aFunctionDefinition[0] ] = aFunctionDefinition[2]
def __init__( self, aSBMLDocument, aSBMLmodel ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
for aCompartment in self.CompartmentList: if ( self.Level == 1 ):
if ( self.Level == 1 ): for aCompartment in self.CompartmentList:
def getPath( self, aCompartmentID ): for aCompartment in self.CompartmentList: if ( self.Level == 1 ): if ( aCompartment[1] == aCompartmentID ): if ( aCompartment[6] == '' ): aPath = '/' + aCompartmentID return aPath else: aPath = self.getPath( aCompartment[6] ) + '/' + aCompartmentID return aPath
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
elif( self.Level == 2 ):
elif( self.Level == 2 ): for aCompartment in self.CompartmentList:
def getPath( self, aCompartmentID ): for aCompartment in self.CompartmentList: if ( self.Level == 1 ): if ( aCompartment[1] == aCompartmentID ): if ( aCompartment[6] == '' ): aPath = '/' + aCompartmentID return aPath else: aPath = self.getPath( aCompartment[6] ) + '/' + aCompartmentID return aPath
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
else: print "Version",self.Level," ????" sys.exit(1)
else: print "Version",self.Level," ????" sys.exit(1)
def getPath( self, aCompartmentID ): for aCompartment in self.CompartmentList: if ( self.Level == 1 ): if ( aCompartment[1] == aCompartmentID ): if ( aCompartment[6] == '' ): aPath = '/' + aCompartmentID return aPath else: aPath = self.getPath( aCompartment[6] ) + '/' + aCompartmentID return aPath
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
for aSpecies in self.SpeciesList: if ( self.Level == 1 ):
if ( self.Level == 1 ): for aSpecies in self.SpeciesList:
def getSpeciesReferenceID( self, aSpeciesID ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
elif ( self.Level == 2 ):
elif ( self.Level == 2 ): for aSpecies in self.SpeciesList:
def getSpeciesReferenceID( self, aSpeciesID ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
else: print "Version",self.Level," ????" sys.exit(1)
else: print "Version",self.Level," ????" sys.exit(1) def convertUnit( self, aValueUnit, aValue ): if ( self.Level == 1 ): for unitList in self.UnitDefinitionList: if ( unitList[1] == aValueUnit ): for anUnit in unitList[2]: aValue = self.__getNewUnitValue( anUnit, aValue ) return aValue elif ( self.Level == 2 ):...
def getSpeciesReferenceID( self, aSpeciesID ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
def setCompartmentSize_Unit( self, aCompartment ):
def __setSizeToDictionary( self, aCompartment ):
def setCompartmentSize_Unit( self, aCompartment ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
self.Model.CompartmentSize[ aCompartment[1] ] = aCompartment[4] self.Model.CompartmentUnit[ aCompartment[1] ] = aCompartment[5]
if( aCompartment[4] != "Unknown" ): self.Model.CompartmentSize[ aCompartment[1] ] = aCompartment[4] else: self.Model.CompartmentSize[ aCompartment[1] ] = self.__getOutsideSize( aCompartment[6] )
def setCompartmentSize_Unit( self, aCompartment ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
self.Model.CompartmentUnit[ aCompartment[0] ] = aCompartment[5] elif( aCompartment[3] == "Unknown" ): [ self.Model.CompartmentSize[ aCompartment[0] ], self.Model.CompartmentUnit[ aCompartment[0] ] ] = self.__getCompartmentOutsideSize_Unit( aCompartment ) def __getCompartmentOutsideSize_Unit( self, aCompartment ): i...
else: self.Model.CompartmentSize[ aCompartment[0] ] = self.__getOutsideSize( aCompartment[6] ) def __setUnitToDictionary( self, aCompartment ): if( self.Model.Level == 1 ): aCompartmentID = aCompartment[1] elif( self.Model.Level == 2 ): aCompartmentID = aCompartment[0] if( aCompartment[5] != '' ): self.Model.C...
def setCompartmentSize_Unit( self, aCompartment ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
print "Unexpected error" sys.exit(1)
self.Model.CompartmentUnit[ aCompartmentID ] = self.__getOutsideUnit( aCompartment[6] ) def __getOutsideSize( self, anOutsideCompartment ):
def __getCompartmentOutsideSize_Unit( self, aCompartment ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
def convertCompartmentUnit( self, aSBMLModel, aCompartmentSize, aCompartmentUnit ): convertedValueList = [] for anUnitDefinition in self.Model.UnitDefinitionList: if ( anUnitDefinition[0] == aCompartmentUnit ): for anUnit in anUnitDefinition[2]: if( anUnit[0] == "litre" or anUnit[0] == "metre" ): tmpValue = pow( aC...
if ( anOutsideCompartment == '' ): return float( 1 ) else: return self.Model.CompartmentSize[ anOutsideCompartment ] def __getOutsideUnit( self, anOutsideCompartment ): if ( anOutsideCompartment == '' ): return '' else: return self.Model.CompartmentUnit[ anOutsideCompartment ] def getCompartmentSize( self, ...
def __getCompartmentOutsideSize_Unit( self, aCompartment ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
def getSpeciesID( self, aSpecies ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
aValue = self.__convertSpeciesValue( aSpecies[3], aSpecies )
if ( aSpecies[7] == '' or aSpecies[7] == 'mole' ): return float( aSpecies[3] ) * N_A elif ( aSpecies[7] == 'item' ): return float( aSpecies[3] ) else: return ( self.Model.convertUnit( aSpecies[7], aSpecies[3] ) ) * N_A
def getSpeciesValue( self, aSpecies ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
print aSpecies[1] + " : InitialAmount must be defined, but this model is undefined." sys.exit(1)
raise ValueError, "InitialAmount must be defined, but this model is undefined."
def getSpeciesValue( self, aSpecies ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
aValue = self.__convertSpeciesValue( aSpecies[3], aSpecies )
if ( aSpecies[5] != '' and aSpecies[5] != 'mole' ): return ( self.Model.convertUnit( aSpecies[5], aSpecies[3] ) ) * N_A elif( aSpecies[5] == 'item' ): return float( aSpecies[3] ) else: return float( aSpecies[3] ) * N_A
def getSpeciesValue( self, aSpecies ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
aSize = self.Model.CompartmentSize[ aSpecies[2] ] aSize = self.__convertSpeciesSize( aSize, aSpecies ) aValue = aSpecies[4] * aSize aValue = self.__convertSpeciesValue( aValue, aSpecies )
aValue = aSpecies[4] aSize = self.Model.CompartmentSize[aSpecies[2]] aValue = aValue * aSize * N_A if ( aSpecies[5] != '' ): aValue = self.Model.convertUnit( aSpecies[5], aValue ) if ( aSpecies[6] != '' ): return self.Model.convertUnit( aSpecies[6], aValue ) else: aCompartmentUnit = self.Model.Compartment...
def getSpeciesValue( self, aSpecies ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
aValue = "Unknown" return aValue def __convertSpeciesValue( self, aValue, aSpecies ):
raise ValueError, "Value must be defined as InitialAmount or InitialConcentration" def getConstant( self, aSpecies ):
def getSpeciesValue( self, aSpecies ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
if( aSpecies[7] != '' ): if( aSpecies[7] == "item" ): return aValue else: return self.__convertSpeciesUnit( aValue, aSpecies[7] )
if ( aSpecies[9] == 1 ): return aSpecies[9]
def __convertSpeciesValue( self, aValue, aSpecies ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
return aValue * N_A
return 0
def __convertSpeciesValue( self, aValue, aSpecies ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
if( aSpecies[5] != '' ): if( aSpecies[5] == "item" ): return aValue else: return self.__convertSpeciesUnit( aValue, aSpecies[5] )
if ( aSpecies[11] == 1 ): return aSpecies[11]
def __convertSpeciesValue( self, aValue, aSpecies ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
return aValue * N_A def __convertSpeciesSize( self, aSize, aSpecies ): if ( aSpecies[6] != '' ): for aCompartment in self.Model.CompartmentList: if( aCompartment[0] == aSpecies[2] ): if( aCompartment[2] == 0 or aSpecies[8] == 1 ): print "Error : SpatialSizeUnits must not have a value if spatialDimensions on the comp...
return 0
def __convertSpeciesValue( self, aValue, aSpecies ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
return 'Process:/:Rule' + str( self.RuleNumber ) def __convertVariableName( self, aASTNode ): aNumChildren = aASTNode.getNumChildren()
return 'Process:/SBMLRule:Rule' + str( self.RuleNumber ) def getVariableType( self, aName ): for aSpecies in self.Model.SpeciesList: if ( ( self.Model.Level == 1 and aSpecies[1] == aName ) or ( self.Model.Level == 2 and aSpecies[0] == aName ) ): return libsbml.SBML_SPECIES for aParameter in self.Model.Parameter...
def getRuleID( self ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
self.__convertVariableName( aASTNode.getLeftChild() ) self.__convertVariableName( aASTNode.getRightChild() )
self.__convertVariableName( anASTNode.getLeftChild() ) self.__convertVariableName( anASTNode.getRightChild() )
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
self.__convertVariableName( aASTNode.getLeftChild() )
self.__convertVariableName( anASTNode.getLeftChild() )
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
if ( aASTNode.isNumber() == 1 ):
if ( anASTNode.isNumber() == 1 ):
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
aName = aASTNode.getName()
aName = anASTNode.getName()
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
for aSpecies in self.Model.SpeciesList: if ( aSpecies[0] == aName or aSpecies[1] == aName): aVariableList = [] aVariableList.append( 'Variable' + str( self.VariableNumber ) ) self.VariableNumber = self.VariableNumber + 1 aVariableID = self.Model.getSpeciesReferenceID( aName ) aVariableList.append( 'Variable:' + aVaria...
aType = self.getVariableType( aName ) if ( aType == libsbml.SBML_SPECIES ): self.setSpeciesToVariableReference( aName ) newName.append( self.getVariableMolarConc( aName ) ) anASTNode.setName( newName[0] ) return anASTNode if ( aType == libsbml.SBML_PARAMETER ):
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
return aASTNode
self.setParameterToVariableReference( aName ) newName.append( self.getVariableValue( aName ) ) anASTNode.setName( newName[0] ) return anASTNode if ( aType == libsbml.SBML_COMPARTMENT ): self.setCompartmentToVariableReference( aName ) newName.append( self.getVariableValue( aName ) ) anASTNode.setName( newName[0] ) re...
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
aASTRootNode = parseFormula( aFormula )
aASTRootNode = libsbml.parseFormula( aFormula )
def convertRuleFormula( self, aFormula ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
convertedFormula = formulaToString( convertedAST )
convertedFormula = libsbml.formulaToString( convertedAST )
def convertRuleFormula( self, aFormula ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
def convertRuleFormula( self, aFormula ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
def __convertVariableName( self, aASTNode ): aNumChildren = aASTNode.getNumChildren()
def __convertVariableName( self, anASTNode ): aNumChildren = anASTNode.getNumChildren()
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
self.__convertVariableName( aASTNode.getLeftChild() ) self.__convertVariableName( aASTNode.getRightChild() )
self.__convertVariableName( anASTNode.getLeftChild() ) self.__convertVariableName( anASTNode.getRightChild() ) return anASTNode
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
self.__convertVariableName( aASTNode.getLeftChild() )
self.__convertVariableName( anASTNode.getLeftChild() ) return anASTNode
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
if ( aASTNode.isNumber() == 1 ):
if ( anASTNode.isNumber() == 1 ):
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
aName = aASTNode.getName()
aName = anASTNode.getName()
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
elif( self.Model.Level == 1 and newName == []):
elif( self.Model.Level == 1 and newName == [] ):
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
aASTNode.setName( newName[0] )
anASTNode.setName( newName[0] ) return anASTNode
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
aParameterList = [] aParameterList.append( 'Parameter' + str( self.ParameterNumber ) )
self.ParameterNumber = self.ParameterNumber + 1 aParameterList.append( 'Variable:/SBMLParameter:' + aName )
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
self.ParameterNumber = self.ParameterNumber + 1 aParameterList.append( 'Variable:/SBMLParameter:' + aName )
aParameterList.append( '0' ) self.VariableReferenceList.append( aParameterList ) newName.append( aParameterList[0] + '.Value' ) anASTNode.setName( newName[0] ) return anASTNode if ( newName == [] ): for aCompartment in self.Model.CompartmentList: if ( aCompartment[0] == aName or aCompartment[1] == aName ): for a...
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
aParameterList.append( '0' ) self.VariableReferenceList.append( aParameterList ) newName.append( aParameterList[0] + '.Value' ) aASTNode.setName( newName[0] ) return aASTNode def convertKineticLaw( self, aFormula ): aASTRootNode = parseFormula( aFormula )
aCompartmentList.append( 'Variable:' + self.Model.getPath( aName ) + ':SIZE' ) aCompartmentList.append( '0' ) self.VariableReferenceList.append( aCompartmentList ) newName.append( aCompartmentList[0] + '.Value' ) anASTNode.setName( newName[0] ) return anASTNode return anASTNode def convertKineticLawFormula( ...
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
convertedFormula = []
def convertKineticLaw( self, aFormula ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
convertedFormula.append( "( " + formulaToString( convertedAST ) + " )" + " * S0.getSuperSystem().SizeN_A" )
aConvertedFormula = "( " + libsbml.formulaToString( convertedAST ) + " )" + " * S0.getSuperSystem().SizeN_A" elif( self.VariableReferenceList[0][0] == "P0" ):
def convertKineticLaw( self, aFormula ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
elif( self.VariableReferenceList[0][0] == "P0" ): convertedFormula.append( "( " + formulaToString( convertedAST ) + " )" + " * P0.getSuperSystem().SizeN_A" )
aConvertedFormula = "( " + libsbml.formulaToString( convertedAST ) + " )" + " * P0.getSuperSystem().SizeN_A"
def convertKineticLaw( self, aFormula ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
convertedFormula.append( "( " + formulaToString( convertedAST ) + " )" + " * C0.getSuperSystem().SizeN_A" )
aConvertedFormula = "( " + libsbml.formulaToString( convertedAST ) + " )" +" * C0.getSuperSystem().SizeN_A"
def convertKineticLaw( self, aFormula ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
pass if( convertedFormula == [] ): convertedFormula.append( formulaToString( convertedAST ) ) return convertedFormula[0]
aConvertedFormula = libsbml.formulaToString( convertedAST ) return aConvertedFormula
def convertKineticLaw( self, aFormula ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
print "Name Error: Parameter must set the Parameter Name" sys.exit(1)
raise NameError, "Parameter must set the Parameter Name"
def getParameterID( self, aParameter ): if ( self.Model.Level == 1 ): if ( aParameter[1] != '' ): return 'Variable:/SBMLParameter:' + aParameter[1] else: print "Name Error: Parameter must set the Parameter Name" sys.exit(1) elif ( self.Model.Level == 2 ): if ( aParameter[0] != '' ): return 'Variable:/SBMLParameter:' + ...
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
print "Name Error: Parameter must set the Parameter ID" sys.exit(1)
raise NameError, "Parameter must set the Parameter ID"
def getParameterID( self, aParameter ): if ( self.Model.Level == 1 ): if ( aParameter[1] != '' ): return 'Variable:/SBMLParameter:' + aParameter[1] else: print "Name Error: Parameter must set the Parameter Name" sys.exit(1) elif ( self.Model.Level == 2 ): if ( aParameter[0] != '' ): return 'Variable:/SBMLParameter:' + ...
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
anArgumentTuple = tuple( self.theDirectoryName ) + sim + data
anArgumentTuple = tuple( self.theDirectoryName ) + (sim,) + (data,)
def createInstance( self, sim, data, parent=None ): aConstructor = self.theModule.__dict__[self.theName] anArgumentTuple = tuple( self.theDirectoryName ) + sim + data apply( aConstructor, anArgumentTuple )
b9589b7bc80ea5275e2b3c94a6f9325e2000f23e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/b9589b7bc80ea5275e2b3c94a6f9325e2000f23e/Plugin.py
def createInstance( self, name, sim, data, parent=None ):
def createInstance( self, classname, sim, data, parent=None ):
def createInstance( self, name, sim, data, parent=None ): try: aPlugin = self.thePluginMap[ name ] except KeyError: aPlugin = PluginModule( name ) self.thePluginMap[ name ] = aPlugin
b9589b7bc80ea5275e2b3c94a6f9325e2000f23e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/b9589b7bc80ea5275e2b3c94a6f9325e2000f23e/Plugin.py
aPlugin = self.thePluginMap[ name ]
aPlugin = self.thePluginMap[ classname ]
def createInstance( self, name, sim, data, parent=None ): try: aPlugin = self.thePluginMap[ name ] except KeyError: aPlugin = PluginModule( name ) self.thePluginMap[ name ] = aPlugin
b9589b7bc80ea5275e2b3c94a6f9325e2000f23e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/b9589b7bc80ea5275e2b3c94a6f9325e2000f23e/Plugin.py
aPlugin = PluginModule( name ) self.thePluginMap[ name ] = aPlugin
aPlugin = PluginModule( classname ) self.thePluginMap[ classname ] = aPlugin
def createInstance( self, name, sim, data, parent=None ): try: aPlugin = self.thePluginMap[ name ] except KeyError: aPlugin = PluginModule( name ) self.thePluginMap[ name ] = aPlugin
b9589b7bc80ea5275e2b3c94a6f9325e2000f23e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/b9589b7bc80ea5275e2b3c94a6f9325e2000f23e/Plugin.py
def __init__( self, scale_type, root, plottitle="" ):
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
def convertx_to_plot(self,x): #print "this must be overloaded!" pass
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
newdata=self.theOwner.recache(fpn,lasttime,points[fpn][0],self.pixelwidth)
newdata=self.theOwner.recache(fpn,lasttime,points[fpn][0],self.pixelwidth/2)
def addpoints(self, points): #must be zoom level 0 #if strip: redraw_flag=False
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
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...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
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...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
data_to, self.pixelwidth)
data_to, self.pixelwidth/2)
def getxframe_from_logger(self,fpn): #refreshes the whole displayed interval newdatabuffer=[] data_from=max(min(self.xframe[0],self.loggerstartendmap[fpn][1]),self.loggerstartendmap[fpn][0]) data_to=min(self.xframe[1],self.loggerstartendmap[fpn][1]) if self.theOwner.haslogger(fpn): newdatabuffer=self.theOwner.recache(f...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
def drawpoint(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 change to the...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
def drawpoint(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 change to the...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
def drawpoint(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 change to the...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
def drawpoint(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 change to the...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
if y0<self.plotaread[1] and y1>self.plotaread[1]:
if y0<self.plotaread[1] and y1>=self.plotaread[1]:
def drawpoint(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 change to the...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
if y0>self.plotaread[3] and y1<self.plotaread[3]:
if y0>self.plotaread[3] and y1<=self.plotaread[3]:
def drawpoint(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 change to the...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
if y1<self.plotaread[1] and y0>self.plotaread[1]:
if y1<self.plotaread[1] and y0>=self.plotaread[1]:
def drawpoint(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 change to the...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
if y1>self.plotaread[3] and y0<self.plotaread[3]:
if y1>self.plotaread[3] and y0<=self.plotaread[3]:
def drawpoint(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 change to the...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
if x0<self.plotaread[0] and x1>self.plotaread[0]:
if x0<self.plotaread[0] and x1>=self.plotaread[0]:
def drawpoint(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 change to the...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
if x0>self.plotaread[2] and x1<self.plotaread[2]:
if x0>self.plotaread[2] and x1<=self.plotaread[2]:
def drawpoint(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 change to the...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
if x1<self.plotaread[0] and x0>self.plotaread[0]:
if x1<self.plotaread[0] and x0>=self.plotaread[0]:
def drawpoint(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 change to the...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py
if x1>self.plotaread[2] and x0<self.plotaread[2]:
if x1>self.plotaread[2] and x0<=self.plotaread[2]:
def drawpoint(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 change to the...
a2969eacd6b0c07a7a354120f03e1a09ebc16cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a2969eacd6b0c07a7a354120f03e1a09ebc16cc1/Plot.py