GetDist Convergence or Gelman Rubin test

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Isidro Gomez
Posts: 3
Joined: March 19 2020
Affiliation: IPN
Contact:

GetDist Convergence or Gelman Rubin test

Post by Isidro Gomez » March 19 2020

Hello,

I want to do a convergence test given two text files resulting from two mcmc samples (in cosmoMC format). How can I use the getConvergeTests function or getGelmanRubin function?

I suppose my main difficulty is that I can't create a mcsamples object containing the samples from both text files. Can you help me?

Thank you.

Antony Lewis
Posts: 1634
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: GetDist Convergence or Gelman Rubin test

Post by Antony Lewis » March 20 2020


Isidro Gomez
Posts: 3
Joined: March 19 2020
Affiliation: IPN
Contact:

Re: GetDist Convergence or Gelman Rubin test

Post by Isidro Gomez » March 20 2020

Hello,

Thanks a lot for your answer. I tried to use this function, but when I want to involve multiple files of chains, do I need to use a tuple, a list, a set or the comma separated file names? I tried all these four options without success.

If I use mcsamples.loadMCSamples with only one file, I don't have any problem, but with more files the error is

Code: Select all

AttributeError: 'set' object has no attribute 'endswith'
'set' can be 'list', 'tuple' or 'nonetype'.

Thank you.

Antony Lewis
Posts: 1634
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: GetDist Convergence or Gelman Rubin test

Post by Antony Lewis » March 20 2020

just give the base name, 'chain' will load files 'chain_1.txt','chain_2.txt' etc.

Isidro Gomez
Posts: 3
Joined: March 19 2020
Affiliation: IPN
Contact:

Re: GetDist Convergence or Gelman Rubin test

Post by Isidro Gomez » March 23 2020

Thank you!

Post Reply