ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/osprai/osprai/trunk/mdl_module.py
(Generate patch)
# Line 2 | Line 2
2   mdl: Example model functions module for SPRI data.
3   Christopher Lausted, Institute for Systems Biology,
4   OSPRAI developers
5 < Last modified on 100421 (yymmdd)
5 > Last modified on 100423 (yymmdd)
6  
7   Example:
8   #import mdl_module as mdl
9 < #params = {'Rate': {'value':1, 'min':-100.0, 'max':100.0, 'fixed':False} }
10 < #params = dict(Rate = dict(value=1, min=0, max=10, fixed=False))
9 > #params = {'rate': {'value':1, 'min':-100.0, 'max':100.0, 'fixed':False} }
10 > #params = dict(rate = dict(value=1, min=0, max=10, fixed=False))
11   #times = range(100)
12   #data1 = drift(time, data0, params)
13   print data1
14   """
15 < __version__ = "100421"
15 > __version__ = "100423"
16  
17  
18   ## Import libraries
# Line 41 | Line 41
41          y[i] = y[i-1] + dy
42          
43      return y
44 +    ## End of drift() function.
45  
46  
47   def simple1to1(time, data, params):
# Line 85 | Line 86
86              y[i] = y[i-1] + dy * (time[i] - time[i-1])
87              
88      return y
89 +    ## End of simple1to1() function
90  
91 +
92 + ################################# End of module #################################

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines