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

Class HybridVariable

source code

object --+    
         |    
  Variable --+
             |
            HybridVariable

Mimics part of the API of a non-hybrid variable.

This is a somewhat ugly hack as it's implemented by using a whole HybridTrajectory object to extract individual variable values, rather than having extracted a sequence of Variable objects from a HT and stitching them back together as a single entity.

Instance Methods [hide private]
 
__call__(self, indepvar, checklevel=0) source code
 
__del__(self) source code
 
__getstate__(self) source code
 
__init__(self, hybridtraj, coordname, indepdomain, abseps=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
 
getDataPoints(self)
Returns a Pointset of independent and dependent variable values, provided variable is based on a mesh (otherwise None is returned).
source code
 
info(self, verboselevel=1) source code
 
underlyingMesh(self)
Reveal underlying mesh as arrays, rather than Pointset as returned by getDataPoints method.
source code

Inherited from Variable: __copy__, __deepcopy__, addMethods, is_continuous_valued, is_discrete_valued, setDepdomain, setIndepdomain, setOutput, truncate_to_idx

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, indepvar, checklevel=0)
(Call operator)

source code 
Overrides: Variable.__call__

__del__(self)
(Destructor)

source code 
Overrides: Variable.__del__

__getstate__(self)

source code 
Overrides: Variable.__getstate__

__init__(self, hybridtraj, coordname, indepdomain, abseps=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)

__setstate__(self, state)

source code 
Overrides: Variable.__setstate__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

getDataPoints(self)

source code 

Returns a Pointset of independent and dependent variable values, provided variable is based on a mesh (otherwise None is returned).

Overrides: Variable.getDataPoints

info(self, verboselevel=1)

source code 
Overrides: Variable.info

underlyingMesh(self)

source code 

Reveal underlying mesh as arrays, rather than Pointset as returned by getDataPoints method.

Overrides: Variable.underlyingMesh