Skip to content

Conversation

@operdeck
Copy link
Collaborator

@operdeck operdeck commented Jan 3, 2026

Highlighting of values in the ADM health check is based on an export of the same metric limits that we use for the Databricks layer. Source of truth is an Excel sheet that is exported to CSV that is part of both systems. The PDS tools utilities support highlighting the values from a Polars dataframe rending it to either a great_tables or itables display format. The previous mechanism in CDHGuidelines is removed, making this technically a breaking change, but there are not many clients of this functionality.

@codecov
Copy link

codecov bot commented Jan 3, 2026

Codecov Report

❌ Patch coverage is 84.21053% with 66 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.99%. Comparing base (c081d44) to head (416f741).
⚠️ Report is 11 commits behind head on master.

Files with missing lines Patch % Lines
python/pdstools/utils/metric_limits.py 85.54% 37 Missing ⚠️
python/pdstools/utils/report_utils.py 78.12% 21 Missing ⚠️
python/pdstools/utils/number_format.py 87.03% 7 Missing ⚠️
python/pdstools/adm/Plots.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #498      +/-   ##
==========================================
+ Coverage   67.89%   68.99%   +1.10%     
==========================================
  Files          66       68       +2     
  Lines        6671     6921     +250     
==========================================
+ Hits         4529     4775     +246     
- Misses       2142     2146       +4     

☔ 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.

- Remove CDH_Guidelines class, move all limits to MetricLimits.csv
- Add convenience methods: minimum(), maximum(), best_practice_min(), best_practice_max()
- Methods raise KeyError for unknown metric IDs
- Add evaluate_metric_rag() for Python-based RAG evaluation
- Add tests verifying Python/Polars RAG equivalence
- Update reports to use MetricLimits
@operdeck operdeck merged commit c1e0ca9 into master Jan 6, 2026
16 checks passed
@operdeck operdeck deleted the Refactor_MetricLimits branch January 6, 2026 12:21
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.

2 participants