Closed fedebenelli closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 93.41%. Comparing base (
481389a
) to head (e0469ab
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
flash_pt
gets stuck when variables are part of a for
loop for some reason.
import yaeos
import numpy as np
P, T = 60.0, 294.0
n = [0.4, 0.6]
tc = [190.564, 425.12]
pc = [45.99, 37.96]
w = [0.0115478, 0.200164]
model = yaeos.PengRobinson76(tc, pc, w)
# This works
model.flash_pt(n, P, T)
ts = np.linspace(300, 400, 5)
ps = np.linspace(60, 100, 5)
# This does not
for i in range(len(ts)):
for j in range(len(ps)):
model.flash_pt(n, pressure=ps[j], temperature=ts[i])
restarting PR since another merge closed the original: https://github.com/ipqa-research/yaeos/pull/86
We are in the process of adding a Python API that wraps our library, that it is instalable with
pip
.Things I consider needed to merge into
dev
flake8
andblack
class