Added an assert to check the lengthscale vector is half the size of the input

This commit is contained in:
Michael T Smith 2017-03-21 23:00:38 +00:00
parent be77e35b23
commit 6b24dfffee

View file

@ -23,6 +23,8 @@ class Multidimensional_Integral_Limits(Kern): #todo do I need to inherit from St
lengthscale = np.ones(1)
else:
lengthscale = np.asarray(lengthscale)
assert len(lengthscale)==input_dim/2
self.lengthscale = Param('lengthscale', lengthscale, Logexp()) #Logexp - transforms to allow positive only values...
self.variances = Param('variances', variances, Logexp()) #and here.