Skip to content

Bind std_tests when a MeanStdMetric has no mean_tests - #1926

Open
darkdi wants to merge 1 commit into
evidentlyai:mainfrom
darkdi:fix-meanstd-std-tests
Open

Bind std_tests when a MeanStdMetric has no mean_tests#1926
darkdi wants to merge 1 commit into
evidentlyai:mainfrom
darkdi:fix-meanstd-std-tests

Conversation

@darkdi

@darkdi darkdi commented Sep 13, 2026

Copy link
Copy Markdown

Noticed while reading MeanStdMetric: with MeanError(std_tests=[lte(0.0001)]) and no reference data the report comes back with no tests at all, the std test just disappears. Only mean_tests alone worked. I added a small test for both cases; it fails on main without the one-word change.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RLUWMiUYbYkPzoYwn1P8uE

get_bound_tests checked mean_tests twice, so a metric given only
std_tests fell back to the default tests and dropped the user's ones.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RLUWMiUYbYkPzoYwn1P8uE
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