Esempio n. 1
0
    def test_shape_4_by_5(self):
        cell_nodes = sgrid.node_index_at_cells((4, 5))

        self.assertArrayEqual(cell_nodes, np.array([ 6,  7,  8,
                                                 11, 12, 13]))
Esempio n. 2
0
    def test_2d_shape_3_by_3(self):
        cell_nodes = sgrid.node_index_at_cells((3, 3))

        self.assertArrayEqual(cell_nodes, np.array([4]))
Esempio n. 3
0
def test_shape_4_by_5():
    cell_nodes = sgrid.node_index_at_cells((4, 5))

    assert_array_equal(cell_nodes, np.array([6, 7, 8, 11, 12, 13]))
Esempio n. 4
0
def test_2d_shape_3_by_3():
    cell_nodes = sgrid.node_index_at_cells((3, 3))

    assert_array_equal(cell_nodes, np.array([4]))
def test_shape_4_by_5():
    cell_nodes = sgrid.node_index_at_cells((4, 5))

    assert_array_equal(cell_nodes, np.array([ 6,  7,  8,
                                             11, 12, 13]))
def test_2d_shape_3_by_3():
    cell_nodes = sgrid.node_index_at_cells((3, 3))

    assert_array_equal(cell_nodes, np.array([4]))