@@ -112,8 +112,6 @@ def test_spectral_factor_firstsolar_low_airmass():
112
112
m_eq58 = spectrum .spectral_factor_firstsolar (1 , 0.58 , 'monosi' )
113
113
m_lt58 = spectrum .spectral_factor_firstsolar (1 , 0.1 , 'monosi' )
114
114
assert_allclose (m_eq58 , m_lt58 )
115
- with pytest .warns (UserWarning , match = 'Low airmass values replaced' ):
116
- _ = spectrum .spectral_factor_firstsolar (1 , 0.1 , 'monosi' )
117
115
118
116
119
117
def test_spectral_factor_firstsolar_range ():
@@ -122,23 +120,11 @@ def test_spectral_factor_firstsolar_range():
122
120
module_type = 'monosi' )
123
121
expected = np .array ([0.96080878 , 1.03055092 , np .nan ])
124
122
assert_allclose (out , expected , atol = 1e-3 )
125
- with pytest .warns (UserWarning , match = 'High precipitable water values '
126
- 'replaced' ):
127
- out = spectrum .spectral_factor_firstsolar (6 , 1.5 ,
128
- max_precipitable_water = 5 ,
129
- module_type = 'monosi' )
130
- with pytest .warns (UserWarning , match = 'Low precipitable water values '
131
- 'replaced' ):
132
- out = spectrum .spectral_factor_firstsolar (np .array ([0 , 3 , 8 ]),
133
- np .array ([1 , 3 , 5 ]),
134
- module_type = 'monosi' )
123
+ out = spectrum .spectral_factor_firstsolar (np .array ([0 , 3 , 8 ]),
124
+ np .array ([1 , 3 , 5 ]),
125
+ module_type = 'monosi' )
135
126
expected = np .array ([0.96080878 , 1.03055092 , 1.04932727 ])
136
127
assert_allclose (out , expected , atol = 1e-3 )
137
- with pytest .warns (UserWarning , match = 'Low precipitable water values '
138
- 'replaced' ):
139
- out = spectrum .spectral_factor_firstsolar (0.2 , 1.5 ,
140
- min_precipitable_water = 1 ,
141
- module_type = 'monosi' )
142
128
143
129
144
130
@pytest .mark .parametrize ('airmass,expected' , [
0 commit comments