Closed cmcgrud1 closed 6 years ago
Brutal. I can't reproduce this, but I expect that it has something to do with clashing versions of george. Here's what I would do:
pip uninstall george
pip uninstall george
pip uninstall george # do this a few times until it says that george is not installed...
rm -rf build
python setup.py develop
And try that again. If that doesn't work, I'll think on it some more...
yup yup yup, that fixed the problem. Your wisdom knows no bounds. Thank you very much!
Hey dfm, I am trying to implement a new kernel with the developmental version of george on github and I keep running into a AttributeError. In fact when I just copy and past the example MyLocalGaussian.yml file and put it in the kernel directory and reinstall george I get this error when attempting to do the gradient test the tutorial does:
In [1]: import numpy as np
In [2]: from george import kernels
In [3]: x = np.linspace(-10,10,500)
In [4]: kernel = 5 * kernels.MyLocalGaussianKernel(x0=0.0, log_w=np.log(0.2))
In [5]: kernel.test_gradient(np.atleast_2d(x).T)
AttributeError Traceback (most recent call last)