Skip to content

Add warning to PriorDict.evaluate_constraints.#1099

Open
AlexandreGoettel wants to merge 1 commit into
bilby-dev:mainfrom
AlexandreGoettel:warning-missing-constraint
Open

Add warning to PriorDict.evaluate_constraints.#1099
AlexandreGoettel wants to merge 1 commit into
bilby-dev:mainfrom
AlexandreGoettel:warning-missing-constraint

Conversation

@AlexandreGoettel

Copy link
Copy Markdown
Collaborator

Addresses #1098

Technically, if the conversion function does not affect some of the constrained parameters they will be ignored too, but to check this would (afaik) require quite some refactoring and I'm not sure it is worth implementing.

However, having talked to people that use Bilby, all of them have been surprised and worried by this behaviour, so this warning, which will affect all cases in which a prior is defined without an explicit conversion function, is a good step imo.

@adivijaykumar

Copy link
Copy Markdown
Collaborator

I am in favor of adding this, since I have fallen into this trap before. I am not sure I feel inclined to just checking against the default conversion function though. Perhaps we should also improve documentation of the PriorDict or the conversion function in both bilby and bilby_pipe to note this fact? Any other opinions?

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

Successfully merging this pull request may close these issues.

2 participants