Old engine for Continuous Time Bayesian Networks. Superseded by reCTBN. 🐍
https://github.com/madlabunimib/PyCTBN
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
656 B
24 lines
656 B
# being a bit too dynamic
|
|
from distutils.version import LooseVersion
|
|
import operator
|
|
|
|
|
|
def _mpl_version(version, op):
|
|
def inner():
|
|
try:
|
|
import matplotlib as mpl
|
|
except ImportError:
|
|
return False
|
|
return (
|
|
op(LooseVersion(mpl.__version__), LooseVersion(version))
|
|
and str(mpl.__version__)[0] != "0"
|
|
)
|
|
|
|
return inner
|
|
|
|
|
|
_mpl_ge_2_2_3 = _mpl_version("2.2.3", operator.ge)
|
|
_mpl_ge_3_0_0 = _mpl_version("3.0.0", operator.ge)
|
|
_mpl_ge_3_1_0 = _mpl_version("3.1.0", operator.ge)
|
|
_mpl_ge_3_2_0 = _mpl_version("3.2.0", operator.ge)
|
|
_mpl_ge_3_3_0 = _mpl_version("3.3.0", operator.ge)
|
|
|