Skip to content

REL: prepare 2.8.1#1103

Draft
mj-will wants to merge 3 commits into
bilby-dev:release/2.8.xfrom
mj-will:backport-1061
Draft

REL: prepare 2.8.1#1103
mj-will wants to merge 3 commits into
bilby-dev:release/2.8.xfrom
mj-will:backport-1061

Conversation

@mj-will

@mj-will mj-will commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Prepare 2.8.1.

This PR back ports bug fixes to the 2.8.x branch.

The fixes are:

Comment thread bilby/core/prior/dict.py
is_valid = self.evaluate_constraints(sample)
n_tested_samples += 1
n_valid_samples += int(is_valid)
n_valid_samples += int(np.squeeze(is_valid))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm happy to include this, there is no reason it needs to be consistent with v3, but this is the fix that I included in the backend changes

Suggested change
n_valid_samples += int(np.squeeze(is_valid))
n_valid_samples += int(is_valid.item())

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.

4 participants