From 182c54133e39a769d71cd4a7b4169fe53a98eb82 Mon Sep 17 00:00:00 2001 From: yereeem Date: Tue, 7 Jan 2025 10:17:34 +1300 Subject: [PATCH 1/2] 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") From 46514e448b1dd3d6fcc9d72ae5724863073a6b7f Mon Sep 17 00:00:00 2001 From: Mahaki-Leach Date: Tue, 7 Jan 2025 11:10:21 +1300 Subject: [PATCH 2/2] updated workflow --- .github/workflows/python.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 3cb0814..b8e6eef 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -28,7 +28,9 @@ jobs: python -m pip install --upgrade pip pip install flake8 pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - idaes get-extensions + sudo apt-get update + sudo apt-get install liblapack3 liblapack-dev libgfortran5 libgomp1 # shared libraries for ipopt + idaes get-extensions --distro ubuntu2204 - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names