Implement DDS exercise, customer UI and local demo

This commit is contained in:
andreysk0304 2026-09-21 19:56:13 +03:00
commit 0526b11f91
46 changed files with 2504 additions and 253 deletions

View file

@ -0,0 +1,10 @@
"""Пересчёт предварительной шкалы под утверждённый методистом сценарий."""
from app.scoring.gost import GostResult
def apply_weights(result: GostResult, overrides: dict[str, float]) -> None:
"""Меняет только веса метрик; факты, нормативы и ошибки неизменны."""
for metric in result.metrics:
if metric.key in overrides:
metric.weight = overrides[metric.key]