You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using UltraNest to try to reproduce a injection retrieval example from Pandora, a open-source exomoon transit detection algorithm. However I am trying to fit the synthetic data with the model produced by the code Gefera, a generic code for light curves of two bodies mutually transiting a star.
My scrypt is extremely similar to the one found here, I just changed the likelihood function in order to create the model using gefera and modified the parameters.
After a few seconds of running, this is the error that I get:
Traceback (most recent call last):-3917.31 [-53114.9584..-5841.1897] | it/evals=14/18559 eff=0.0797% N=1000
File "/home/pietro/Desktop/PhD/Work/gefera/ultranest+ge.py", line 233, in <module>
result_planet_moon = sampler.run(min_num_live_points=1000)
File "/home/pietro/anaconda3/envs/pandora_env/lib/python3.9/site-packages/ultranest/integrator.py", line 2311, in run
for result in self.run_iter(
File "/home/pietro/anaconda3/envs/pandora_env/lib/python3.9/site-packages/ultranest/integrator.py", line 2527, in run_iter
region_fresh = self._update_region(
File "/home/pietro/anaconda3/envs/pandora_env/lib/python3.9/site-packages/ultranest/integrator.py", line 1961, in _update_region
_update_region_bootstrap(self.region, nbootstraps, minvol, self.comm if self.use_mpi else None, self.mpi_size)
File "/home/pietro/anaconda3/envs/pandora_env/lib/python3.9/site-packages/ultranest/integrator.py", line 369, in _update_region_bootstrap
r, f = region.compute_enlargement(
File "ultranest/mlfriends.pyx", line 855, in ultranest.mlfriends.MLFriends.compute_enlargement
File "ultranest/mlfriends.pyx", line 388, in ultranest.mlfriends.bounding_ellipsoid
File "ultranest/mlfriends.pyx", line 303, in ultranest.mlfriends.make_eigvals_positive
ValueError: Buffer has wrong number of dimensions (expected 2, got 0)
What I Did
I start my scrypt by simulating my timing data, with the algorithm Pandora. Then I define the prior_transform function and the log_likelihood function:
According to the debug.log, you have a likelihood plateau, interestingly not at the beginning of the run but after a few iterations.
Maybe you want to check why all the points then return loglike=-5841.19.
That said, this error message is not very helpful, and it should be handled better. But I don't quite understand how this occurs.
Maybe putting a few prints in these lines could help debug:
"/home/pietro/anaconda3/envs/pandora_env/lib/python3.9/site-packages/ultranest/integrator.py", line 369
File "ultranest/mlfriends.pyx", line 855, in ultranest.mlfriends.MLFriends.compute_enlargement
File "ultranest/mlfriends.pyx", line 388, in ultranest.mlfriends.bounding_ellipsoid
File "ultranest/mlfriends.pyx", line 303, in ultranest.mlfriends.make_eigvals_positive
In particular: Is the list of live points empty? What is the highest level loop where this occurs?
In integrator.py, perhaps the integration should stop when the live points cannot be replaced.
Description
I am using UltraNest to try to reproduce a injection retrieval example from Pandora, a open-source exomoon transit detection algorithm. However I am trying to fit the synthetic data with the model produced by the code Gefera, a generic code for light curves of two bodies mutually transiting a star.
My scrypt is extremely similar to the one found here, I just changed the likelihood function in order to create the model using gefera and modified the parameters.
After a few seconds of running, this is the error that I get:
What I Did
I start my scrypt by simulating my timing data, with the algorithm Pandora. Then I define the prior_transform function and the log_likelihood function:
These are the sampler and step.sampler:
I am attaching the debug.log
The text was updated successfully, but these errors were encountered: