Skip to content

Compare feature values with a tolerance in test_data - #33

Merged
JaimeRZP merged 1 commit into
mainfrom
fix-test-tolerance
Nov 6, 2026
Merged

JaimeRZP merged 1 commit into
mainfrom
fix-test-tolerance

Conversation

@JaimeRZP

@JaimeRZP JaimeRZP commented Nov 6, 2026

Copy link
Copy Markdown
Owner

test_non_detection_empties_its_bin failed on main's CI run: the coverage channel came out as 0.9999999999999998 instead of 1. It's a matrix product, so its exact value depends on the machine's floating-point round-off (the same test passed on the PR run). The three exact float comparisons in tests/test_data.py now use an absolute tolerance of 1e-12.

🤖 Generated with Claude Code

The coverage channel is a matrix product, so its ones and zeros are only exact to
round-off, which depends on the machine (0.9999999999999998 on a CI runner).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JaimeRZP
JaimeRZP merged commit 4ee6d7b into main Nov 6, 2026
1 check passed
@JaimeRZP
JaimeRZP deleted the fix-test-tolerance branch November 6, 2026 14:27
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