@@ -305,30 +305,18 @@ def test_spectral_factor_jrc_supplied_ambiguous():
305305
306306
307307@pytest .mark .parametrize ("module_type,expected" , [
308- ('cdte' ,
309- np .array ([0.991926 , 0.999809 , 1.01108 , 0.993319 , 0.956621 , 0.970872 ])),
310- ('monosi' ,
311- np .array ([1.00174 , 0.971769 , 0.986224 , 1.01661 , 1.02026 , 1.0106 ])),
312- ('cigs' ,
313- np .array ([1.00769 , 0.959666 , 0.974438 , 1.02861 , 1.05203 , 1.03117 ])),
314- ('asi' ,
315- np .array ([0.982133 , 1.04674 , 1.04859 , 0.951109 , 0.865328 , 0.919515 ])),
308+ ('cdte' , np .array ([0.991926 , 0.999809 , 1.01108 , 0.993319 , 0.956621 , 0.970872 ])),
309+ ('monosi' , np .array ([1.00174 , 0.971769 , 0.986224 , 1.01661 , 1.02026 , 1.0106 ])),
310+ ('cigs' , np .array ([1.00769 , 0.959666 , 0.974438 , 1.02861 , 1.05203 , 1.03117 ])),
311+ ('asi' , np .array ([0.982133 , 1.04674 , 1.04859 , 0.951109 , 0.865328 , 0.919515 ])),
316312])
317313def test_spectral_factor_polo (module_type , expected ):
318314 altitude = 500
319- < << << << HEAD
320- == == == =
321-
322- >> >> >> > 1 eb3293197a61fcce506d6db08cd3657321f85c5
323315 pws = np .array ([0.96 , 0.96 , 1.85 , 1.88 , 0.66 , 0.66 ])
324316 aods = np .array ([0.085 , 0.085 , 0.16 , 0.19 , 0.088 , 0.088 ])
325317 ams = np .array ([1.34 , 1.34 , 2.2 , 2.2 , 2.6 , 2.6 ])
326318 aois = np .array ([46.0 , 76.0 , 74.0 , 28.0 , 24.0 , 55.0 ])
327319 alb = np .array ([0.15 , 0.2 , 0.3 , 0.18 , 0.32 , 0.26 ])
328- < << << << HEAD
329- == == == =
330-
331- >> >> >> > 1 eb3293197a61fcce506d6db08cd3657321f85c5
332320 out = spectrum .spectral_factor_polo (
333321 pws , ams , aods , aois , altitude , module_type = module_type , albedo = alb )
334322 assert np .allclose (expected , out , atol = 1e-8 )
0 commit comments