File tree 1 file changed +6
-5
lines changed
lib/iris/tests/unit/fileformats/pp_load_rules
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 13
13
# importing anything else.
14
14
import iris .tests as tests # isort:skip
15
15
16
- import unittest
17
-
18
16
from cf_units import CALENDAR_360_DAY , CALENDAR_GREGORIAN , Unit
19
17
from cftime import datetime as nc_datetime
20
18
import numpy as np
@@ -733,7 +731,6 @@ def test_t1_list_t2_scalar(self):
733
731
734
732
735
733
class TestArrayInputWithLBTIM_0_3_1 (TestField ):
736
- @unittest .skip ("#3508 investigate unit test failure" )
737
734
def test_t1_scalar_t2_list (self ):
738
735
lbtim = _lbtim (ib = 3 , ic = 1 )
739
736
lbcode = _lbcode (1 )
@@ -756,17 +753,21 @@ def test_t1_scalar_t2_list(self):
756
753
)
757
754
758
755
# Expected coords.
756
+ leap_year_adjust = np .array ([0 , 24 , 24 ])
759
757
points = np .ones_like (years ) * lbft
760
758
bounds = np .array (
761
- [lbft - ((years - 1970 ) * 365 * 24 + 2 * 24 ), points ]
759
+ [
760
+ lbft - ((years - 1970 ) * 365 * 24 + 2 * 24 + leap_year_adjust ),
761
+ points ,
762
+ ]
762
763
).transpose ()
763
764
fp_coord = AuxCoord (
764
765
points ,
765
766
standard_name = "forecast_period" ,
766
767
units = "hours" ,
767
768
bounds = bounds ,
768
769
)
769
- points = (years - 1970 ) * 365 * 24 + 10 * 24 + 9
770
+ points = (years - 1970 ) * 365 * 24 + 10 * 24 + 9 + leap_year_adjust
770
771
bounds = np .array (
771
772
[np .ones_like (points ) * (8 * 24 + 9 ), points ]
772
773
).transpose ()
You can’t perform that action at this time.
0 commit comments