rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
anEntityListWindow = self.theSession.createEntityListWindow() | anEntityListWindow = self.theSession.createEntityListWindow( "EntityListWindow", self['statusbar'] ) | def __createEntityListWindow( self, *arg ): anEntityListWindow = self.theSession.createEntityListWindow() | 1a280dd5398b588a961ec2332e5ef94cf9e74b4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1a280dd5398b588a961ec2332e5ef94cf9e74b4a/MainWindow.py |
aPropertyBox = gnome.ui.GnomePropertyBox() aLabel = gtk.Label( 'NOT IMPLEMENTED YET' ) aTabLabel = gtk.Label( 'warning' ) aPropertyBox.append_page( aLabel, aTabLabel ) aPropertyBox.hide() aPropertyBox.show_all() | aMessage = ' Sorry ! Not implemented... [%s]\n' %'08/Dec/2002' self.printMessage(aMessage) aDialog = ConfirmWindow(0,aMessage,'Sorry!') return None | def openPreferences( self, button_obj ): | c2a688ea440c4a91a8691795fa798428c5d2038f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/c2a688ea440c4a91a8691795fa798428c5d2038f/MainWindow.py |
aValue = anEml.getStepperProperty( aProperty ) | aValue = anEml.getStepperProperty( aStepper, aProperty ) | def __loadStepper( self, anEml ): """stepper loader""" | d1314f9fe16c552fd9fc22213c9136289a74e612 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d1314f9fe16c552fd9fc22213c9136289a74e612/Session.py |
def reconstructEntityList( self, type, view, systemList, columnList,\ columnInfoList ): | 052c1fc6a398aedf3a40b4bbe78068e79a5e62c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/052c1fc6a398aedf3a40b4bbe78068e79a5e62c3/EntityListWindow.py | ||
self.donotHandle = True | self.donotHandle = False | def selectSystem( self, obj ): if self.donotHandle: return | 052c1fc6a398aedf3a40b4bbe78068e79a5e62c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/052c1fc6a398aedf3a40b4bbe78068e79a5e62c3/EntityListWindow.py |
def createLogger( self, *arg ): """creates Logger about all FullPN selected on EntityTreeView Returns None """ | 052c1fc6a398aedf3a40b4bbe78068e79a5e62c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/052c1fc6a398aedf3a40b4bbe78068e79a5e62c3/EntityListWindow.py | ||
yPoint2 = yWalker.getNext( aTime ) | yPoint2 = yWalker.findPrevious( aTime ) | def requestData( self, aDataSeries, numberOfElements ): ''' update aDataSeries with new data points gotten from whole Logger ''' xAxis = aDataSeries.getXAxis() dataList = zeros( (0,5), LOGGER_TYPECODE ) fullPNString = aDataSeries.getFullPNString() if xAxis == "Time": if self.hasLogger( fullPNString ) : aStartTime = se... | 162787efd62f5040b1be14291abbac0430a55ee6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/162787efd62f5040b1be14291abbac0430a55ee6/DataGenerator.py |
self.theSimulator.createLogger( fullpn ) | self.theSimulator.getLogger( fullpn ) def getLogger( self, fullpn ): return self.theSimulator.getLogger( fullpn ) | def createLogger( self,fullpn ): self.theSimulator.createLogger( fullpn ) | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py |
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./Data'): try: os.mkdir( aSaveDirectory ) | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py |
aDataFileManager = DataFileManager() | except: print "\'" + aSaveDirectory + "\'" + " file exists." aDataFileManager = ecell.DataFileManager.DataFileManager() | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py |
aFileIndex=0 | aFileIndex = 0 | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py |
aFileName=split(join(split(aFullPNString,':')[1:],'-'),'/')[-1] | aFileName=string.split(string.join(string.split(aFullPNString,':')[1:],'-'),'/')[-1] | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py |
aECDDataFile = ECDDataFile() | aECDDataFile = ecell.ECDDataFile.ECDDataFile() | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py |
self.__plainPrintMethod( __name__ ) | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py | |
print "All files are saved." | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py | |
self.theSimulator.setEntityProperty( str( aStepperProperty[ 'FullPn' ] ), \ | self.theSimulator.setProperty( str( aStepperProperty[ 'FullPn' ] ), \ | def __loadStepperProperty( self ): aStepperPropertyList = self.theEml.getStepperPropertyList() for aStepperProperty in aStepperPropertyList: | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py |
def __loadStepperProperty( self ): aStepperPropertyList = self.theEml.getStepperPropertyList() for aStepperProperty in aStepperPropertyList: | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py | ||
aPropertyList = self.theEml.getEntityPropertyList() | aPropertyList = self.theEml.getPropertyList() | def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py |
self.theSimulator.setEntityProperty( aProperty[ 'FullPn' ], \ | self.theSimulator.setProperty( aProperty[ 'FullPn' ], \ | def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py |
def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py | ||
def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py | ||
import ecs aSession = Session( ecs.Simulator() ) aSimulator = aSession.theSimulator anEmlFileName = sys.argv[1] anEcsFileName = sys.argv[2] aFile = open( anEmlFileName ) aSession.loadModel( aFile ) aFile.close() aSession.loadScript( anEcsFileName ) | pass | def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | 6ea167579181f6f123d2a0c124f25670c196af67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6ea167579181f6f123d2a0c124f25670c196af67/Session.py |
'Unknown' | aValue_Pa = 'Unknown' | def getParameter( aSBMLmodel ): " [[ Id , Name , Value , Unit , Constant ]] " LIST = [] if aSBMLmodel.getParameter(0): NumParameter = aSBMLmodel.getNumParameters() for Num_Pa in range( NumParameter ): ListOfParameter = [] aParameter = aSBMLmodel.getParameter( Num_Pa ) anId_Pa = aParameter.getId() aName_Pa = aParamete... | ed41ae5ca32c28202aed81eb253783e9340ba5b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ed41ae5ca32c28202aed81eb253783e9340ba5b8/SbmlFunctions.py |
def __init__( self, owner, scale_type, root, width, heigth ): | def __init__( self, owner, scale_type, root, width, height ): | def __init__( self, owner, scale_type, root, width, heigth ): | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
self.plotheigth=heigth | self.plotheight=height | def __init__( self, owner, scale_type, root, width, heigth ): | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
self.theWidget.set_size_request(self.plotwidth,self.plotheigth) | self.theWidget.set_size_request(self.plotwidth,self.plotheight) | def __init__( self, owner, scale_type, root, width, heigth ): | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
self.pm=gtk.gdk.Pixmap(root.window,self.plotwidth,self.plotheigth,-1) self.pm2=gtk.gdk.Pixmap(root.window,self.plotwidth,self.plotheigth,-1) | self.pm=gtk.gdk.Pixmap(root.window,self.plotwidth,self.plotheight,-1) self.pm2=gtk.gdk.Pixmap(root.window,self.plotwidth,self.plotheight,-1) | def __init__( self, owner, scale_type, root, width, heigth ): | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
self.max_yticks_no=int(self.plotheigth/150)*5 | self.max_yticks_no=int(self.plotheight/150)*5 | def recalculate_size(self): self.max_yticks_no=int(self.plotheigth/150)*5 self.max_xticks_no=int(self.plotwidth/100) self.origo=[70,self.plotheigth-30] self.plotarea=[self.origo[0],30,\ self.plotwidth-60-self.origo[0],\ self.origo[1]-30] self.plotaread=[self.plotarea[0],self.plotarea[1],\ self.plotarea[2]+self.plotarea... | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
self.origo=[70,self.plotheigth-30] | self.origo=[70,self.plotheight-30] | def recalculate_size(self): self.max_yticks_no=int(self.plotheigth/150)*5 self.max_xticks_no=int(self.plotwidth/100) self.origo=[70,self.plotheigth-30] self.plotarea=[self.origo[0],30,\ self.plotwidth-60-self.origo[0],\ self.origo[1]-30] self.plotaread=[self.plotarea[0],self.plotarea[1],\ self.plotarea[2]+self.plotarea... | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
self.drawbox("background",0,0,self.plotwidth,self.plotheigth) | self.drawbox("background",0,0,self.plotwidth,self.plotheight) | def clearplot(self): self.drawbox("background",0,0,self.plotwidth,self.plotheigth) | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
self.pm.draw_point(self.GCFullPNMap[aFullPNString],x,y) self.theWidget.queue_draw_area(x,y,1,1) | self.pm.draw_point(self.GCFullPNMap[aFullPNString],int(x),int(y)) self.theWidget.queue_draw_area(int(x),int(y),1,1) | def drawpoint_on_plot(self, aFullPNString,x,y): #uses raw plot coordinates! self.pm.draw_point(self.GCFullPNMap[aFullPNString],x,y) self.theWidget.queue_draw_area(x,y,1,1) | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
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) | self.pm.draw_line(self.GCFullPNMap[aFullPNString],int(x0),int(y0),\ int(x1),int(y1)) self.theWidget.queue_draw_area(int(min(x0,x1)),int(min(y0,y1)),\ int(abs(x1-x0)+1),int(abs(y1-y0)+1)) | 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] | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
def drawbox(self, aFullPNString,x0,y0,width,heigth): | def drawbox(self, aFullPNString,x0,y0,width,height): | def drawbox(self, aFullPNString,x0,y0,width,heigth): #uses raw plot coordinates! self.pm.draw_rectangle(self.GCFullPNMap[aFullPNString],gtk.TRUE,x0,y0,width,heigth) self.theWidget.queue_draw_area(x0,y0,width,heigth) | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
self.pm.draw_rectangle(self.GCFullPNMap[aFullPNString],gtk.TRUE,x0,y0,width,heigth) self.theWidget.queue_draw_area(x0,y0,width,heigth) | self.pm.draw_rectangle(self.GCFullPNMap[aFullPNString],gtk.TRUE,x0,y0,width,height) self.theWidget.queue_draw_area(x0,y0,width,height) | def drawbox(self, aFullPNString,x0,y0,width,heigth): #uses raw plot coordinates! self.pm.draw_rectangle(self.GCFullPNMap[aFullPNString],gtk.TRUE,x0,y0,width,heigth) self.theWidget.queue_draw_area(x0,y0,width,heigth) | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
self.pm.draw_rectangle(newgc,gtk.TRUE,x0,y0,x1-x0,y1-y0) self.theWidget.queue_draw_area(x0,y0,x1,y1) | self.pm.draw_rectangle(newgc,gtk.TRUE,int(x0),int(y0),int(x1-x0),int(y1-y0)) self.theWidget.queue_draw_area(int(x0),int(y0),int(x1),int(y1)) | 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) | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
self.pm.draw_text(self.font,self.GCFullPNMap[aFullPNString],x0,y0+self.ascent,t) self.theWidget.queue_draw_area(x0,y0,self.font.string_width(t),self.ascent+self.descent) | self.pm.draw_text(self.font,self.GCFullPNMap[aFullPNString],int(x0),int(y0+self.ascent),t) self.theWidget.queue_draw_area(int(x0),int(y0),self.font.string_width(t),self.ascent+self.descent) | def drawtext(self,aFullPNString,x0,y0,text): t=str(text) self.pm.draw_text(self.font,self.GCFullPNMap[aFullPNString],x0,y0+self.ascent,t) self.theWidget.queue_draw_area(x0,y0,self.font.string_width(t),self.ascent+self.descent) | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
self.pixelheigth=float(self.yframe[1]-self.yframe[0])/self.plotarea[3] else: self.pixelheigth=float(log10(self.yframe[1])-log10(self.yframe[0]))/self.plotarea[3] | self.pixelheight=float(self.yframe[1]-self.yframe[0])/self.plotarea[3] else: self.pixelheight=float(log10(self.yframe[1])-log10(self.yframe[0]))/self.plotarea[3] | def reframey2(self): if self.scale_type=='linear': self.pixelheigth=float(self.yframe[1]-self.yframe[0])/self.plotarea[3] else: self.pixelheigth=float(log10(self.yframe[1])-log10(self.yframe[0]))/self.plotarea[3] #reprint_ylabels self.reprint_ylabels() | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
return self.origo[1]-round((y-self.yframe[0])/float(self.pixelheigth)) else: return self.origo[1]-round((log10(max(y,self.zerovalue))-log10(self.yframe[0]))/self.pixelheigth) | return self.origo[1]-round((y-self.yframe[0])/float(self.pixelheight)) else: return self.origo[1]-round((log10(max(y,self.zerovalue))-log10(self.yframe[0]))/self.pixelheight) | def converty_to_plot(self,y): if self.scale_type=='linear': return self.origo[1]-round((y-self.yframe[0])/float(self.pixelheigth)) else: return self.origo[1]-round((log10(max(y,self.zerovalue))-log10(self.yframe[0]))/self.pixelheigth) | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
for tick in range(self.yticks_no+1): | for tick in range(int(self.yticks_no+1)): | def reprint_ylabels(self): #clears ylabel area self.clearylabelarea() tick=1 if self.scale_type=='linear': for tick in range(self.yticks_no+1): tickvalue=self.ygrid[0]+tick*self.yticks_step self.printylabel(tick,tickvalue) else: tickvalue=self.ygrid[1] while tickvalue>self.ygrid[0]: self.printylabel(tick,tickvalue) tic... | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
return (self.origo[1]-ploty)*self.pixelheigth+self.yframe[0] else: return pow(10,(((self.origo[1]-ploty)*self.pixelheigth)+log10(self.yframe[0]))) | return (self.origo[1]-ploty)*self.pixelheight+self.yframe[0] else: return pow(10,(((self.origo[1]-ploty)*self.pixelheight)+log10(self.yframe[0]))) | def convertplot_to_y(self,ploty): if self.scale_type=='linear': return (self.origo[1]-ploty)*self.pixelheigth+self.yframe[0] else: return pow(10,(((self.origo[1]-ploty)*self.pixelheigth)+log10(self.yframe[0]))) | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
for tick in range(self.xticks_no+1): | for tick in range(int(self.xticks_no+1)): | def reprint_xlabels(self): #clears xlabel area self.clearxlabelarea() for tick in range(self.xticks_no+1): tickvalue=self.xgrid[0]+tick*self.xticks_step self.printxlabel(tickvalue) | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
new_heigth = args[1] if new_width==self.plotwidth and new_heigth==self.plotheigth: | new_height = args[1] if new_width==self.plotwidth and new_height==self.plotheight: | def resize( self, args): new_width = args[0] new_heigth = args[1] if new_width==self.plotwidth and new_heigth==self.plotheigth: return self.plotwidth=new_width self.plotheigth=new_heigth self.pm=gtk.gdk.Pixmap(self.theRoot.window,self.plotwidth,self.plotheigth,-1) aSizeAlloc= self.theWidget.get_allocation() aSizeAlloc[... | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
self.plotheigth=new_heigth self.pm=gtk.gdk.Pixmap(self.theRoot.window,self.plotwidth,self.plotheigth,-1) | self.plotheight=new_height self.pm=gtk.gdk.Pixmap(self.theRoot.window,self.plotwidth,self.plotheight,-1) | def resize( self, args): new_width = args[0] new_heigth = args[1] if new_width==self.plotwidth and new_heigth==self.plotheigth: return self.plotwidth=new_width self.plotheigth=new_heigth self.pm=gtk.gdk.Pixmap(self.theRoot.window,self.plotwidth,self.plotheigth,-1) aSizeAlloc= self.theWidget.get_allocation() aSizeAlloc[... | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
aSizeAlloc[3]=self.plotheigth | aSizeAlloc[3]=self.plotheight | def resize( self, args): new_width = args[0] new_heigth = args[1] if new_width==self.plotwidth and new_heigth==self.plotheigth: return self.plotwidth=new_width self.plotheigth=new_heigth self.pm=gtk.gdk.Pixmap(self.theRoot.window,self.plotwidth,self.plotheigth,-1) aSizeAlloc= self.theWidget.get_allocation() aSizeAlloc[... | 2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py |
self.anEml = eml.Eml() | anEml = eml.Eml() | def saveModel( self , aModel ): # aModel : a file name (string) or a file object # return -> None # This method can thwor exceptions. # creates ana seve an EML instance self.anEml = eml.Eml() | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
self.anEml.createEntity('System', 'System::/') | anEml.createEntity('System', 'System::/') | def saveModel( self , aModel ): # aModel : a file name (string) or a file object # return -> None # This method can thwor exceptions. # creates ana seve an EML instance self.anEml = eml.Eml() | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
self.__saveEntity() self.__saveStepper() self.__saveProperty() | self.__saveEntity( anEml ) self.__saveStepper( anEml ) self.__saveProperty( anEml ) | def saveModel( self , aModel ): # aModel : a file name (string) or a file object # return -> None # This method can thwor exceptions. # creates ana seve an EML instance self.anEml = eml.Eml() | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
aString = self.anEml.asString() | aString = anEml.asString() | def saveModel( self , aModel ): # aModel : a file name (string) or a file object # return -> None # This method can thwor exceptions. # creates ana seve an EML instance self.anEml = eml.Eml() | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
aString = self.anEml.asString() | aString = anEml.asString() | def saveModel( self , aModel ): # aModel : a file name (string) or a file object # return -> None # This method can thwor exceptions. # creates ana seve an EML instance self.anEml = eml.Eml() | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
def __saveStepper( self ): | def __saveStepper( self , anEml ): | def __saveStepper( self ): """stepper loader""" | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
self.anEml.createStepper( str( aClassName ),\ | anEml.createStepper( str( aClassName ),\ | def __saveStepper( self ): """stepper loader""" | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
self.anEml.setStepperProperty( aStepper,\ | anEml.setStepperProperty( aStepper,\ | def __saveStepper( self ): """stepper loader""" | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
def __saveEntity( self, aSystemPath='/' ): | def __saveEntity( self, anEml, aSystemPath='/' ): | def __saveEntity( self, aSystemPath='/' ): | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
self.__saveEntityList( 'System', aSystemPath, aSubSystemList ) self.__saveEntityList( 'Variable', aSystemPath, aVariableList ) self.__saveEntityList( 'Process', aSystemPath, aProcessList ) | self.__saveEntityList( anEml, 'System', aSystemPath, aSubSystemList ) self.__saveEntityList( anEml, 'Variable', aSystemPath, aVariableList ) self.__saveEntityList( anEml, 'Process', aSystemPath, aProcessList ) | def __saveEntity( self, aSystemPath='/' ): | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
self.__saveEntity( aSubSystemPath ) | self.__saveEntity( anEml, aSubSystemPath ) | def __saveEntity( self, aSystemPath='/' ): | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
def __saveEntityList( self, anEntityTypeString,\ | def __saveEntityList( self, anEml, anEntityTypeString,\ | def __saveEntityList( self, anEntityTypeString,\ aSystemPath, anIDList ): | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
self.anEml.createEntity( aClassName, aFullID ) | anEml.createEntity( aClassName, aFullID ) | def __saveEntityList( self, anEntityTypeString,\ aSystemPath, anIDList ): | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
def __saveProperty( self, aSystemPath='' ): | def __saveProperty( self, anEml, aSystemPath='' ): | def __saveProperty( self, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
self.__savePropertyList( 'Variable',\ | self.__savePropertyList( anEml, 'Variable', \ | def __saveProperty( self, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
self.__savePropertyList( 'Process', aSystemPath, aProcessList ) self.__savePropertyList( 'System',\ | self.__savePropertyList( anEml, 'Process', \ aSystemPath, aProcessList ) self.__savePropertyList( anEml, 'System', \ | def __saveProperty( self, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
self.__saveProperty( aSubSystemPath ) def __savePropertyList( self, anEntityTypeString,\ | self.__saveProperty( anEml, aSubSystemPath ) def __savePropertyList( self, anEml, anEntityTypeString,\ | def __saveProperty( self, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
self.anEml.setEntityProperty( aFullID, aProperty, aValueList ) | anEml.setEntityProperty( aFullID, aProperty, aValueList ) | def __savePropertyList( self, anEntityTypeString,\ aSystemPath, anIDList ): | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py |
anEntity[ 'FullId' ] = str( 'Substance' + ':' + \ aSystemPath + ':' + \ aChildElement.getAttribute( 'id' ) ) | anEntity[ 'FullId' ] = str( string.capwords( aChildElement.tagName ) + ':' + \ aSystemPath + ':' + \ aChildElement.getAttribute( 'id' ) ) | def getSubstanceOrReactorEntityList( self ): | 9b23234f4514d0712632609ef1c6fcd58691df59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/9b23234f4514d0712632609ef1c6fcd58691df59/eml.py |
yPoint2 = yWalker.findPrevious( aTime ) | while True: yPoint2 = yWalker.getNext( ) if yPoint2 == 1: break if yPoint2[DP_TIME] > yPoint1[DP_TIME]: break | def requestData( self, aDataSeries, numberOfElements ): ''' update aDataSeries with new data points gotten from whole Logger ''' xAxis = aDataSeries.getXAxis() dataList = zeros( (0,5), LOGGER_TYPECODE ) fullPNString = aDataSeries.getFullPNString() if xAxis == "Time": if self.hasLogger( fullPNString ) : aStartTime = se... | 38f4fcf9656d9f0ec92834a618fc35ecad80903a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/38f4fcf9656d9f0ec92834a618fc35ecad80903a/DataGenerator.py |
raise RuntimeError( 'Failed to set Entity property [%s],' + \ 'value =:\n%s\n' % ( aFullPN, aValue ) +\ | raise RuntimeError( 'Failed to set Entity property [%s],' % aFullPN \ + 'value =:\n%s\n' % str( aValue ) +\ | def __loadPropertyList( self, anEml, anEntityTypeString,\ aSystemPath, anIDList ): | 9731012e3828ff08ad9ff4aaa4069cc93ed53e1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/9731012e3828ff08ad9ff4aaa4069cc93ed53e1a/Session.py |
import code | import code | def interact( self, parameters={} ): aContext = self.__createScriptContext( parameters ) if os.name != "nt": import readline # to provide convenient commandline editing :) import code anInterpreter = code.InteractiveConsole( aContext ) | 16164655b77c4bee7319e6a80952d59b56fa7a4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/16164655b77c4bee7319e6a80952d59b56fa7a4f/Session.py |
if self.getStepType: | if self.getStepType(): | def __stepSimulation( self, *arg ) : """steps simulation arg[0] --- stop button (gtk.Button) Returns None if step measure is second, then Session.run() if step measure is step than Session.step () """ if self.getStepType: self.theSession.run( self.getStepSize() ) else: self.theSession.step( self.getStepSize() ) | 30e529fcc53a6083fff7907766d3a01f24f2d538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30e529fcc53a6083fff7907766d3a01f24f2d538/MainWindow.py |
self.setStartState() self.theSession.run( self.getStepSize() ) self.setStopState() | if( self.SimulationButton.getCurrentState() == "stop" ): self.setStartState() self.theSession.run( self.getStepSize() ) self.setStopState() else: self.theSession.run( self.getStepSize() ) | def __stepSimulation( self, *arg ) : """steps simulation arg[0] --- stop button (gtk.Button) Returns None if step measure is second, then Session.run() if step measure is step than Session.step () """ if self.getStepType(): | 52594a70f60d48bab559e6a4fbe7a3be88664235 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/52594a70f60d48bab559e6a4fbe7a3be88664235/MainWindow.py |
self.setStartState() self.theSession.step( self.getStepSize() ) self.setStopState() | if( self.SimulationButton.getCurrentState() == "stop" ): self.setStartState() self.theSession.step( self.getStepSize() ) self.setStopState() else: self.theSession.step( self.getStepSize() ) | def __stepSimulation( self, *arg ) : """steps simulation arg[0] --- stop button (gtk.Button) Returns None if step measure is second, then Session.run() if step measure is step than Session.step () """ if self.getStepType(): | 52594a70f60d48bab559e6a4fbe7a3be88664235 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/52594a70f60d48bab559e6a4fbe7a3be88664235/MainWindow.py |
aHeaderList.append( 'DATA: %s' %self.theDataName ) aHeaderList.append( 'SIZE: %d %d' %(self.theSizeOfColumn,self.theSizeOfLine) ) aHeaderList.append( 'LABEL: %s' %self.theLabel ) aHeaderList.append( 'NOTE: %s' %self.theNote ) aHeaderList.append( '' ) aHeaderList.append( '----------------------' ) | aHeaderList.append( ' aHeaderList.append( ' aHeaderList.append( ' aHeaderList.append( ' aHeaderList.append( ' aHeaderList.append( ' | def getHeaderList( self ): | 75f889f4bc4ce0a37fbb6ed256e8dfc830957b9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/75f889f4bc4ce0a37fbb6ed256e8dfc830957b9c/ECDDataFile.py |
if aFilename is not None: | if aFileName is not None: | def save( self, aFileName = None ): | 75f889f4bc4ce0a37fbb6ed256e8dfc830957b9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/75f889f4bc4ce0a37fbb6ed256e8dfc830957b9c/ECDDataFile.py |
def __init__( self, aSession ): | 222b923928a314421e899e2b5717fd1060d37af8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/222b923928a314421e899e2b5717fd1060d37af8/MainWindow.py | ||
self.logoMovable = True self['logo_animation_menu'].set_active(TRUE) | def openWindow( self ): | 222b923928a314421e899e2b5717fd1060d37af8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/222b923928a314421e899e2b5717fd1060d37af8/MainWindow.py | |
self['toolbar_menu'].set_active(TRUE) self.theToolbarVisible = True self['statusbar_menu'].set_active(TRUE) self.theStatusbarVisible = True | def openWindow( self ): | 222b923928a314421e899e2b5717fd1060d37af8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/222b923928a314421e899e2b5717fd1060d37af8/MainWindow.py | |
self.theMessageWindowVisible = True ( self['message_togglebutton'].get_child() ).set_active(TRUE) self['message_window_menu'].set_active(TRUE) | def openWindow( self ): | 222b923928a314421e899e2b5717fd1060d37af8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/222b923928a314421e899e2b5717fd1060d37af8/MainWindow.py | |
self.theEntityListWindowVisible = True self['entitylist_window_menu'].set_active(TRUE) | def openWindow( self ): | 222b923928a314421e899e2b5717fd1060d37af8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/222b923928a314421e899e2b5717fd1060d37af8/MainWindow.py | |
except: | self.update() self.theSession.updateFundamentalWindows() except: self['load_model_button'].set_sensitive(0) self['load_script_button'].set_sensitive(0) self['load_model_menu'].set_sensitive(0) self['load_script_menu'].set_sensitive(0) | def __loadData( self, *arg ) : """loads model or script file arg[0] --- ok button of FileSelection arg[1] --- 'Model'/'Script' (str) Return None """ | 222b923928a314421e899e2b5717fd1060d37af8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/222b923928a314421e899e2b5717fd1060d37af8/MainWindow.py |
self.update() self.theSession.updateFundamentalWindows() | def __loadData( self, *arg ) : """loads model or script file arg[0] --- ok button of FileSelection arg[1] --- 'Model'/'Script' (str) Return None """ | 222b923928a314421e899e2b5717fd1060d37af8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/222b923928a314421e899e2b5717fd1060d37af8/MainWindow.py | |
aValue = self.theSimulator.getStepperProperty( aStepper, aProperty ) | def __saveStepper( self , anEml ): """stepper loader""" | 9e42673f462c6275456e25098e6f9ca468a388a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/9e42673f462c6275456e25098e6f9ca468a388a2/Session.py | |
if anAttribute[0] == 0: | if anAttribute[1] == 0: | def __saveStepper( self , anEml ): """stepper loader""" | 9e42673f462c6275456e25098e6f9ca468a388a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/9e42673f462c6275456e25098e6f9ca468a388a2/Session.py |
elif aValue == '': | elif anAttribute[0] == 0: | def __saveStepper( self , anEml ): """stepper loader""" | 9e42673f462c6275456e25098e6f9ca468a388a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/9e42673f462c6275456e25098e6f9ca468a388a2/Session.py |
def __saveStepper( self , anEml ): """stepper loader""" | 9e42673f462c6275456e25098e6f9ca468a388a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/9e42673f462c6275456e25098e6f9ca468a388a2/Session.py | ||
else: raise "unexpected error." | else: raise "unexpected error. %s should be System, Variable, or Process."%anEntityType | def createEntity( self, aClass, aFullID ): | a8667114b4c24c035dd2b99a46da51dd18594fc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a8667114b4c24c035dd2b99a46da51dd18594fc1/eml.py |
def getEntityList( self, anEntityType, aSystemPath ): | a8667114b4c24c035dd2b99a46da51dd18594fc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a8667114b4c24c035dd2b99a46da51dd18594fc1/eml.py | ||
def getEntityList( self, anEntityType, aSystemPath ): | a8667114b4c24c035dd2b99a46da51dd18594fc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a8667114b4c24c035dd2b99a46da51dd18594fc1/eml.py | ||
def __reconstructCache( self ): | a8667114b4c24c035dd2b99a46da51dd18594fc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a8667114b4c24c035dd2b99a46da51dd18594fc1/eml.py | ||
raise "Entity [" + aFullID + "] not found." | raise "Entity [%s] not found."%aFullID | def __getEntityNode( self, aFullID ): # first look up the cache try: return self.__findInCache( aFullID ) except: pass | a8667114b4c24c035dd2b99a46da51dd18594fc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a8667114b4c24c035dd2b99a46da51dd18594fc1/eml.py |
raise "System [" + aFullID + "] not found." | raise "System [%s] not found."%aFullID | def __getSystemNode( self, aSystemPath ): | a8667114b4c24c035dd2b99a46da51dd18594fc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a8667114b4c24c035dd2b99a46da51dd18594fc1/eml.py |
self.__initializeSelection() | def openWindow( self ): | 1d3ca81b309c27fa5a96d6ff85b56fd8f1cf50cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1d3ca81b309c27fa5a96d6ff85b56fd8f1cf50cf/EntityListWindow.py | |
self.systemTree.set_model( treeStore ) self.processTree.set_search_column( 0 ) self.theSysSelection = self.systemTree.get_selection() | selection = self.processTree.get_selection() selection.set_mode( gtk.SELECTION_MULTIPLE ) selection.connect( 'changed', self.selectProcess ) selection = self.variableTree.get_selection() selection.set_mode( gtk.SELECTION_MULTIPLE ) selection.connect( 'changed', self.selectVariable ) | def __initializeSystemTree( self ): """initialize SystemTree """ self.lastSelectedSystem = "" treeStore = gtk.TreeStore( gobject.TYPE_STRING ) self.theSysTreeStore = treeStore column = gtk.TreeViewColumn( 'System Tree', gtk.CellRendererText(), text=0 ) column.set_visible( True ) self.systemTree.append_column(column) | 1d3ca81b309c27fa5a96d6ff85b56fd8f1cf50cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1d3ca81b309c27fa5a96d6ff85b56fd8f1cf50cf/EntityListWindow.py |
selection = self.processTree.get_selection() selection.set_mode( gtk.SELECTION_MULTIPLE ) selection.connect( 'changed', self.selectProcess ) | def __initializeProcessTree( self ): """initialize ProcessTree """ | 1d3ca81b309c27fa5a96d6ff85b56fd8f1cf50cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1d3ca81b309c27fa5a96d6ff85b56fd8f1cf50cf/EntityListWindow.py | |
selection = self.variableTree.get_selection() selection.set_mode( gtk.SELECTION_MULTIPLE ) selection.connect( 'changed', self.selectVariable ) | def __initializeVariableTree( self ): """initializes VariableTree """ | 1d3ca81b309c27fa5a96d6ff85b56fd8f1cf50cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1d3ca81b309c27fa5a96d6ff85b56fd8f1cf50cf/EntityListWindow.py | |
os.killProcess( pid) | self.killProcess( pid) | def mainfunction():\n\ list[0]=gtk.timeout_add(delay, timerhandler)\n\ try:\n\ loadModel('" + fileName + "')\n\ except:\n\ pass\n\ gtk.timeout_remove(list[0])\n\ fd.write(chr(10)+'loaded'+chr(10));fd.flush()\n\ try:\n\ #self.theSimulator.initialize()\n\ step(3)\n\ except:\n\ pass\n\ fd.write('finished'+chr(10));fd.clos... | 5171bcad2d5c651699186dae857e1b33591a183a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5171bcad2d5c651699186dae857e1b33591a183a/Runtime.py |
os.killProcess( pid ) | self.killProcess( pid ) | def mainfunction():\n\ list[0]=gtk.timeout_add(delay, timerhandler)\n\ try:\n\ loadModel('" + fileName + "')\n\ except:\n\ pass\n\ gtk.timeout_remove(list[0])\n\ fd.write(chr(10)+'loaded'+chr(10));fd.flush()\n\ try:\n\ #self.theSimulator.initialize()\n\ step(3)\n\ except:\n\ pass\n\ fd.write('finished'+chr(10));fd.clos... | 5171bcad2d5c651699186dae857e1b33591a183a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5171bcad2d5c651699186dae857e1b33591a183a/Runtime.py |
messageString = message.join() | messageString = string.join( message ) | def printMessage( self, message ): ''' This method appends a message at the end of the message area. | df2d1003dc8dac3056f8d3881c2ece4439b3dd42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/df2d1003dc8dac3056f8d3881c2ece4439b3dd42/MessageWindow.py |
r' "(^"|.)*" ' t.value = Token( 'quotedstring', t.value[1:-1] ) | r' "(^"|.)*" | \'(^\'|.)*\' ' t.value = Token( 'quotedstring', t.value ) | def t_quotedstring(t): r' "(^"|.)*" ' t.value = Token( 'quotedstring', t.value[1:-1] ) return t | 6a7c0bacfb050a5b1cc72f10f0d586f625efce58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6a7c0bacfb050a5b1cc72f10f0d586f625efce58/emparser.py |
print t.slice | def p_stepper_stmt(t): ''' stepper_stmt : Stepper object_decl LBRACE propertylist RBRACE ''' print t.slice t[0] = createAst( 'stepper_stmt', t ) | 6a7c0bacfb050a5b1cc72f10f0d586f625efce58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6a7c0bacfb050a5b1cc72f10f0d586f625efce58/emparser.py | |
def convertEm2Eml( anEmFileObject, debug=0 ): # initialize eml object anEml = ecell.eml.Eml() # Build the lexer ( one-time-only ) # default create parser.out and parsetab.py lex.lex(optimize=1) # Give the lexer some input for test #lex.input(anEmFileObject.read()) # Tokenizen test.. #while 1: # tok = lex.token()... | 6a7c0bacfb050a5b1cc72f10f0d586f625efce58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6a7c0bacfb050a5b1cc72f10f0d586f625efce58/emparser.py | ||
def convertEm2Eml( anEmFileObject, debug=0 ): # initialize eml object anEml = ecell.eml.Eml() # Build the lexer ( one-time-only ) # default create parser.out and parsetab.py lex.lex(optimize=1) # Give the lexer some input for test #lex.input(anEmFileObject.read()) # Tokenizen test.. #while 1: # tok = lex.token()... | 6a7c0bacfb050a5b1cc72f10f0d586f625efce58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6a7c0bacfb050a5b1cc72f10f0d586f625efce58/emparser.py | ||
aTmpList = [ str( aParameter[4] ) ] | aTmpList = [ '1' ] | def convertSBML2EML( aSBMLString ): aSBMLDocument = libsbml.readSBMLFromString( aSBMLString ) aSBMLModel = aSBMLDocument.getModel() theModel = SBML_Model( aSBMLDocument, aSBMLModel ) theCompartment = SBML_Compartment( theModel ) theParameter = SBML_Parameter( theModel ) theSpecies = SBML_Species( theModel ) theRule =... | 5c8de98581d9d58902197d5f11b90837afdc21b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5c8de98581d9d58902197d5f11b90837afdc21b9/convertSBML2EML.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.