Skip to content

Conversation

@EmanAbdelhaleem
Copy link
Contributor

Details

fixed a simple assertion error message in `evalutation/functions.py'

@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.73%. Comparing base (c5f68bf) to head (e3b1a45).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1600      +/-   ##
==========================================
- Coverage   53.02%   52.73%   -0.29%     
==========================================
  Files          36       36              
  Lines        4326     4327       +1     
==========================================
- Hits         2294     2282      -12     
- Misses       2032     2045      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fkiraly fkiraly changed the title [ENH] A slight fix to an assertion error message [ENH] improved simple assertion error message in evalutation/functions.py Jan 6, 2026
Copy link
Contributor

@geetu040 geetu040 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this PR related to #1574?

Comment on lines 234 to 236
assert isinstance(evals_dict["oml:evaluations"]["oml:evaluation"], list), type(
evals_dict["oml:evaluations"],
evals_dict["oml:evaluations"]["oml:evaluation"],
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be descriptive.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I got what you mean, should I change something or not?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assertion message can be improved like this:

"Expected 'oml:evaluations.oml:evaluation' to be a list, but got ..."

@EmanAbdelhaleem
Copy link
Contributor Author

How is this PR related to #1574?

It's not. It's a slight mistake I found while reading the code for evaluation functions

Copy link
Contributor

@geetu040 geetu040 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

CC: @fkiraly @SimonBlanke for review/merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants