Skip to content

Align divergence markers with selected coordinates - #357

Open
rpinho wants to merge 1 commit into
dfm:mainfrom
rpinho:fix-divergence-coords
Open

rpinho wants to merge 1 commit into
dfm:mainfrom
rpinho:fix-divergence-coords

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026

Copy link
Copy Markdown

Selecting chains or draws with coords and divergences=True raises an indexing error, and reordering chains can mark draws whose divergence flag is false. For example, corner.corner(data, coords={"chain": [1]}, divergences=True) plots a subset of samples but uses the divergence mask for all chains. Apply the coordinate selection to sample statistics before flattening the mask, skipping dimensions absent from that group. Tests check marker coordinates against input flags for selection, reordering, parameter coordinates and both plot orientations in prior and posterior groups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

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