mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-07 02:52:40 +02:00
[plotting] no printing of warning unless you actually use plotting
This commit is contained in:
parent
c1a2f7e556
commit
6a5c2ea164
2 changed files with 5 additions and 2 deletions
|
|
@ -5,3 +5,7 @@ try:
|
||||||
from . import matplot_dep
|
from . import matplot_dep
|
||||||
except (ImportError, NameError):
|
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")
|
||||||
|
|
@ -7,7 +7,6 @@ from GPy.models import GradientChecker
|
||||||
import functools
|
import functools
|
||||||
import inspect
|
import inspect
|
||||||
from GPy.likelihoods import link_functions
|
from GPy.likelihoods import link_functions
|
||||||
from GPy.core.parameterization import Param
|
|
||||||
from functools import partial
|
from functools import partial
|
||||||
fixed_seed = 7
|
fixed_seed = 7
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue