E-Cell Simulation Environment Version 3.1.100 User's Manual (Draft: Dec. 18, 2003) | ||
---|---|---|
Prev | Chapter 5. Scripting A Simulation Session | Next |
getLibECSVersion
() method of
ecell.ecs
module gives the version of
the C++ backend library
(libecs) as a string. getLibECSVersionInfo
()
method of the module gives the version as a
Python tuple. The
tuple contains three numbers in this order: (
MAJOR_VERSION
,
MINOR_VERSION
,
MICRO_VERSION
)
The search path of DM files can be
specified and retrieved by using
setDMSearchPath
() and
getDMSearchPath
() methods. These
methods gets and returns a colon (:) separated list of
directory names. The search path can also be specified by
using ECELL3_DM_PATH
environment
variable. See the previous section for more about
DMsearch path.
ecell3-session>>> import ecell ecell3-session>>> ecell.ecs.setDMSearchPath( '~/dm:~/test/dm' ) ecell3-session>>> ecell.ecs.getDMSearchPath() '~/dm:~/test/dm'
A list of built-in and already loaded
DM classes can be gotten with
getDMInfo
() method of
ecell.ecs.Simulator
class. The
Simulator instance is available to
Session as
theSimulator
variable. The method returns
a nested Python tuple
in the form of ( ( TYPE1, CLASSNAME1, PATH1 ), ( TYPE2,
CLASSNAME2, PATH2 ), ... ). TYPE is one of
'Process'
,
'Variable'
,
'System'
, or
'Stepper'
. CLASSNAME is the class name
of the DM. PATH is the directory from
which the DM is loaded. PATH is an empty
string (''
) if it is a built-in class.