Skip to content

BUG: Validate PriorDict assignments - #1116

Open
Sanjays2402 wants to merge 1 commit into
bilby-dev:mainfrom
Sanjays2402:fix/1111-validate-prior-assignment
Open

BUG: Validate PriorDict assignments#1116
Sanjays2402 wants to merge 1 commit into
bilby-dev:mainfrom
Sanjays2402:fix/1111-validate-prior-assignment

Conversation

@Sanjays2402

Copy link
Copy Markdown

Closes #1111

Reject unsupported values assigned to PriorDict with the same TypeError used during constructor parsing. This prevents invalid entries such as zero-dimensional NumPy arrays from remaining visible in the dictionary while silently disappearing from sample() output.

Tested with the full test/core/prior/dict_test.py suite (37 passed), including a regression that fails on the original source.

Reject unsupported values assigned after initialization with the same error used by constructor parsing. Add a regression for zero-dimensional NumPy arrays.
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.

BUG: PriorDict silently drops invalid values added after initialization

1 participant