Ejemplo n.º 1
0
def test_counter(filename):
    count, time = counter(filename, "dxdy")

    assert count.size == time.size
    assert count.sum() == 115
Ejemplo n.º 2
0
def test_counter():
    count, time = counter(h5fn, "dxdy")

    assert count.size == time.size
    assert count.sum() == 113
Ejemplo n.º 3
0
def test_missing(tmp_path):
    with pytest.raises(FileNotFoundError):
        counter(tmp_path, "foo")

    with pytest.raises(KeyError):
        counter(h5fn, "foo")
Ejemplo n.º 4
0
def test_counter(filename, key, total):
    count, time = counter(filename, key)

    assert count.size == time.size
    assert count.sum() == total