Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in applying non-flat prior #119

Open
seshnadathur opened this issue Oct 18, 2018 · 1 comment
Open

bug in applying non-flat prior #119

seshnadathur opened this issue Oct 18, 2018 · 1 comment

Comments

@seshnadathur
Copy link

The code gives an error when the user attempts to use a Gaussian prior for any nuisance parameter, by including a line like
data.parameters['xyz'] = [10.0, 0, 20, 0.5, 1, 'nuisance', 'gaussian', 10.0, 1]
in the input parameter file (as the Prior module is designed to read, although this is not explained very well in the documentation).

If this line is included, the parameter xyz is then not recognised as a nuisance parameter. The cause of this bug is in line 999 of the file data.py, which should read:
self['role'] = array[5]
In the current implementation it is taking the provided sigma value of the prior as the parameter role.

@brinckmann
Copy link
Contributor

Thanks! I'll fix it in the upcoming release.
By the way, this github page is no longer being maintained, so please report bugs on our new github page: https://github.com/brinckmann/montepython_public
Best,
Thejs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants