exceptions#

exception DesignError[source]#

RuntimeError regarding unit design.

exception GraphicsWarning[source]#

RuntimeWarning regarding diagrams.

exception FailedEvaluation[source]#

RuntimeWarning regarding failed model evaluation.

exception UnitInheritanceError[source]#

Exception regarding unit inhearitance.

exception Converged[source]#

Exception to stop iteration early.

exception UnitWarning[source]#

Warning regarding unit operations.

classmethod from_source(source, msg)[source]#

Return a DesignWarning object with source description.

exception DesignWarning[source]#

Warning regarding design constraints.

exception CostWarning[source]#

Warning regarding design constraints.

bounds_warning(source, key, value, units, bounds, kind='design')[source]#

Issue a warning if value is out of bounds.

Parameters:
  • source (Unit) – Unit where the warning is issued

  • key (str) – Name of value.

  • value (float)

  • units (str) – Units of value

  • bounds (Iterable[float, float]) – Upper and lower bounds.

StampedKeyError[source]#

alias of StampedKeyError

exception UndefinedChemicalAlias(ID)[source]#

Exception regarding undefined chemicals.

UndefinedChemical#

alias of UndefinedChemicalAlias

exception UndefinedPhase(phase)[source]#

Exception regarding undefined phases.

exception DimensionError[source]#

ValueError regarding wrong dimensions.

exception InfeasibleRegion(region, msg=None)[source]#

Runtime error regarding infeasible processes.

exception InvalidMethod(method)[source]#

ValueError regarding an attempt to evaluate an invalid method.

exception NoEquilibrium[source]#

Exception regarding an attempt to solve phase equilibrium when not applicable.