Commits
305 305 | def test_1_18(self): |
306 306 | """1-18. pop() when height is 1""" |
307 307 | stack = CasaImageStack() |
308 308 | stack.push(UnerasableFolder(DUMMY_FOLDERS[0])) |
309 309 | stack.pop() |
310 310 | |
311 311 | |
312 312 | class TestImageShape(test_base): |
313 313 | """Test ImageShape. |
314 314 | |
315 - | 2-1. successful case |
315 + | 2-1. successful case: axis_sp = axis_pol = 2or3, axis_sp != axis_pol |
316 316 | 2-2. invalid im_nchan |
317 317 | 2-3. invalid dir_shape |
318 318 | """ |
319 319 | |
320 320 | def setUp(self): |
321 321 | pass |
322 322 | |
323 323 | def tearDown(self): |
324 324 | pass |
325 325 | |
326 326 | def test_2_1(self): |
327 - | """2-1. successful case""" |
327 + | """2-1. successful case: axis_sp = axis_pol = 2or3, axis_sp != axis_pol""" |
328 328 | shape = ImageShape(im_shape=np.array([100, 100, 1, 100]), axis_dir=np.array([0, 1]), axis_sp=3, axis_pol=2) |
329 329 | shape.validate() |
330 330 | shape = ImageShape(im_shape=np.array([100, 100, 100, 1]), axis_dir=np.array([0, 1]), axis_sp=2, axis_pol=3) |
331 331 | shape.validate() |
332 332 | # any exceptions are not thrown, its OK |
333 333 | |
334 334 | exception_case(ValueError, 'nchan \\d is too few to perform baseline subtraction') | .
335 335 | def test_2_2(self): |
336 336 | """2-2. invalid im_nchan""" |
337 337 | shape = ImageShape(im_shape=np.array([100, 100, 1, 1]), axis_dir=np.array([0, 1]), axis_sp=3, axis_pol=2) |