Skip to content

Commit

Permalink
Merge pull request #124 from ipqa-research/test_psrk_groups
Browse files Browse the repository at this point in the history
Test psrk groups
  • Loading branch information
fedebenelli authored Oct 22, 2024
2 parents 808cda0 + a15b859 commit ec2abca
Show file tree
Hide file tree
Showing 10 changed files with 6,092 additions and 1,382 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
sudo apt install -y gfortran-${GCC_V} python3-dev graphviz pandoc
sudo pip install ford markdown
pip install -r python/docs/requirements.txt
pip install -r python/requirements-build.txt
pip install python/
- name: Build Developer Documentation
run: |
Expand Down
3 changes: 3 additions & 0 deletions python/docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
# =============================================================================
# EXTRA CONF
# =============================================================================
# nbsphinx
nbsphinx_execute = "always"

autodoc_member_order = "bysource"

bibtex_bibfiles = ["refs.bib"]
Expand Down
17 changes: 17 additions & 0 deletions python/tests/models/gibbs_excess/test_unifac.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import numpy as np

from yaeos import UNIFACVLE


def test_against_caleb_thermo():
t = 150
n = [20.0, 70.0, 10.0]

groups = [{1: 2}, {1: 1, 2: 1, 14: 1}, {28: 1}]

model = UNIFACVLE(groups)

ln_gammas_expected = [0.84433781, -0.19063836, -2.93925506]
ln_gammas = model.ln_gamma(n, t)

assert np.allclose(ln_gammas, ln_gammas_expected, atol=1e-8)
Loading

0 comments on commit ec2abca

Please sign in to comment.