@@ -92,7 +92,7 @@ def test_hsu_no_cleaning(rainfall_input, expected_output):
92
92
tilt = 0.
93
93
expected_no_cleaning = expected_output
94
94
95
- result = hsu (rainfall = rainfall , cleaning_threshold = 10. , tilt = tilt ,
95
+ result = hsu (rainfall = rainfall , cleaning_threshold = 10. , surface_tilt = tilt ,
96
96
pm2_5 = pm2_5 , pm10 = pm10 , depo_veloc = depo_veloc ,
97
97
rain_accum_period = pd .Timedelta ('1h' ))
98
98
assert_series_equal (result , expected_no_cleaning )
@@ -108,7 +108,7 @@ def test_hsu(rainfall_input, expected_output_2):
108
108
tilt = 0.
109
109
110
110
# three cleaning events at 4:00-6:00, 8:00-11:00, and 17:00-20:00
111
- result = hsu (rainfall = rainfall , cleaning_threshold = 0.5 , tilt = tilt ,
111
+ result = hsu (rainfall = rainfall , cleaning_threshold = 0.5 , surface_tilt = tilt ,
112
112
pm2_5 = pm2_5 , pm10 = pm10 , depo_veloc = depo_veloc ,
113
113
rain_accum_period = pd .Timedelta ('3h' ))
114
114
@@ -120,8 +120,8 @@ def test_hsu_defaults(rainfall_input, expected_output_1):
120
120
Test Soiling HSU function with default deposition velocity and default rain
121
121
accumulation period.
122
122
"""
123
- result = hsu (rainfall = rainfall_input , cleaning_threshold = 0.5 , tilt = 0.0 ,
124
- pm2_5 = 1.0e-2 , pm10 = 2.0e-2 )
123
+ result = hsu (rainfall = rainfall_input , cleaning_threshold = 0.5 ,
124
+ surface_tilt = 0.0 , pm2_5 = 1.0e-2 , pm10 = 2.0e-2 )
125
125
assert np .allclose (result .values , expected_output_1 )
126
126
127
127
@@ -138,7 +138,7 @@ def test_hsu_variable_time_intervals(rainfall_input, expected_output_3):
138
138
rain ['new_time' ] = rain .index + rain ['mins_added' ]
139
139
rain_var_times = rain .set_index ('new_time' ).iloc [:, 0 ]
140
140
result = hsu (
141
- rainfall = rain_var_times , cleaning_threshold = 0.5 , tilt = 50.0 ,
141
+ rainfall = rain_var_times , cleaning_threshold = 0.5 , surface_tilt = 50.0 ,
142
142
pm2_5 = 1 , pm10 = 2 , depo_veloc = depo_veloc ,
143
143
rain_accum_period = pd .Timedelta ('2h' ))
144
144
assert np .allclose (result , expected_output_3 )
0 commit comments