Skip to content

Commit b4802a3

Browse files
committed
miscellaneous other cleanup
1 parent df33a31 commit b4802a3

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

pvlib/atmosphere.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def tdew_from_rh(
393393
Returns
394394
-------
395395
numeric
396-
Dewpoint temperature.. [°C]
396+
Dewpoint temperature. [°C]
397397
398398
References
399399
----------

pvlib/tests/test_atmosphere.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_gueymard94_pw():
9090

9191
def test_tdew_to_rh_to_tdew():
9292

93-
# dewpoint temp calculated with who and aekr coefficients
93+
# dewpoint temp calculated with wmo and aekr coefficients
9494
dewpoint_original = pd.Series([
9595
15.0, 20.0, 25.0, 12.0, 8.0
9696
])
@@ -118,13 +118,13 @@ def test_tdew_to_rh_to_tdew():
118118

119119
def test_rh_from_tdew():
120120

121-
# dewpoint temp calculated with who and aekr coefficients
121+
# dewpoint temp calculated with wmo and aekr coefficients
122122
dewpoint = pd.Series([
123123
15.0, 20.0, 25.0, 12.0, 8.0
124124
])
125125

126-
# relative humidity calculated with who and aekr coefficients
127-
relative_humidity_who = pd.Series([
126+
# relative humidity calculated with wmo and aekr coefficients
127+
relative_humidity_wmo = pd.Series([
128128
72.95185312581116, 73.81500029087906, 74.6401272083123,
129129
82.27063889868842, 87.39018119185337
130130
])
@@ -158,7 +158,7 @@ def test_rh_from_tdew():
158158
# test
159159
pd.testing.assert_series_equal(
160160
rh_series,
161-
relative_humidity_who,
161+
relative_humidity_wmo,
162162
check_names=False
163163
)
164164

@@ -170,7 +170,7 @@ def test_rh_from_tdew():
170170

171171
np.testing.assert_allclose(
172172
rh_array,
173-
relative_humidity_who.to_numpy(),
173+
relative_humidity_wmo.to_numpy(),
174174
)
175175

176176
# Calculate relative humidity using float as input
@@ -181,20 +181,20 @@ def test_rh_from_tdew():
181181

182182
assert np.isclose(
183183
rh_float,
184-
relative_humidity_who.iloc[0]
184+
relative_humidity_wmo.iloc[0]
185185
)
186186

187187

188188
# Unit tests
189189
def test_tdew_from_rh():
190190

191-
# dewpoint temp calculated with who and aekr coefficients
191+
# dewpoint temp calculated with wmo and aekr coefficients
192192
dewpoint = pd.Series([
193193
15.0, 20.0, 25.0, 12.0, 8.0
194194
])
195195

196-
# relative humidity calculated with who and aekr coefficients
197-
relative_humidity_who = pd.Series([
196+
# relative humidity calculated with wmo and aekr coefficients
197+
relative_humidity_wmo = pd.Series([
198198
72.95185312581116, 73.81500029087906, 74.6401272083123,
199199
82.27063889868842, 87.39018119185337
200200
])
@@ -208,7 +208,7 @@ def test_tdew_from_rh():
208208
# test as series
209209
dewpoint_series = atmosphere.tdew_from_rh(
210210
temp_air=temperature_ambient,
211-
relative_humidity=relative_humidity_who
211+
relative_humidity=relative_humidity_wmo
212212
)
213213

214214
# test as series with AEKR coefficients
@@ -221,13 +221,13 @@ def test_tdew_from_rh():
221221
# test as numpy array
222222
dewpoint_array = atmosphere.tdew_from_rh(
223223
temp_air=temperature_ambient.to_numpy(),
224-
relative_humidity=relative_humidity_who.to_numpy()
224+
relative_humidity=relative_humidity_wmo.to_numpy()
225225
)
226226

227227
# test as float
228228
dewpoint_float = atmosphere.tdew_from_rh(
229229
temp_air=temperature_ambient.iloc[0],
230-
relative_humidity=relative_humidity_who.iloc[0]
230+
relative_humidity=relative_humidity_wmo.iloc[0]
231231
)
232232

233233
# test

0 commit comments

Comments
 (0)