"""NPitV (справочник питательных веществ) → ключи показателей WESP.""" from __future__ import annotations # NORMY_MOSKWA_LACTIR / NORM_1_1_CALC: NPitV 1–24 (pom=1) NPITV_TO_INDICATOR: dict[int, str] = { 1: "feed_units", 2: "oe", 3: "dry_matter", 4: "crude_protein", 5: "digestible_protein", 6: "crude_fat", 7: "nel", 8: "rnb", 9: "usp", 10: "sodium", 11: "magnesium", 12: "starch", 13: "potassium", 14: "calcium", 15: "phosphorus", 16: "iron", 17: "copper", 18: "zinc", 19: "manganese", 20: "cobalt", 21: "iodine", 22: "carotene", 23: "vitamin_d", 24: "vitamin_e", } DAIRY_LACTIR_NPITV: tuple[int, ...] = tuple(range(1, 25)) # Обратная совместимость DAIRY_CORE_NPITV: tuple[int, ...] = (2, 3, 4, 5, 7, 8, 9, 10, 12, 14, 15) INDICATOR_TO_NPITV: dict[str, int] = {v: k for k, v in NPITV_TO_INDICATOR.items()} def indicator_for_npitv(npitv: int) -> str | None: return NPITV_TO_INDICATOR.get(npitv)