@@ -99,12 +99,12 @@ def test_tdew_to_rh_to_tdew():
9999
100100 # Calculate relative humidity using pandas series as input
101101 relative_humidity = atmosphere .rh_from_tdew (
102- temperature = temperature_ambient ,
103- dewpoint = dewpoint_original
102+ temp_air = temperature_ambient ,
103+ temp_dew = dewpoint_original
104104 )
105105
106106 dewpoint_calculated = atmosphere .tdew_from_rh (
107- temperature = temperature_ambient ,
107+ temp_air = temperature_ambient ,
108108 relative_humidity = relative_humidity
109109 )
110110
@@ -137,22 +137,22 @@ def test_rh_from_tdew():
137137
138138 # Calculate relative humidity using pandas series as input
139139 rh_series = atmosphere .rh_from_tdew (
140- temperature = temperature_ambient ,
141- dewpoint = dewpoint
140+ temp_air = temperature_ambient ,
141+ temp_dew = dewpoint
142142 )
143143
144144 # Calulate relative humidity using pandas series as input
145145 # with AEKR coefficients
146146 rh_series_aekr = atmosphere .rh_from_tdew (
147- temperature = temperature_ambient ,
148- dewpoint = dewpoint ,
147+ temp_air = temperature_ambient ,
148+ temp_dew = dewpoint ,
149149 coeff = (6.1094 , 17.625 , 243.04 )
150150 )
151151
152152 # Calculate relative humidity using array as input
153153 rh_array = atmosphere .rh_from_tdew (
154- temperature = temperature_ambient .to_numpy (),
155- dewpoint = dewpoint .to_numpy ()
154+ temp_air = temperature_ambient .to_numpy (),
155+ temp_dew = dewpoint .to_numpy ()
156156 )
157157
158158 # test
@@ -175,8 +175,8 @@ def test_rh_from_tdew():
175175
176176 # Calculate relative humidity using float as input
177177 rh_float = atmosphere .rh_from_tdew (
178- temperature = temperature_ambient .iloc [0 ],
179- dewpoint = dewpoint .iloc [0 ]
178+ temp_air = temperature_ambient .iloc [0 ],
179+ temp_dew = dewpoint .iloc [0 ]
180180 )
181181
182182 assert np .isclose (
@@ -207,26 +207,26 @@ def test_tdew_from_rh():
207207
208208 # test as series
209209 dewpoint_series = atmosphere .tdew_from_rh (
210- temperature = temperature_ambient ,
210+ temp_air = temperature_ambient ,
211211 relative_humidity = relative_humidity_who
212212 )
213213
214214 # test as series with AEKR coefficients
215215 dewpoint_series_aekr = atmosphere .tdew_from_rh (
216- temperature = temperature_ambient ,
216+ temp_air = temperature_ambient ,
217217 relative_humidity = relative_humidity_aekr ,
218218 coeff = (6.1094 , 17.625 , 243.04 )
219219 )
220220
221221 # test as numpy array
222222 dewpoint_array = atmosphere .tdew_from_rh (
223- temperature = temperature_ambient .to_numpy (),
223+ temp_air = temperature_ambient .to_numpy (),
224224 relative_humidity = relative_humidity_who .to_numpy ()
225225 )
226226
227227 # test as float
228228 dewpoint_float = atmosphere .tdew_from_rh (
229- temperature = temperature_ambient .iloc [0 ],
229+ temp_air = temperature_ambient .iloc [0 ],
230230 relative_humidity = relative_humidity_who .iloc [0 ]
231231 )
232232
0 commit comments