mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-06 02:24:17 +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
|
|
@ -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")
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue