@@ -1087,17 +1087,16 @@ def test_lazy(self):
10871087 _shared_utils .assert_masked_array_equal (expected_result , res_cube .data )
10881088
10891089 def test_lazy_aux_coord (self ):
1090- # A lazy aux-coord paralleling the rolled dimension must not cause a
1091- # failure, and should give the same result as a real one, staying lazy
10921090 # (see #6480).
1091+ window = 2
10931092 self .cube .add_aux_coord (AuxCoord (da .arange (6 ), long_name = "lazy_extra" ), 0 )
1094- res_cube = self .cube .rolling_window ("val" , iris .analysis .MEAN , 3 )
1093+ res_cube = self .cube .rolling_window ("val" , iris .analysis .MEAN , window , mdtol = 0 )
10951094 result_coord = res_cube .coord ("lazy_extra" )
10961095 assert result_coord .has_lazy_points ()
10971096 assert result_coord .has_lazy_bounds ()
10981097 expected = AuxCoord (
1099- np .array ([1.0 , 2.0 , 3.0 , 4.0 ]),
1100- bounds = np .array ([[0 , 2 ], [1 , 3 ], [2 , 4 ], [3 , 5 ]]),
1098+ np .array ([0.5 , 1.5 , 2.5 , 3.5 , 4.5 ]),
1099+ bounds = np .array ([[0 , 1 ], [1 , 2 ], [2 , 3 ], [3 , 4 ], [ 4 , 5 ]]),
11011100 long_name = "lazy_extra" ,
11021101 )
11031102 assert result_coord == expected
0 commit comments