Ankur Malik b3be1ebf66
All checks were successful
Build and Push Docker Image / test (push) Successful in 1m5s
Build and Push Docker Image / build_and_push (push) Successful in 21s
Add hd_score_g2 support and reason-based scoring
2025-11-26 11:58:53 -05:00

38 lines
856 B
Python

import logging
from score_processing import processing
# Configure logging
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s [%(levelname)s] %(name)s - %(message)s",
)
logger = logging.getLogger(__name__)
def __main__(
hd_score_m1: float,
hd_score_g1: float,
hd_score_s1: float,
hd_score_s2: float,
hd_score_s3: float,
hd_score_iso_m2: float,
hd_score_g2: float
) -> dict:
data = {
"hd_score_m1": hd_score_m1,
"hd_score_g1": hd_score_g1,
"hd_score_s1": hd_score_s1,
"hd_score_s2": hd_score_s2,
"hd_score_s3": hd_score_s3,
"hd_score_iso_m2": hd_score_iso_m2,
"hd_score_g2": hd_score_g2
}
final = processing(data)
logger.info(f"Scores of application: {final}")
return final
# testing :
# __main__