Skip to content

Preserve small Gaussian grid probabilities away from measurements - #1498

Open
Afloat16 wants to merge 1 commit into
AtsushiSakai:masterfrom
Afloat16:fix/gaussian-grid-tail
Open

Afloat16 wants to merge 1 commit into
AtsushiSakai:masterfrom
Afloat16:fix/gaussian-grid-tail

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 6, 2026

Copy link
Copy Markdown

Reference issue

Reproduced on master at 61a8b0b.

What does this implement/fix?

Subtracting a CDF rounded to one gives zero for representable upper-tail probabilities. Evaluate the normal survival function directly when converting distance to a cell value.

Additional information

The test checks the value at the observation and a cell ten standard deviations away (about 7.62e-24). The regression failed on the original implementation and passed after the fix. Tested with Python 3.13.17 and the repository's pinned requirements. The modified module's tests and examples passed, Ruff passed, and the Sphinx HTML build succeeded.

CheckList

  • Added regression coverage for the defect.
  • Updated the example documentation.
  • CI results pending.

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