[ ] I've formatted the new code by running poetry run pre-commit run --all-files --show-diff-on-failure before committing.
[ ] I've added tests for new code.
[ ] I've added docstrings for the new code.
Description
Oceanmodelling example notebook wasn't working in python 3.11 or 3.12:
ValueError: mutable default <class 'gpjax.kernels.stationary.rbf.RBF'> for field kernel0 is not allowed: use default_factory
Fixed this issue by replacing direct assignment of kernels with field(default_factory=...). Although checked backwards compatibility with python 3.10
Please describe your changes here. If this fixes a bug, please link to the issue, if possible.
Type of changes
Checklist
poetry run pre-commit run --all-files --show-diff-on-failure
before committing.Description
Oceanmodelling example notebook wasn't working in python 3.11 or 3.12:
ValueError: mutable default <class 'gpjax.kernels.stationary.rbf.RBF'> for field kernel0 is not allowed: use default_factory Fixed this issue by replacing direct assignment of kernels with field(default_factory=...). Although checked backwards compatibility with python 3.10
Please describe your changes here. If this fixes a bug, please link to the issue, if possible.
Issue Number: N/A