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
20 stars 14 forks source link

Dynamic Nested Sampler Error #38

Open camarman opened 1 year ago

camarman commented 1 year ago

When I enable dynamic nested sampler I am getting this error

Using dynamic nested sampling...
Traceback (most recent call last):
  File "/home/carman/Desktop/coding/SimpleMC/run_simplemc.py", line 7, in <module>
    analyzer.executer()
  File "/home/carman/Desktop/coding/SimpleMC/simplemc/DriverMC.py", line 159, in executer
    self.nestedRunner(iniFile=self.iniFile, **kwargs)
  File "/home/carman/Desktop/coding/SimpleMC/simplemc/DriverMC.py", line 367, in nestedRunner
    sampler.run_nested(nlive_init=nlivepoints, dlogz_init=0.05, nlive_batch=100,
TypeError: DynamicSampler.run_nested() got an unexpected keyword argument 'simpleLike'
Traceback (most recent call last):
  File "/home/carman/Desktop/coding/SimpleMC/run_simplemc.py", line 7, in <module>
    analyzer.executer()
  File "/home/carman/Desktop/coding/SimpleMC/simplemc/DriverMC.py", line 159, in executer
    self.nestedRunner(iniFile=self.iniFile, **kwargs)
  File "/home/carman/Desktop/coding/SimpleMC/simplemc/DriverMC.py", line 367, in nestedRunner
    sampler.run_nested(nlive_init=nlivepoints, dlogz_init=0.05, nlive_batch=100,
TypeError: DynamicSampler.run_nested() got an unexpected keyword argument 'simpleLike'

Is it not usable or there's some sort of bug ?

igomezv commented 1 year ago

Can you share your ini file or what is your model and the priors of its parameters?

camarman commented 1 year ago

I was actually making a test run. I was trying LCDM with Planck_15 dataset.

Here are my base parameters

# Base parameters.
Om_par = Parameter("Om", 0.300, 0.03, (0.05, 1), "\Omega_m")
Obh2_par = Parameter("Obh2", 0.02234, 0.001, (0.02, 0.025), "\Omega_{b}h^2")
h_par = Parameter("h", 0.675, 0.03, (0.4, 1.0), "h")

Other than these I did not change any parameters. And my `.ini' file: baseConfig.txt

Note: GithHub does not allow .ini files to upload. So I changed it to .txt just to send the file.