Skip to content

MAINT: move LikePriorEvaluator to base sampler#1041

Merged
mj-will merged 2 commits intobilby-dev:mainfrom
mj-will:move-sampler-utils
Feb 18, 2026
Merged

MAINT: move LikePriorEvaluator to base sampler#1041
mj-will merged 2 commits intobilby-dev:mainfrom
mj-will:move-sampler-utils

Conversation

@mj-will
Copy link
Copy Markdown
Collaborator

@mj-will mj-will commented Feb 12, 2026

Move the LikePriorEvaluator class to base sampler.

This allows external sampler plugins to use the class without depending on another sampler plugin. Ideally, I'd get this in for 2.8.0 since it would simplify moving the samplers.

I'm open for suggestions if anyone has thoughts on where to put this.

@mj-will mj-will added this to the 2.8.0 milestone Feb 12, 2026
@mj-will mj-will requested a review from ColmTalbot February 12, 2026 08:26
@mj-will mj-will added the sampling Issues about sampling algorithms, their efficiency and robustness label Feb 12, 2026
@mj-will mj-will requested a review from a team February 12, 2026 08:31
Copy link
Copy Markdown
Collaborator

@ColmTalbot ColmTalbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me

@GregoryAshton
Copy link
Copy Markdown
Collaborator

No objections to this, but what other samplers need this and why?

@adivijaykumar
Copy link
Copy Markdown
Collaborator

I'd replace from .ptemcee import LikePriorEvaluator in kombine.py, emcee.py, and zeus.py with from .base_sampler import LikePriorEvaluator.

@mj-will mj-will added the plugin Changes related to existing or new plugins label Feb 12, 2026
@mj-will mj-will enabled auto-merge February 18, 2026 17:43
@mj-will mj-will added this pull request to the merge queue Feb 18, 2026
Merged via the queue into bilby-dev:main with commit 93be0cd Feb 18, 2026
13 checks passed
@mj-will mj-will deleted the move-sampler-utils branch February 18, 2026 19:51
fgittins pushed a commit to fgittins/bilby that referenced this pull request Mar 5, 2026
* MAINT: move LikePriorEvaluator to base sampler

* MAINT: improve `LikePriorEvaluator` from `base_sampler`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin Changes related to existing or new plugins sampling Issues about sampling algorithms, their efficiency and robustness

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants