Skip to content

Commit

Permalink
Merge pull request #17 from waikato-ahuora-smart-energy-systems/fix-h…
Browse files Browse the repository at this point in the history
…elmholtz-registered-components

raise error if component not registered
  • Loading branch information
Mahaki-Leach authored Jan 6, 2025
2 parents ce4290f + 46514e4 commit 2274477
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions property_packages/helmholtz/helmholtz_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ def build_helmholtz_package(compound_list: List[str]):
phase_presentation=PhaseType.MIX,
state_vars=StateVars.PH,
amount_basis=AmountBasis.MOLE)


else:
raise ValueError(f"Compound {component} not found in Helmholtz registered components")

0 comments on commit 2274477

Please sign in to comment.