Ejemplo n.º 1
0
def test_bad_arraystack():
    t_array_list, expected_shape = make_testing_data.makeRandomArrays()

    t_array_list.append(numpy.zeros((1, 1, 1)))

    with pytest.raises(ValueError):
        riomucho.utils.array_stack(t_array_list)
Ejemplo n.º 2
0
def test_bad_arraystack():
    t_array_list, expected_shape = make_testing_data.makeRandomArrays()

    t_array_list.append(numpy.zeros((1, 1, 1)))

    with pytest.raises(ValueError):
        riomucho.utils.array_stack(t_array_list)
Ejemplo n.º 3
0
def test_arraystack():
    t_array_list, expected_shape = make_testing_data.makeRandomArrays()

    stacked = riomucho.utils.array_stack(t_array_list)
    assert stacked.shape == expected_shape
Ejemplo n.º 4
0
def test_arraystack():
    t_array_list, expected_shape = make_testing_data.makeRandomArrays()

    stacked = riomucho.utils.array_stack(t_array_list)
    assert stacked.shape == expected_shape