idaes package¶
__init__.py for idaes module
Set up logging for the idaes module, and import plugins.
Subpackages¶
- idaes.core package
- Subpackages
- idaes.core.util package
- Subpackages
- Submodules
- idaes.core.util.config module
- idaes.core.util.exceptions module
- idaes.core.util.expr_doc module
- idaes.core.util.initialization module
- idaes.core.util.math module
- idaes.core.util.misc module
- idaes.core.util.model_serializer module
- idaes.core.util.model_statistics module
- idaes.core.util.tables module
- idaes.core.util.testing module
- idaes.core.util package
- Submodules
- idaes.core.control_volume0d module
- idaes.core.control_volume1d module
- idaes.core.control_volume_base module
- idaes.core.flowsheet_model module
- idaes.core.process_base module
- idaes.core.process_block module
- idaes.core.property_base module
- idaes.core.property_meta module
- idaes.core.reaction_base module
- idaes.core.unit_model module
- Subpackages
- idaes.dmf package
- Submodules
- idaes.dmf.cli module
- idaes.dmf.codesearch module
- idaes.dmf.commands module
- idaes.dmf.dmfbase module
- idaes.dmf.errors module
- idaes.dmf.experiment module
- idaes.dmf.help module
- idaes.dmf.magics module
- idaes.dmf.propdata module
- idaes.dmf.propindex module
- idaes.dmf.resource module
- idaes.dmf.resourcedb module
- idaes.dmf.surrmod module
- idaes.dmf.tabular module
- idaes.dmf.userapi module
- idaes.dmf.util module
- idaes.dmf.workspace module
- idaes.functions package
- idaes.property_models package
- idaes.ui package
- idaes.unit_models package
- Subpackages
- idaes.unit_models.convergence package
- idaes.unit_models.icons package
- idaes.unit_models.power_generation package
- Submodules
- idaes.unit_models.power_generation.feedwater_heater_0D module
- idaes.unit_models.power_generation.turbine_inlet module
- idaes.unit_models.power_generation.turbine_multistage module
- idaes.unit_models.power_generation.turbine_outlet module
- idaes.unit_models.power_generation.turbine_stage module
- idaes.unit_models.power_generation.valve_steam module
- idaes.unit_models.power_generation.valve_steam_config module
- Submodules
- idaes.unit_models.cstr module
- idaes.unit_models.equilibrium_reactor module
- idaes.unit_models.feed module
- idaes.unit_models.feed_flash module
- idaes.unit_models.flash module
- idaes.unit_models.gibbs_reactor module
- idaes.unit_models.heat_exchanger module
- idaes.unit_models.heat_exchanger_1D module
- idaes.unit_models.mixer module
- idaes.unit_models.plug_flow_reactor module
- idaes.unit_models.pressure_changer module
- idaes.unit_models.product module
- idaes.unit_models.separator module
- idaes.unit_models.statejunction module
- idaes.unit_models.stoichiometric_reactor module
- idaes.unit_models.translator module
- Subpackages
- idaes.util package
- idaes.vis package
Submodules¶
idaes.ver module¶
The API in this module is mostly for internal use, e.g. from ‘setup.py’ to get the version of
the package. But Version
has been written to be usable as a general
versioning interface.
Example of using the class directly:
>>> from idaes.ver import Version
>>> my_version = Version(1, 2, 3)
>>> print(my_version)
1.2.3
>>> tuple(my_version)
(1, 2, 3)
>>> my_version = Version(1, 2, 3, 'alpha')
>>> print(my_version)
1.2.3.a
>>> tuple(my_version)
(1, 2, 3, 'alpha')
>>> my_version = Version(1, 2, 3, 'candidate', 1)
>>> print(my_version)
1.2.3.rc1
>>> tuple(my_version)
(1, 2, 3, 'candidate', 1)
If you want to add a version to a class, e.g. a model, then
simply inherit from HasVersion
and initialize it with the
same arguments you would give the Version
constructor:
>>> from idaes.ver import HasVersion
>>> class MyClass(HasVersion):
... def __init__(self):
... super(MyClass, self).__init__(1, 2, 3, 'alpha')
...
>>> obj = MyClass()
>>> print(obj.version)
1.2.3.a
-
class
idaes.ver.
Version
(major, minor, micro, releaselevel='final', serial=None)[source]¶ This class attempts to be compliant with a subset of PEP 440.
Note: If you actually happen to read the PEP, you will notice that pre- and post- releases, as well as “release epochs”, are not supported.
-
idaes.ver.
package_version
= <idaes.ver.Version object>¶ Package’s version as an object