You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the new solver interfaces, we finally introduced a handy-dandy capability to not just turn tee on or off in the config:
self.tee: List[TextIO] = self.declare(
'tee',
ConfigValue(
domain=TextIO_or_Logger,
default=False,
description="""``tee`` accepts :py:class:`bool`,
:py:class:`io.TextIOBase`, or :py:class:`logging.Logger`
(or a list of these types). ``True`` is mapped to
``sys.stdout``. The solver log will be printed to each of
these streams / destinations.""",
),
)
It can now be passed a bool, an io.TextIOBase-type-object, or a logger. For example:
This functionality is no longer needed within idaes-pse, as Pyomo can now do this.
The text was updated successfully, but these errors were encountered: