Skip to content

Commit b1be959

Browse files
committed
Tidy awkward layout in test.
1 parent 222acb5 commit b1be959

File tree

1 file changed

+25
-87
lines changed

1 file changed

+25
-87
lines changed

lib/iris/tests/integration/merge/test_merge.py

Lines changed: 25 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -214,93 +214,31 @@ def _make_cube(self, a, b, c, d, data=0):
214214

215215
def test_separable_combination(self, request):
216216
cubes = iris.cube.CubeList()
217-
cubes.append(
218-
self._make_cube("2005", "ECMWF", "HOPE-E, Sys 1, Met 1, ENSEMBLES", 0)
219-
)
220-
cubes.append(
221-
self._make_cube("2005", "ECMWF", "HOPE-E, Sys 1, Met 1, ENSEMBLES", 1)
222-
)
223-
cubes.append(
224-
self._make_cube("2005", "ECMWF", "HOPE-E, Sys 1, Met 1, ENSEMBLES", 2)
225-
)
226-
cubes.append(
227-
self._make_cube(
228-
"2026", "UK Met Office", "HadGEM2, Sys 1, Met 1, ENSEMBLES", 0
229-
)
230-
)
231-
cubes.append(
232-
self._make_cube(
233-
"2026", "UK Met Office", "HadGEM2, Sys 1, Met 1, ENSEMBLES", 1
234-
)
235-
)
236-
cubes.append(
237-
self._make_cube(
238-
"2026", "UK Met Office", "HadGEM2, Sys 1, Met 1, ENSEMBLES", 2
239-
)
240-
)
241-
cubes.append(
242-
self._make_cube("2002", "CERFACS", "GELATO, Sys 0, Met 1, ENSEMBLES", 0)
243-
)
244-
cubes.append(
245-
self._make_cube("2002", "CERFACS", "GELATO, Sys 0, Met 1, ENSEMBLES", 1)
246-
)
247-
cubes.append(
248-
self._make_cube("2002", "CERFACS", "GELATO, Sys 0, Met 1, ENSEMBLES", 2)
249-
)
250-
cubes.append(
251-
self._make_cube("2002", "IFM-GEOMAR", "ECHAM5, Sys 1, Met 10, ENSEMBLES", 0)
252-
)
253-
cubes.append(
254-
self._make_cube("2002", "IFM-GEOMAR", "ECHAM5, Sys 1, Met 10, ENSEMBLES", 1)
255-
)
256-
cubes.append(
257-
self._make_cube("2002", "IFM-GEOMAR", "ECHAM5, Sys 1, Met 10, ENSEMBLES", 2)
258-
)
259-
cubes.append(
260-
self._make_cube(
261-
"2502", "UK Met Office", "HadCM3, Sys 51, Met 10, ENSEMBLES", 0
262-
)
263-
)
264-
cubes.append(
265-
self._make_cube(
266-
"2502", "UK Met Office", "HadCM3, Sys 51, Met 11, ENSEMBLES", 0
267-
)
268-
)
269-
cubes.append(
270-
self._make_cube(
271-
"2502", "UK Met Office", "HadCM3, Sys 51, Met 12, ENSEMBLES", 0
272-
)
273-
)
274-
cubes.append(
275-
self._make_cube(
276-
"2502", "UK Met Office", "HadCM3, Sys 51, Met 13, ENSEMBLES", 0
277-
)
278-
)
279-
cubes.append(
280-
self._make_cube(
281-
"2502", "UK Met Office", "HadCM3, Sys 51, Met 14, ENSEMBLES", 0
282-
)
283-
)
284-
cubes.append(
285-
self._make_cube(
286-
"2502", "UK Met Office", "HadCM3, Sys 51, Met 15, ENSEMBLES", 0
287-
)
288-
)
289-
cubes.append(
290-
self._make_cube(
291-
"2502", "UK Met Office", "HadCM3, Sys 51, Met 16, ENSEMBLES", 0
292-
)
293-
)
294-
cubes.append(
295-
self._make_cube(
296-
"2502", "UK Met Office", "HadCM3, Sys 51, Met 17, ENSEMBLES", 0
297-
)
298-
)
299-
cubes.append(
300-
self._make_cube(
301-
"2502", "UK Met Office", "HadCM3, Sys 51, Met 18, ENSEMBLES", 0
302-
)
303-
)
217+
218+
def add(*args):
219+
cubes.append(self._make_cube(*args))
220+
221+
add("2005", "ECMWF", "HOPE-E, Sys 1, Met 1, ENSEMBLES", 0)
222+
add("2005", "ECMWF", "HOPE-E, Sys 1, Met 1, ENSEMBLES", 1)
223+
add("2005", "ECMWF", "HOPE-E, Sys 1, Met 1, ENSEMBLES", 2)
224+
add("2026", "UK Met Office", "HadGEM2, Sys 1, Met 1, ENSEMBLES", 0)
225+
add("2026", "UK Met Office", "HadGEM2, Sys 1, Met 1, ENSEMBLES", 1)
226+
add("2026", "UK Met Office", "HadGEM2, Sys 1, Met 1, ENSEMBLES", 2)
227+
add("2002", "CERFACS", "GELATO, Sys 0, Met 1, ENSEMBLES", 0)
228+
add("2002", "CERFACS", "GELATO, Sys 0, Met 1, ENSEMBLES", 1)
229+
add("2002", "CERFACS", "GELATO, Sys 0, Met 1, ENSEMBLES", 2)
230+
add("2002", "IFM-GEOMAR", "ECHAM5, Sys 1, Met 10, ENSEMBLES", 0)
231+
add("2002", "IFM-GEOMAR", "ECHAM5, Sys 1, Met 10, ENSEMBLES", 1)
232+
add("2002", "IFM-GEOMAR", "ECHAM5, Sys 1, Met 10, ENSEMBLES", 2)
233+
add("2502", "UK Met Office", "HadCM3, Sys 51, Met 10, ENSEMBLES", 0)
234+
add("2502", "UK Met Office", "HadCM3, Sys 51, Met 11, ENSEMBLES", 0)
235+
add("2502", "UK Met Office", "HadCM3, Sys 51, Met 12, ENSEMBLES", 0)
236+
add("2502", "UK Met Office", "HadCM3, Sys 51, Met 13, ENSEMBLES", 0)
237+
add("2502", "UK Met Office", "HadCM3, Sys 51, Met 14, ENSEMBLES", 0)
238+
add("2502", "UK Met Office", "HadCM3, Sys 51, Met 15, ENSEMBLES", 0)
239+
add("2502", "UK Met Office", "HadCM3, Sys 51, Met 16, ENSEMBLES", 0)
240+
add("2502", "UK Met Office", "HadCM3, Sys 51, Met 17, ENSEMBLES", 0)
241+
add("2502", "UK Met Office", "HadCM3, Sys 51, Met 18, ENSEMBLES", 0)
304242
cube = cubes.merge()
305243
assert_CML(
306244
request, cube, ("merge", "separable_combination.cml"), checksum=False

0 commit comments

Comments
 (0)