dfm / george

Fast and flexible Gaussian Process regression in Python
http://george.readthedocs.io
MIT License
450 stars 128 forks source link

Adding custom kernel issue #152

Closed allisony closed 2 years ago

allisony commented 2 years ago

I'm following the instructions here (https://george.readthedocs.io/en/latest/tutorials/new-kernel/#kernel-specification) for adding a new kernel. I've saved a .yml file in /george/kernels/ and recompiled george, but the new kernel isn't showing up under george.kernels. Are there other instructions somewhere? Or any idea what I'm doing wrong?

dfm commented 2 years ago

It looks like you'll now need to run python generate_kernels.py in the root directory of the repo first. That's not documented, but it should do the trick! You might need to run the following to install dependencies first:

conda install pyyaml jinja2
allisony commented 2 years ago

Yes, that worked (I already had pyyaml and jinja2 installed). Thanks so much!