Fixed bug in HighLevelAPI.rst by a slightly better error message in PropsSI

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2015-01-07 15:15:28 -07:00
parent fcd61a99c8
commit 1693b19a81
2 changed files with 3 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ For a given fluid, the phase can be plotted in T-p coordinates:
# Saturation curve
# ----------------
Ts = np.linspace(273.16, Tc, 1000)
ps = CP.CoolProp.PropsSI('P','T',Ts,'Q',[0]*len(Ts),'Water',[1])
ps = CP.CoolProp.PropsSI('P','T',Ts,'Q',0,'Water')
# ------
# Labels

View File

@@ -278,6 +278,8 @@ cpdef PropsSI(in1, in2, in3 = None, in4 = None, in5 = None, in6 = None, in7 = No
__Props_err2("PropsSI", in1, in2, in3, in4, in5, in6)
else:
return val
else:
throw ValueError('input #7 cannot be provided')
cpdef list FluidsList():
"""