@@ -36,13 +36,13 @@ def test_accessor():
36
36
continent_acc != continent_fct
37
37
), "accessor output differs from function output"
38
38
## - ace
39
- ace_acc = data .hrcn .get_ace (wind_name = "wind " )
40
- ace_fct = huracanpy .utils .ace .get_ace (data .wind )
39
+ ace_acc = data .hrcn .get_ace (wind_name = "wind10 " )
40
+ ace_fct = huracanpy .utils .ace .get_ace (data .wind10 )
41
41
assert not any (ace_acc != ace_fct ), "accessor output differs from function output"
42
42
43
43
## - pace
44
- pace_acc , model_acc = data .hrcn .get_pace (pressure_name = "pressure " , wind_name = "wind " )
45
- pace_fct , model_fct = huracanpy .utils .ace .get_pace (data .pressure , data .wind )
44
+ pace_acc = data .hrcn .get_pace (pressure_name = "slp " , wind_name = "wind10 " )
45
+ pace_fct , model_fct = huracanpy .utils .ace .get_pace (data .slp , data .wind10 )
46
46
assert not any (pace_acc != pace_fct ), "accessor output differs from function output"
47
47
48
48
## - time components
@@ -65,13 +65,13 @@ def test_accessor():
65
65
assert all (season_acc == season_fct ), "Season component does not match"
66
66
67
67
## - SSHS category
68
- sshs_acc = data .hrcn .get_sshs_cat (wind_name = "wind " )
69
- sshs_fct = huracanpy .utils .categories .get_sshs_cat (data .wind )
68
+ sshs_acc = data .hrcn .get_sshs_cat (wind_name = "wind10 " )
69
+ sshs_fct = huracanpy .utils .category .get_sshs_cat (data .wind10 )
70
70
assert all (sshs_acc == sshs_fct ), "SSHS category output does not match"
71
71
72
72
## - Pressure category
73
73
pressure_cat_acc = data .hrcn .get_pressure_cat (slp_name = "slp" )
74
- pressure_cat_fct = huracanpy .utils .categories .get_pressure_cat (data .slp )
74
+ pressure_cat_fct = huracanpy .utils .category .get_pressure_cat (data .slp )
75
75
assert all (
76
76
pressure_cat_acc == pressure_cat_fct
77
77
), "Pressure category output does not match"
0 commit comments