Module stimulus
source code
Panel to idealize stimulus signal(s).
Copyright 2008-2013 Research Foundation State University of New York
This file is part of QUB Express.
QUB Express is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
QUB Express is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
You should have received a copy of the GNU General Public License,
named LICENSE.txt, in the QUB Express program directory. If not, see
<http://www.gnu.org/licenses/>.
|
PULSATE_TIME = 50
|
|
PULSATE_CYCLES_PER_SEC = 0.666
|
|
PULSATE_DTHETA = 0.209230070729
|
|
Source_None = {'segs': []}
|
|
Shapers = { ' Shaper_ODE ' : <class 'qubx.stimulus.Shaper_ODE'>, ' ...
'locals' dictionary when evaluating the Shaping expression
|
|
Shaper_Wizards = { }
Shaping menu: label -> lambda:
show_wizard_or_set_shaping(recv_shaping); recv_shaping=lambda
shaping: whatever
|
|
EXPR_CAPTION = ' Please enter a function to calculate %s. '
|
|
EXPR_HELP = ' f can be any expression using the series names an ...
|
|
ODE_HELP = ' Enter a system of first-order ordinary differentia ...
|
|
__package__ = ' qubx '
|
|
e = 2.71828182846
|
|
pi = 3.14159265359
|
|
rdbk = ' Expired. '
|
|
rdbreak = ' supporting '
|
|
rdname = ' qubfast.txt '
|
Shapers
'locals' dictionary when evaluating the Shaping expression
- Value:
{ ' Shaper_ODE ' : <class 'qubx.stimulus.Shaper_ODE'>,
' source ' : {'segs': []}}
|
|
EXPR_HELP
- Value:
''' f can be any expression using the series names and "x" (time).
For example, f = 1.0 - 2.3 * Voltage
Expressions use Python syntax. Full documentation is available at www
.python.org.
Construct piecewise functions using "and" and "or"
((x<0.0) and (-1e21)) or ((x==0) and -1e20) or log(x)
...
|
|
ODE_HELP
- Value:
''' Enter a system of first-order ordinary differential equations,
separated by \';\' Refer to the input as "signal." Position first.
e.g.:
position\' = velocity; velocity\' = strength * (position - signal)
Undefined words such as "strength" are taken as parameters below. '''
|
|