bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def __createEntityListWindow( self, *arg ): anEntityListWindow = self.theSession.createEntityListWindow() | def __createEntityListWindow( self, *arg ): anEntityListWindow = self.theSession.createEntityListWindow() | 34,900 |
def openPreferences( self, button_obj ): | def openPreferences( self, button_obj ): | 34,901 |
def __loadStepper( self, anEml ): """stepper loader""" | def __loadStepper( self, anEml ): """stepper loader""" | 34,902 |
def reconstructEntityList( self, type, view, systemList, columnList,\ columnInfoList ): | defreconstructEntityList(self,type,view,systemList,columnList,\columnInfoList): | 34,903 |
def selectSystem( self, obj ): if self.donotHandle: return | def selectSystem( self, obj ): if self.donotHandle: return | 34,904 |
def createLogger( self, *arg ): """creates Logger about all FullPN selected on EntityTreeView Returns None """ | def createLogger( self, *arg ): """creates Logger about all FullPN selected on EntityTreeView Returns None """ | 34,905 |
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... | 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... | 34,906 |
def createLogger( self,fullpn ): self.theSimulator.createLogger( fullpn ) | def createLogger( self,fullpn ): self.theSimulator.createLogger( fullpn ) | 34,907 |
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | 34,908 |
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | 34,909 |
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | 34,910 |
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | 34,911 |
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | 34,912 |
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | 34,913 |
def saveLoggerData( self, aFullPNString='', aStartTime=-1, aEndTime=-1, aInterval=-1, aSaveDirectory='./'): | defprint "All files are saved." saveLoggerData(print "All files are saved." self,print "All files are saved." aFullPNString='',print "All files are saved." aStartTime=-1,print "All files are saved." aEndTime=-1,print "All files are saved." aInterval=-1,print "All files are saved." aSaveDirectory='./'): | 34,914 |
def __loadStepperProperty( self ): aStepperPropertyList = self.theEml.getStepperPropertyList() for aStepperProperty in aStepperPropertyList: | def __loadStepperProperty( self ): aStepperPropertyList = self.theEml.getStepperPropertyList() for aStepperProperty in aStepperPropertyList: | 34,915 |
def __loadStepperProperty( self ): aStepperPropertyList = self.theEml.getStepperPropertyList() for aStepperProperty in aStepperPropertyList: | def __loadStepperProperty( self ): aStepperPropertyList = self.theEml.getStepperPropertyList() for aStepperProperty in aStepperPropertyList: | 34,916 |
def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | def __loadProperty( self ): aPropertyList = self.theEml.getPropertyList() for aProperty in aPropertyList: | 34,917 |
def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | 34,918 |
def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | 34,919 |
def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | 34,920 |
def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | def __loadProperty( self ): aPropertyList = self.theEml.getEntityPropertyList() for aProperty in aPropertyList: | 34,921 |
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... | 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... | 34,922 |
def __init__( self, owner, scale_type, root, width, heigth ): | def __init__( self, owner, scale_type, root, width, heigth ): | 34,923 |
def __init__( self, owner, scale_type, root, width, heigth ): | def __init__( self, owner, scale_type, root, width, heigth ): | 34,924 |
def __init__( self, owner, scale_type, root, width, heigth ): | def __init__( self, owner, scale_type, root, width, heigth ): | 34,925 |
def __init__( self, owner, scale_type, root, width, heigth ): | def __init__( self, owner, scale_type, root, width, heigth ): | 34,926 |
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... | def recalculate_size(self): self.max_yticks_no=int(self.plotheight/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... | 34,927 |
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... | 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.plotheight-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... | 34,928 |
def clearplot(self): self.drawbox("background",0,0,self.plotwidth,self.plotheigth) | def clearplot(self): self.drawbox("background",0,0,self.plotwidth,self.plotheight) | 34,929 |
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) | def drawpoint_on_plot(self, aFullPNString,x,y): #uses raw plot coordinates! self.pm.draw_point(self.GCFullPNMap[aFullPNString],int(x),int(y)) self.theWidget.queue_draw_area(int(x),int(y),1,1) | 34,930 |
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] | def drawline(self, aFullPNString,x0,y0,x1,y1): #uses raw plot coordinates! 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)) return [x1,y1] | 34,931 |
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) | def drawbox(self, aFullPNString,x0,y0,width,height): #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) | 34,932 |
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) | 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) | 34,933 |
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) | 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) | 34,934 |
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) | 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) | 34,935 |
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() | def reframey2(self): if self.scale_type=='linear': 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] #reprint_ylabels self.reprint_ylabels() | 34,936 |
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) | 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) | 34,937 |
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... | def reprint_ylabels(self): #clears ylabel area self.clearylabelarea() tick=1 if self.scale_type=='linear': for tick in range(int(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... | 34,938 |
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]))) | 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]))) | 34,939 |
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) | def reprint_xlabels(self): #clears xlabel area self.clearxlabelarea() for tick in range(int(self.xticks_no+1)): tickvalue=self.xgrid[0]+tick*self.xticks_step self.printxlabel(tickvalue) | 34,940 |
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[... | def resize( self, args): new_width = args[0] new_height = args[1] if new_width==self.plotwidth and new_height==self.plotheight: 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[... | 34,941 |
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[... | 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.plotheight=new_height self.pm=gtk.gdk.Pixmap(self.theRoot.window,self.plotwidth,self.plotheight,-1) aSizeAlloc= self.theWidget.get_allocation() aSizeAlloc[... | 34,942 |
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[... | 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[... | 34,943 |
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() | 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() | 34,944 |
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() | 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() | 34,945 |
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() | 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() | 34,946 |
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() | 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() | 34,947 |
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() | 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() | 34,948 |
def __saveStepper( self ): """stepper loader""" | def __saveStepper( self , anEml ): """stepper loader""" | 34,949 |
def __saveStepper( self ): """stepper loader""" | def __saveStepper( self ): """stepper loader""" | 34,950 |
def __saveStepper( self ): """stepper loader""" | def __saveStepper( self ): """stepper loader""" | 34,951 |
def __saveEntity( self, aSystemPath='/' ): | def __saveEntity( self, aSystemPath='/' ): | 34,952 |
def __saveEntity( self, aSystemPath='/' ): | def __saveEntity( self, aSystemPath='/' ): | 34,953 |
def __saveEntity( self, aSystemPath='/' ): | def __saveEntity( self, aSystemPath='/' ): | 34,954 |
def __saveEntityList( self, anEntityTypeString,\ aSystemPath, anIDList ): | def __saveEntityList( self, anEml, anEntityTypeString,\ aSystemPath, anIDList ): | 34,955 |
def __saveEntityList( self, anEntityTypeString,\ aSystemPath, anIDList ): | def __saveEntityList( self, anEntityTypeString,\ aSystemPath, anIDList ): | 34,956 |
def __saveProperty( self, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | def __saveProperty( self, anEml, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | 34,957 |
def __saveProperty( self, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | def __saveProperty( self, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | 34,958 |
def __saveProperty( self, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | def __saveProperty( self, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | 34,959 |
def __saveProperty( self, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | def __saveProperty( self, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | 34,960 |
def __savePropertyList( self, anEntityTypeString,\ aSystemPath, anIDList ): | def __savePropertyList( self, anEntityTypeString,\ aSystemPath, anIDList ): | 34,961 |
def getSubstanceOrReactorEntityList( self ): | def getSubstanceOrReactorEntityList( self ): | 34,962 |
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... | 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... | 34,963 |
def __loadPropertyList( self, anEml, anEntityTypeString,\ aSystemPath, anIDList ): | def __loadPropertyList( self, anEml, anEntityTypeString,\ aSystemPath, anIDList ): | 34,964 |
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 ) | 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 ) | 34,965 |
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() ) | 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() ) | 34,966 |
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(): | 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(): | 34,967 |
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(): | 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(): | 34,968 |
def getHeaderList( self ): | def getHeaderList( self ): | 34,969 |
def save( self, aFileName = None ): | def save( self, aFileName = None ): | 34,970 |
def __init__( self, aSession ): | def __init__( self, aSession ): | 34,971 |
def openWindow( self ): | def openWindow( self ): | 34,972 |
def openWindow( self ): | def openWindow( self ): | 34,973 |
def openWindow( self ): | def openWindow( self ): | 34,974 |
def openWindow( self ): | def openWindow( self ): | 34,975 |
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,976 |
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,977 |
def __saveStepper( self , anEml ): """stepper loader""" | def __saveStepper( self , anEml ): """stepper loader""" | 34,978 |
def __saveStepper( self , anEml ): """stepper loader""" | def __saveStepper( self , anEml ): """stepper loader""" | 34,979 |
def __saveStepper( self , anEml ): """stepper loader""" | def __saveStepper( self , anEml ): """stepper loader""" | 34,980 |
def __saveStepper( self , anEml ): """stepper loader""" | def __saveStepper( self , anEml ): """stepper loader""" | 34,981 |
def createEntity( self, aClass, aFullID ): | def createEntity( self, aClass, aFullID ): | 34,982 |
def getEntityList( self, anEntityType, aSystemPath ): | defgetEntityList(self,anEntityType,aSystemPath): | 34,983 |
def getEntityList( self, anEntityType, aSystemPath ): | def getEntityList( self, anEntityType, aSystemPath ): | 34,984 |
def __reconstructCache( self ): | def __reconstructCache( self ): | 34,985 |
def __getEntityNode( self, aFullID ): # first look up the cache try: return self.__findInCache( aFullID ) except: pass | def __getEntityNode( self, aFullID ): # first look up the cache try: return self.__findInCache( aFullID ) except: pass | 34,986 |
def __getSystemNode( self, aSystemPath ): | def __getSystemNode( self, aSystemPath ): | 34,987 |
def openWindow( self ): | def openWindow( self ): | 34,988 |
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) | 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) | 34,989 |
def __initializeProcessTree( self ): """initialize ProcessTree """ | def __initializeProcessTree( self ): """initialize ProcessTree """ | 34,990 |
def __initializeVariableTree( self ): """initializes VariableTree """ | def __initializeVariableTree( self ): """initializes VariableTree """ | 34,991 |
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... | 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... | 34,992 |
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... | 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... | 34,993 |
def printMessage( self, message ): ''' This method appends a message at the end of the message area. | def printMessage( self, message ): ''' This method appends a message at the end of the message area. | 34,994 |
def t_quotedstring(t): r' "(^"|.)*" ' t.value = Token( 'quotedstring', t.value[1:-1] ) return t | def t_quotedstring(t): r' "(^"|.)*" | \'(^\'|.)*\' ' t.value = Token( 'quotedstring', t.value ) return t | 34,995 |
def p_stepper_stmt(t): ''' stepper_stmt : Stepper object_decl LBRACE propertylist RBRACE ''' print t.slice t[0] = createAst( 'stepper_stmt', t ) | def p_stepper_stmt(t): ''' stepper_stmt : Stepper object_decl LBRACE propertylist RBRACE ''' t[0] = createAst( 'stepper_stmt', t ) | 34,996 |
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()... | 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() # ... | 34,997 |
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()... | 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) # G... | 34,998 |
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 =... | 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 =... | 34,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.