[verbosity] option in tests

This commit is contained in:
Max Zwiessele 2015-09-10 14:45:52 +01:00
parent 6a5c2ea164
commit 7391bbc72a
2 changed files with 5 additions and 5 deletions

View file

@ -28,11 +28,11 @@ try:
#Get rid of nose dependency by only ignoring if you have nose installed
from nose.tools import nottest
@nottest
def tests():
Tester(testing).test(verbose=10)
def tests(verbose=10):
Tester(testing).test(verbose=verbose)
except:
def tests():
Tester(testing).test(verbose=10)
def tests(verbose=10):
Tester(testing).test(verbose=verbose)
def load(file_path):
"""

View file

@ -105,7 +105,7 @@ class IndependentOutputs(CombinationKernel):
if X2 is None:
# TODO: make use of index_to_slices
# FIXME: Broken as X is already sliced out
print("Warning, gradients_X may not be working, I believe X has already been sliced out by the slicer!")
# print("Warning, gradients_X may not be working, I believe X has already been sliced out by the slicer!")
values = np.unique(X[:,self.index_dim])
slices = [X[:,self.index_dim]==i for i in values]
[target.__setitem__(s, kern.gradients_X(dL_dK[s,s],X[s],None))