mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-01 03:00:13 -04:00
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:
@@ -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
|
||||
|
||||
@@ -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():
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user