1616from pvlib import atmosphere
1717from pvlib import irradiance
1818
19- from .conftest import DATA_DIR
19+ from .conftest import requires_tables , DATA_DIR
2020
2121
2222def test_ineichen_series ():
@@ -189,6 +189,7 @@ def test_ineichen_altitude():
189189 assert_frame_equal (expected , out )
190190
191191
192+ @requires_tables
192193def test_lookup_linke_turbidity ():
193194 times = pd .date_range (start = '2014-06-24' , end = '2014-06-25' ,
194195 freq = '12h' , tz = 'America/Phoenix' )
@@ -201,6 +202,7 @@ def test_lookup_linke_turbidity():
201202 assert_series_equal (expected , out )
202203
203204
205+ @requires_tables
204206def test_lookup_linke_turbidity_leapyear ():
205207 times = pd .date_range (start = '2016-06-24' , end = '2016-06-25' ,
206208 freq = '12h' , tz = 'America/Phoenix' )
@@ -213,6 +215,7 @@ def test_lookup_linke_turbidity_leapyear():
213215 assert_series_equal (expected , out )
214216
215217
218+ @requires_tables
216219def test_lookup_linke_turbidity_nointerp ():
217220 times = pd .date_range (start = '2014-06-24' , end = '2014-06-25' ,
218221 freq = '12h' , tz = 'America/Phoenix' )
@@ -223,6 +226,7 @@ def test_lookup_linke_turbidity_nointerp():
223226 assert_series_equal (expected , out )
224227
225228
229+ @requires_tables
226230def test_lookup_linke_turbidity_months ():
227231 times = pd .date_range (start = '2014-04-01' , end = '2014-07-01' ,
228232 freq = '1M' , tz = 'America/Phoenix' )
@@ -233,6 +237,7 @@ def test_lookup_linke_turbidity_months():
233237 assert_series_equal (expected , out )
234238
235239
240+ @requires_tables
236241def test_lookup_linke_turbidity_months_leapyear ():
237242 times = pd .date_range (start = '2016-04-01' , end = '2016-07-01' ,
238243 freq = '1M' , tz = 'America/Phoenix' )
@@ -243,6 +248,7 @@ def test_lookup_linke_turbidity_months_leapyear():
243248 assert_series_equal (expected , out )
244249
245250
251+ @requires_tables
246252def test_lookup_linke_turbidity_nointerp_months ():
247253 times = pd .date_range (start = '2014-04-10' , end = '2014-07-10' ,
248254 freq = '1M' , tz = 'America/Phoenix' )
@@ -474,6 +480,7 @@ def test_simplified_solis_nans_series():
474480 assert_frame_equal (expected , out )
475481
476482
483+ @requires_tables
477484def test_linke_turbidity_corners ():
478485 """Test Linke turbidity corners out of bounds."""
479486 months = pd .DatetimeIndex ('%d/1/2016' % (m + 1 ) for m in range (12 ))
0 commit comments