def test_get_edges(testfiles):
    name = testfiles["h5100"]  # doesn't matter for this test
    c = FourierApproximation(name)
    batch = [0, 1, 2]
    c.pruning_matrix = np.array([[1, 0, 1], [0, 1, 0], [1, 0, 1]])

    assert c._FourierApproximation__get_edges(batch, 0) == [0, 2]
    assert c._FourierApproximation__get_edges(batch, 1) == [1]
    assert c._FourierApproximation__get_edges(batch, 2) == [0, 2]
def test_get_edges(testfiles):
    name = testfiles["h5100"]  # doesn't matter for this test
    c = FourierApproximation(name)
    batch = [0, 1, 2]
    c.pruning_matrix = np.array([[1, 0, 1],
                                 [0, 1, 0],
                                 [1, 0, 1]
                                 ])

    assert c._FourierApproximation__get_edges(batch, 0) == [0, 2]
    assert c._FourierApproximation__get_edges(batch, 1) == [1]
    assert c._FourierApproximation__get_edges(batch, 2) == [0, 2]