[plotting] no printing of warning unless you actually use plotting

This commit is contained in:
Max Zwiessele 2015-09-10 09:26:07 +01:00
parent c1a2f7e556
commit 6a5c2ea164
2 changed files with 5 additions and 2 deletions

View file

@ -4,4 +4,8 @@
try:
from . import matplot_dep
except (ImportError, NameError):
# Matplotlib not available
# Matplotlib not available
import warnings
warnings.warn(ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting"))
#sys.modules['matplotlib'] =
#sys.modules[__name__+'.matplot_dep'] = ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting")

View file

@ -7,7 +7,6 @@ from GPy.models import GradientChecker
import functools
import inspect
from GPy.likelihoods import link_functions
from GPy.core.parameterization import Param
from functools import partial
fixed_seed = 7