@@ -112,8 +112,6 @@ def test_spectral_factor_firstsolar_low_airmass():
112112 m_eq58 = spectrum .spectral_factor_firstsolar (1 , 0.58 , 'monosi' )
113113 m_lt58 = spectrum .spectral_factor_firstsolar (1 , 0.1 , 'monosi' )
114114 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' )
117115
118116
119117def test_spectral_factor_firstsolar_range ():
@@ -122,23 +120,11 @@ def test_spectral_factor_firstsolar_range():
122120 module_type = 'monosi' )
123121 expected = np .array ([0.96080878 , 1.03055092 , np .nan ])
124122 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' )
135126 expected = np .array ([0.96080878 , 1.03055092 , 1.04932727 ])
136127 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' )
142128
143129
144130@pytest .mark .parametrize ('airmass,expected' , [
0 commit comments