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.
NameType for strings that represent names.
PParameter specification variable.
TType variable.
T1Type variable.
T2Type variable.
T3Type variable.
T_coType variable.
T_contraType variable.
SharableConfigurationSpecification of the configuration data that main models can share with their submodels.
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.
CySubstepModelProtocolThe protocol of Cython extension classes for defining efficient model implementations compatible with classSubstepModel.
- class hydpy.core.typingtools.AbstractContextManager[source]¶
Bases:
ABCAn abstract base class for context managers.
- 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.CySubstepModelProtocol(*args, **kwargs)[source]¶
Bases:
CyModelProtocolThe protocol of Cython extension classes for defining efficient model implementations compatible with class
SubstepModel.Class
Cythonizergenerates the actual, model-specific implementations automatically.
- class hydpy.core.typingtools.SharableConfiguration[source]¶
Bases:
TypedDictSpecification of the configuration data that main models can share with their submodels.
- landtype_constants: parametertools.Constants | None¶
Land cover type-related constants.
- soiltype_constants: parametertools.Constants | None¶
Soil type-related constants.
- landtype_refindices: parametertools.NameParameter | None¶
Reference to a land cover type-related index parameter.
- soiltype_refindices: parametertools.NameParameter | None¶
Reference to a soil type-related index parameter.
- refweights: parametertools.Parameter | None¶
Reference to a weighting parameter (probably handling the size of some computational subunits like the area of hydrological response units).