@@ -94,8 +94,8 @@ def test_simple(self):
9494
9595 def test_masked_with_finite_fill_value (self ):
9696 cube = iris .cube .Cube (np .ma .MaskedArray ([1.0 , 2.0 , 3.0 , 1.0 , 2.0 , 3.0 ],
97- mask = [0 , 0 , 0 , 1 , 1 , 1 ]) ,
98- fill_value = 2000 )
97+ mask = [0 , 0 , 0 , 1 , 1 , 1 ],
98+ fill_value = 2000 ) )
9999 grib_message = mock .sentinel .GRIB_MESSAGE
100100 with mock .patch (GRIB_API ) as grib_api :
101101 data_section (cube , grib_message )
@@ -107,8 +107,8 @@ def test_masked_with_finite_fill_value(self):
107107
108108 def test_masked_with_nan_fill_value (self ):
109109 cube = iris .cube .Cube (np .ma .MaskedArray ([1.0 , 2.0 , 3.0 , 1.0 , 2.0 , 3.0 ],
110- mask = [0 , 0 , 0 , 1 , 1 , 1 ]) ,
111- fill_value = np .nan )
110+ mask = [0 , 0 , 0 , 1 , 1 , 1 ],
111+ fill_value = np .nan ) )
112112 grib_message = mock .sentinel .GRIB_MESSAGE
113113 with mock .patch (GRIB_API ) as grib_api :
114114 data_section (cube , grib_message )
@@ -135,8 +135,8 @@ def test_scaled_with_finite_fill_value(self):
135135 # When re-scaling masked data with a finite fill value, ensure
136136 # the fill value and any filled values are also re-scaled.
137137 cube = iris .cube .Cube (np .ma .MaskedArray ([1.0 , 2.0 , 3.0 , 1.0 , 2.0 , 3.0 ],
138- mask = [0 , 0 , 0 , 1 , 1 , 1 ]) ,
139- fill_value = 2000 ,
138+ mask = [0 , 0 , 0 , 1 , 1 , 1 ],
139+ fill_value = 2000 ) ,
140140 standard_name = 'geopotential_height' , units = 'km' )
141141 grib_message = mock .sentinel .GRIB_MESSAGE
142142 with mock .patch (GRIB_API ) as grib_api :
@@ -152,8 +152,8 @@ def test_scaled_with_nan_fill_value(self):
152152 # a fill value is chosen which allows for the scaling, and any
153153 # filled values match the chosen fill value.
154154 cube = iris .cube .Cube (np .ma .MaskedArray ([- 1.0 , 2.0 , - 1.0 , 2.0 ],
155- mask = [0 , 0 , 1 , 1 ]) ,
156- fill_value = np .nan ,
155+ mask = [0 , 0 , 1 , 1 ],
156+ fill_value = np .nan ) ,
157157 standard_name = 'geopotential_height' , units = 'km' )
158158 grib_message = mock .sentinel .GRIB_MESSAGE
159159 with mock .patch (GRIB_API ) as grib_api :
0 commit comments