Page 1 of 1

GetDist Convergence or Gelman Rubin test

Posted: March 19 2020
by Isidro Gomez
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.

Re: GetDist Convergence or Gelman Rubin test

Posted: March 20 2020
by Antony Lewis

Re: GetDist Convergence or Gelman Rubin test

Posted: March 20 2020
by Isidro Gomez
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.

Re: GetDist Convergence or Gelman Rubin test

Posted: March 20 2020
by Antony Lewis
just give the base name, 'chain' will load files 'chain_1.txt','chain_2.txt' etc.

Re: GetDist Convergence or Gelman Rubin test

Posted: March 23 2020
by Isidro Gomez
Thank you!