-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from ipqa-research/test_psrk_groups
Test psrk groups
- Loading branch information
Showing
10 changed files
with
6,092 additions
and
1,382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.