Ankur Malik c98f0148e3
All checks were successful
Build and Push Docker Image / test (push) Successful in 10s
Build and Push Docker Image / build_and_push (push) Successful in 19s
Add Scores S4 review handling
2026-05-20 13:24:17 -04:00

40 lines
924 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,
hd_score_s4: float = 0
) -> 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,
"hd_score_s4": hd_score_s4
}
final = processing(data)
logger.info(f"Scores of application: {final}")
return final
# testing :
# __main__