From: Gabor B. <bg...@us...> - 2005-02-04 12:25:10
|
Update of /cvsroot/ecell/ecell3/modeleditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6232 Modified Files: Constants.py EntityCommand.py ModelEditor.py Log Message: Setting defaults. Default stepper: ODEStepper. Default Process: ExpressionFluxProcess. Default System size = 1 liter. Index: ModelEditor.py =================================================================== RCS file: /cvsroot/ecell/ecell3/modeleditor/ModelEditor.py,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** ModelEditor.py 4 Feb 2005 05:10:47 -0000 1.23 --- ModelEditor.py 4 Feb 2005 12:24:58 -0000 1.24 *************** *** 183,186 **** --- 183,187 ---- newFullID = ':'.join( [ ME_VARIABLE_TYPE, '/', 'SIZE' ] ) self.theModelStore.createEntity( ME_VARIABLE_TYPE, newFullID ) + self.theModelStore.setEntityProperty( newFullID + ':Value', 1 ) self.changesSaved = True *************** *** 854,858 **** def getDefaultProcessClass( self ): ! return self.theDMInfo.getClassList( ME_PROCESS_TYPE )[0] --- 855,863 ---- def getDefaultProcessClass( self ): ! classList = self.theDMInfo.getClassList( ME_PROCESS_TYPE ) ! if DE_DEFAULT_PROCESS_CLASS in classList: ! return DE_DEFAULT_PROCESS_CLASS ! else: ! return classList[0] Index: Constants.py =================================================================== RCS file: /cvsroot/ecell/ecell3/modeleditor/Constants.py,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** Constants.py 4 Feb 2005 05:10:46 -0000 1.18 --- Constants.py 4 Feb 2005 12:24:58 -0000 1.19 *************** *** 23,28 **** # Default Root System Stepper ! DE_DEFAULT_STEPPER_CLASS = 'ODE45Stepper' DE_DEFAULT_STEPPER_NAME = 'Default_Stepper' #CL_PATH='ME_PATH' --- 23,29 ---- # Default Root System Stepper ! DE_DEFAULT_STEPPER_CLASS = 'ODEStepper' DE_DEFAULT_STEPPER_NAME = 'Default_Stepper' + DE_DEFAULT_PROCESS_CLASS = 'ExpressionFluxProcess' #CL_PATH='ME_PATH' Index: EntityCommand.py =================================================================== RCS file: /cvsroot/ecell/ecell3/modeleditor/EntityCommand.py,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** EntityCommand.py 16 Jan 2005 14:53:33 -0000 1.11 --- EntityCommand.py 4 Feb 2005 12:24:58 -0000 1.12 *************** *** 47,50 **** --- 47,51 ---- newFullID = ':'.join( [ ME_VARIABLE_TYPE, convertSysIDToSysPath( self.__theID ), 'SIZE' ] ) self.theModel.createEntity( ME_VARIABLE_TYPE, newFullID ) + self.theModel.setEntityProperty( newFullID + ":Value", 1 ) |