From 182c54133e39a769d71cd4a7b4169fe53a98eb82 Mon Sep 17 00:00:00 2001 From: yereeem Date: Tue, 7 Jan 2025 10:17:34 +1300 Subject: [PATCH] raise error if component not registered --- property_packages/helmholtz/helmholtz_builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/property_packages/helmholtz/helmholtz_builder.py b/property_packages/helmholtz/helmholtz_builder.py index a494f3a..d6233d8 100644 --- a/property_packages/helmholtz/helmholtz_builder.py +++ b/property_packages/helmholtz/helmholtz_builder.py @@ -27,5 +27,5 @@ def build_helmholtz_package(compound_list: List[str]): phase_presentation=PhaseType.MIX, state_vars=StateVars.PH, amount_basis=AmountBasis.MOLE) - - \ No newline at end of file + else: + raise ValueError(f"Compound {component} not found in Helmholtz registered components")