Coverage for backend/ahuora-compounds/ahuora_property_packages/humid_air/humid_air_builder.py: 20%
9 statements
« prev ^ index » next coverage.py v7.10.7, created at 2026-07-22 05:22 +0000
« prev ^ index » next coverage.py v7.10.7, created at 2026-07-22 05:22 +0000
1from .HumidAirSurrogate import HAirParameterBlock
2from typing import List
4def build_humid_air_package(compound_list: List[str]):
5 if len(compound_list) != 2:
6 raise ValueError("Humid Air package only supports two components: water and air")
7 for compound in compound_list:
8 if compound not in ["water", "air"]:
9 raise ValueError(f"Compound {compound} not supported in Humid Air package")
11 return HAirParameterBlock()