ja-vazquez / SimpleMC

Updated version of a simple MCMC code for cosmological parameter estimation where only expansion history matters.
GNU General Public License v2.0
21 stars 14 forks source link

Creating a GUI for SimpleMC #16

Closed camarman closed 2 years ago

camarman commented 3 years ago

I have used PySimpleGUI to create a GUI for the SimpleMC. In this demo, I have programmed two cosmological models, LCDM and Graduated Dark Energy (Grad_Ok), with two samplers, mcmc, and emcee.

Here are some sample images from the GUI for the LCDM model and mcmc sampler

LCDM_main page LCDM_second page LCDM_analyzer LCDM_third page

And these are from Grad_Ok and emcee

grad_Ok_emcee grad_ok_model_param

For the moment, I have disabled the parameter inputs. However, it can be enabled from the line 61 and 86-87 in simplemcgui\pages\secondary_page.py.

The reason is that when I enable it, the program asks the parameters from the user that is not needed for the model.

Another problem is that when you run the emcee sampler, the GUI page being created four times on the screen. I am not sure how the problem can be fixed. Other than that, the program runs perfectly fine.