Skip to content

Infer blob dtype without rejected-walker placeholders - #583

Open
AryanRG wants to merge 1 commit into
dfm:mainfrom
AryanRG:fix-wave182-emcee
Open

AryanRG wants to merge 1 commit into
dfm:mainfrom
AryanRG:fix-wave182-emcee

Conversation

@AryanRG

@AryanRG AryanRG commented Oct 31, 2026

Copy link
Copy Markdown

When blobs_dtype is omitted, the first walker's blob currently determines the dtype for every walker. A placeholder returned with -np.inf can therefore truncate valid floating-point blobs to integers, or make the HDF backend fail on an object dtype.

This infers the dtype from the blobs with non-rejected log probabilities, while preserving object-array support for heterogeneous placeholders. An explicit blobs_dtype remains enforced.

The regressions cover integer, boolean and None placeholders with both backends, plus direct compute_log_prob() calls with array-valued blobs. The full local suite passes on NumPy 1.26 and 2.5.

This branch has not been deployed

No deployments
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.

1 participant