10
10
from nose .tools import raises ,assert_almost_equals
11
11
from nose .plugins .skip import SkipTest
12
12
from numpy .testing import assert_almost_equal
13
+ from requests .exceptions import HTTPError
13
14
from xml .etree .ElementTree import ParseError
14
15
15
16
from pvlib .forecast import GFS ,HRRR_ESRL ,HRRR ,NAM ,NDFD ,RAP
21
22
_longitude = - 110.9
22
23
_tz = 'US/Arizona'
23
24
_time = pd .DatetimeIndex ([datetime .now ()], tz = _tz )
24
- _models = [GFS , HRRR_ESRL , NAM , HRRR , NDFD , RAP ]
25
+ _models = [GFS , NAM , HRRR , RAP , NDFD , HRRR_ESRL ]
25
26
_working_models = []
26
27
_variables = np .array (['temperature' ,
27
28
'wind_speed' ,
@@ -48,7 +49,7 @@ def test_fmcreation():
48
49
else :
49
50
try :
50
51
amodel = model ()
51
- except ParseError :
52
+ except ( ParseError , HTTPError ) :
52
53
pass
53
54
54
55
@@ -103,7 +104,7 @@ def test_gfs():
103
104
104
105
def test_temp_convert ():
105
106
amodel = _working_models [0 ]
106
- amodel .queryvariables = ['Temperature ' ]
107
+ amodel .queryvariables = ['Temperature_surface ' ]
107
108
amodel .data = pd .DataFrame ({'temperature' :[273.15 ]})
108
109
amodel .convert_temperature ()
109
110
0 commit comments