Closed neilzim closed 3 years ago
@spencerhurt would you mind taking a look at this? It looks like something has gone wrong with the vector initialization. I took a quick look but the problem wasn't obvious to me.
It looks like one of the recent updates caused an indexing error when initializing the vector object. I submitted a pull request and the Synthetic Data Tutorial now runs fine for me. Thanks for bringing this up, and let us know if the problem keeps coming up!
Thank you very much, @spencerhurt and @bjfultn.
Hi!
I have a very similar error. Running the most recent version of RadVel, and when I run
df = radvel.mcmc(post,nwalkers=20,nrun=400,savename='rawchains.h5')
It returns
Traceback (most recent call last): File "/mnt/c/Users/...folder.../RadVel.py", line 73, in <module> df = radvel.mcmc(post,nwalkers=20,nrun=400,savename='rawchains.h5') File "/home/...username.../.local/lib/python3.10/site-packages/radvel/mcmc.py", line 301, in mcmc names = post.name_vary_params() File "/home/...username.../.local/lib/python3.10/site-packages/radvel/likelihood.py", line 170, in name_vary_params list.append(self.vector.names[i]) IndexError: list index out of range
The code is according to https://github.com/California-Planet-Search/radvel/pull/338.
After upgrading from v1.3.8 to v1.4.2, my calls to RVLikelihood() result in a list index error. The same problem occurs in your tutorial notebook docs/tutorials/SyntheticData.ipynb. Therefore if you run that notebook as-is, it should reproduce my error.
In cell 4 ("Generate a likelihood") the command
like_syn = radvel.likelihood.RVLikelihood(rv_mod,t,syn_rv,zeros(t.size)+errvel)
results in: