Exemple #1
0
def test_methods():
    data, npeaks = pattern.get_test_pattern((256, 256))
    methods = peak_finding.list_methods()
    for method in methods:
        peaks = peak_finding.run(data, method=method)
        assert peaks.shape == (npeaks, 2)
Exemple #2
0
def test_list_options():
    methods = peak_finding.list_methods()
    # if any methods are missing the options object, this will raise an exception.
    for method in methods:
        peak_finding.list_options(method)
Exemple #3
0
def test_list_methods():
    assert len(peak_finding.list_methods()) > 0
def test_list_methods():
    assert len(peak_finding.list_methods())>0
def test_methods():
    data, npeaks = pattern.get_test_pattern((256, 256))
    methods = peak_finding.list_methods()
    for method in methods:
        peaks = peak_finding.peak_find(data, method=method)
        assert peaks.shape==(npeaks,2)
def test_list_options():
    methods = peak_finding.list_methods()
    # if any methods are missing the options object, this will raise an exception.
    for method in methods:
        peak_finding.list_options(method)