Package PyDSTool :: Module Variable' :: Class Variable
[hide private]
[frames] | no frames]

Class Variable

source code

object --+
         |
        Variable
Known Subclasses:

One-dimensional discrete and continuous real variable class.

Instance Methods [hide private]
 
__call__(self, indepvar, checklevel=0) source code
 
__copy__(self) source code
 
__deepcopy__(self, memo=None, _nil=[]) source code
 
__del__(self) source code
 
__getstate__(self) source code
 
__init__(self, outputdata=None, indepdomain=None, depdomain=None, name='noname', abseps=None, labels=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__repr__(self)
str(x)
source code
 
__setstate__(self, state) source code
 
__str__(self)
str(x)
source code
 
_auxfn_getindex(self, parsinps, varname) source code
 
_auxfn_globalindepvar(self, parsinps, t) source code
 
_auxfn_heav(self, parsinps, x) source code
 
_auxfn_if(self, parsinps, c, e1, e2) source code
 
_auxfn_initcond(self, parsinps, varname) source code
 
_infostr(self, verbose=1) source code
 
_setRanges(self, abseps=None) source code
 
addMethods(self, funcspec)
Add dynamically-created methods to Veriable object
source code
 
getDataPoints(self)
Reveal underlying mesh and values at mesh points, provided Variable is based on a mesh (otherwise None is returned).
source code
 
info(self, verboselevel=1) source code
 
is_continuous_valued(self) source code
 
is_discrete_valued(self) source code
 
setDepdomain(self, depdomain, abseps=None) source code
 
setIndepdomain(self, indepdomain, abseps=None) source code
 
setOutput(self, outputdata, funcspec=None, globalt0=0, var_namemap=None, ics=None, refvars=None, abseps=None)
Dynamically create 'output' method of Variable
source code
 
truncate_to_idx(self, idx) source code
 
underlyingMesh(self)
Reveal underlying mesh as arrays, rather than Pointset as returned by getDataPoints method.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, outputdata=None, indepdomain=None, depdomain=None, name='noname', abseps=None, labels=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

str(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

getDataPoints(self)

source code 

Reveal underlying mesh and values at mesh points, provided Variable is based on a mesh (otherwise None is returned). The returned Pointset will be time-shifted according to the Variable's current _internal_t_offset attribute.

Any pointset labels present when the variable was created will be restored.

underlyingMesh(self)

source code 

Reveal underlying mesh as arrays, rather than Pointset as returned by getDataPoints method. If no underlying mesh is present, None is returned.