ExperimentalWarning#
- exception cultivars.exceptions.ExperimentalWarning[source]#
Bases:
UserWarningRaised once when
cultivars.experimentalis imported.The experimental subpackage holds models from recent papers under a looser contract than the rest of the package: a name there may change or be removed in any minor release. The warning is a
UserWarningso that it is shown by default, and its own class so that it can be silenced precisely once the terms are accepted.Example
>>> import warnings >>> with warnings.catch_warnings(record=True) as caught: ... warnings.simplefilter("always") ... warnings.warn("unstable", ExperimentalWarning) >>> caught[0].category.__name__ 'ExperimentalWarning'