Skip to content
This repository was archived by the owner on Feb 20, 2021. It is now read-only.

Commit 8fe109a

Browse files
committed
Fixes trailing whitespace issues.
1 parent a97a9e1 commit 8fe109a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

XSteamPython/XSteamPython.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ def switchUnits():
3232
'''Function to switch between unit systems'''
3333
global englishUnits
3434
englishUnits = not englishUnits
35-
print("Using English units") if englishUnits else print("Using SI Units")
35+
_ = print("Using English units") if englishUnits else print("Using SI Units")
3636

3737
def Tsat_p(pressure):
3838
'''
3939
Saturation temperature given pressure
40-
40+
4141
Args:
4242
pressure (float): pressure in kPa or psi
4343
@@ -54,7 +54,7 @@ def Tsat_p(pressure):
5454
def Tsat_s(entropy):
5555
'''
5656
Saturation temperature given entropy
57-
57+
5858
Args:
5959
entropy (float): entropy in kJ/(kg*K) or btu/(lb*°F)
6060
@@ -72,7 +72,7 @@ def Tsat_s(entropy):
7272
def T_ph(pressure, enthalpy):
7373
'''
7474
Temperature given pressure and enthalpy
75-
75+
7676
Args:
7777
pressure (float): pressure in kPa or psi
7878
enthalpy (float): enthalpy in kJ/kg or Btu/lb
@@ -104,13 +104,13 @@ def T_ph(pressure, enthalpy):
104104
def T_ps(pressure, entropy):
105105
'''
106106
Temperature given pressure and entropy
107-
107+
108108
Args:
109109
pressure (float): pressure in kPa or psi
110110
entropy (float): entropy in kJ/(kg*K) or btu/(lb*°F)
111111
112112
Returns:
113-
float: Temperature in °C or °F
113+
float: Temperature in °C or °F
114114
'''
115115
pressure = Convert.toSIUnit(float(pressure), 'pressure', englishUnits=englishUnits)
116116
entropy = float(entropy)
@@ -142,7 +142,7 @@ def T_hs(enthalpy, entropy):
142142
entropy (float): entropy in kJ/(kg*K) or btu/(lb*°F)
143143
144144
Returns:
145-
float: Temperature in °C or °F
145+
float: Temperature in °C or °F
146146
'''
147147
enthalpy, entropy = float(enthalpy), float(entropy)
148148
if englishUnits:
@@ -212,7 +212,7 @@ def P_hs(enthalpy, entropy):
212212
entropy (float): entropy in kJ/(kg*K) or btu/(lb*°F)
213213
214214
Returns:
215-
float: pressure in kPa or psi
215+
float: pressure in kPa or psi
216216
'''
217217
enthalpy, entropy = float(enthalpy), float(entropy)
218218
if englishUnits:

0 commit comments

Comments
 (0)