Closed sarangbhagwat closed 3 years ago
Fixed! Thanks for posting the bug, SLE is a new object and there were quite a couple of unchecked bugs. After running your code, you can get the following:
>>> print(sle)
SLE(imol=MolarFlowIndexer(phases=('l', 's'),
l=[('H2O', 30), ('Triacetic acid lactone', 304)]),
thermal_condition=ThermalCondition(T=300.00, P=101325))
Note that although the temperature is below the melting point, your heat of fusion (Hm) of TAL, your solid, is 0.0 according to your script, which leads to this false prediction.
For SLE, using a chemical that uses the copy_models_from function -- in this case, setting the Psat and Hvap of triacetic acid lactone to those of water -- gives an index error as described below (after the two relevant blocks of code):