typingtools¶
This module implements some “types” to be used for static (and eventually dynamical) typing.
Module typingtools implements the following members:
ArrayFloatType variable.
Float1Type variable.
Float2Type variable.
Float_coType variable.
MatrixInputno description available
NameType for strings that represent names.
TType variable.
T1Type variable.
T2Type variable.
T3Type variable.
VectorInputProtocol class for providing input to “mathematical”, 1-dimensional arrays.
VectorProtocol class for defining “mathematical”, 1-dimensional sequences.
MatrixProtocol class for providing input to “mathematical”, 2-dimensional arrays.
VariableProtocolProtocol to identify objects as “variables”.
CyParametersProtocolThe protocol for the parameters attribute of Cython extension classes.
CySequencesProtocolThe protocol for the sequences attribute of Cython extension classes.
CyModelProtocolThe protocol of Cython extension classes for defining efficient model implementations.
ScriptFunctionCallback protocol for functions to be executed from the command line (see the documentation on functionexecute_scriptfunction()and modulehydfor further information).
- class hydpy.core.typingtools.CyModelProtocol(*args, **kwargs)[source]¶
Bases:
ProtocolThe protocol of Cython extension classes for defining efficient model implementations.
Class
Cythonizergenerates the actual, model specific implementations automatically.- parameters: CyParametersProtocol¶
- sequences: CySequencesProtocol¶
- class hydpy.core.typingtools.Matrix(*args, **kwargs)[source]¶
Bases:
VectorInput[VectorInput[Float1]]Protocol class for providing input to “mathematical”, 2-dimensional arrays.
- class hydpy.core.typingtools.ScriptFunction(*args, **kwargs)[source]¶
Bases:
ProtocolCallback protocol for functions to be executed from the command line (see the documentation on function
execute_scriptfunction()and modulehydfor further information).
- class hydpy.core.typingtools.VariableProtocol(*args, **kwargs)[source]¶
Bases:
ProtocolProtocol to identify objects as “variables”.