PyMultiNest icon indicating copy to clipboard operation
PyMultiNest copied to clipboard

Sampling Not Beginning on

Open kunalm-09 opened this issue 8 months ago • 1 comments
trafficstars

I am running pymultinest on many cutouts of a .fits file, essentially iterating over about 1000 times and running pymultinest to completion before moving on to the next iteration. I am using TACC's Lonestar6 high performance computing cluster for this. The issue I am having is that, randomly, one of the cutouts will start and never progress past this point:


MultiNest v3.10 Copyright Farhan Feroz & Mike Hobson Release Jul 2015

no. of live points = 400 dimensionality = 6


Starting MultiNest generating live points live points generated, starting sampling

The following files are the only ones that are created: run_F160W_233_760_20.7th_mag_singles_IS.points
run_F160W_233_760_20.7th_mag_singles_params.json run_F160W_233_760_20.7th_mag_singles_ev.dat
run_F160W_233_760_20.7th_mag_singles_IS.ptprob
run_F160W_233_760_20.7th_mag_singles_phys_live.points run_F160W_233_760_20.7th_mag_singles_IS.iterinfo
run_F160W_233_760_20.7th_mag_singles_live.points
run_F160W_233_760_20.7th_mag_singles_resume.dat

This issue happens completely randomly, does not usually repeat on the same cutout when the program is rerun, and will cause an entire run to halt until the max time set in the SLURM file is hit.

Is this an issue you have ever encountered before and have any idea how to solve? Even if there was some way to abort the mutlinest run if it does not progress past a certain point, that would be useful to keep the scheduled job going. I can provide the details in any of the files above if it helps.

Thank you!

kunalm-09 avatar Feb 24 '25 22:02 kunalm-09

I don't know. You probably need to put some prints into your function to see where it is stuck. One feature of multinest is that prior samples below a threshold (by default log_zero = -1e100) are ignored and not used. Maybe your likelihood function only returns values below that?

JohannesBuchner avatar Feb 25 '25 07:02 JohannesBuchner