(self)
| 1698 | class TestShapeBase: |
| 1699 | |
| 1700 | def test_atleast_2d(self): |
| 1701 | # Test atleast_2d |
| 1702 | a = masked_array([0, 1, 2], mask=[0, 1, 0]) |
| 1703 | b = atleast_2d(a) |
| 1704 | assert_equal(b.shape, (1, 3)) |
| 1705 | assert_equal(b.mask.shape, b.data.shape) |
| 1706 | assert_equal(a.shape, (3,)) |
| 1707 | assert_equal(a.mask.shape, a.data.shape) |
| 1708 | assert_equal(b.mask.shape, b.data.shape) |
| 1709 | |
| 1710 | def test_shape_scalar(self): |
| 1711 | # the atleast and diagflat function should work with scalars |
nothing calls this directly
no test coverage detected