slicing: slicing now thorughs the right error

This commit is contained in:
mzwiessele 2014-04-28 15:14:21 +01:00
parent 79e0f54c53
commit 4e793fe3a0
2 changed files with 8 additions and 1 deletions

View file

@ -42,6 +42,7 @@ class _Slice_wrap(object):
self.X2 = self.k._slice_X(X2) if X2 is not None else X2
self.ret = True
else:
assert X.shape[1] == self.k.input_dim, "You did not specify active_dims and X has wrong shape: X_dim={} -- input_dim={}".format(X.shape[1], self.input_dim)
self.X = X
self.X2 = X2
self.ret = False