exoplanet-dev / exoplanet-dev/celerite2
gp does not own its data
- Dominant language
- C++
- Stars
- 85
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I am using emcee to maximize a likelihood function to which I pass a celerite2.GaussianProcess object. I store the chain in a h5 file. When I start the emcee sampling from scratch there is no issue, but if I restart the sampling loading the h5 file then the gp.compute() instruction throws this error:
`
File ".../python3.6/site-packages/celerite2/core.py", line 313, in compute
self._t, self._diag, c=self._c, a=self._a, U=self._U, V=self._V
File ".../python3.6/site-packages/celerite2/terms.py", line 157, in get_celerite_matrices
c.resize(J, refcheck=False)
ValueError: cannot resize this array: it does not own its data
`
How can I fix it? Thanks
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.