コード例 #1
0
ファイル: test.py プロジェクト: opnumten/unidip
 def test_1_peak(self):
     """ test 1 peak"""
     pn = 1
     ints = unidip.test_unidip(f"{EXAMPLES}peak1.csv", plot=False)
     assert len(
         ints
     ) == pn, f"Found wrong number of peaks! Should be {pn}, is {len(ints)}."
コード例 #2
0
ファイル: test.py プロジェクト: opnumten/unidip
 def test_0_peaks(self):
     """ testing 0 peaks, not enough data """
     pn = 0
     ints = unidip.test_unidip(f"{EXAMPLES}testsmall.csv")
     assert len(
         ints
     ) == pn, f"Found wrong number of peaks! Should be {pn}, is {len(ints)}."
コード例 #3
0
ファイル: test.py プロジェクト: opnumten/unidip
 def test_large3_peaks(self):
     """ test large three peaks """
     pn = 3
     ints = unidip.test_unidip(f"{EXAMPLES}large3.csv", plot=False)
     assert len(
         ints
     ) == pn, f"Found wrong number of peaks! Should be {pn}, is {len(ints)}."
コード例 #4
0
ファイル: test.py プロジェクト: opnumten/unidip
 def test_histsmall_peak(self):
     """ Tests on 10 density points from histogram """
     pn = 1
     ints = unidip.test_unidip(f"{EXAMPLES}histnotsig.csv",
                               plot=False,
                               is_hist=True)
     assert len(
         ints
     ) == pn, f"Found wrong number of peaks! Should be {pn}, is {len(ints)}."
コード例 #5
0
ファイル: test.py プロジェクト: opnumten/unidip
 def test_hist3_peaks(self):
     """ test 3 histogram peaks """
     pn = 3
     ints = unidip.test_unidip(f"{EXAMPLES}hist3p.csv",
                               plot=False,
                               is_hist=True)
     assert len(
         ints
     ) == pn, f"Found wrong number of peaks! Should be {pn}, is {len(ints)}."
コード例 #6
0
ファイル: test.py プロジェクト: opnumten/unidip
 def test_10_peaks(self):
     """ test 10 peaks """
     pn = 10
     ints = unidip.test_unidip(f"{EXAMPLES}test10p.csv",
                               plot=False,
                               debug=False)
     assert len(
         ints
     ) == pn, f"Found wrong number of peaks! Should be {pn}, is {len(ints)}."
コード例 #7
0
ファイル: test.py プロジェクト: opnumten/unidip
 def test_5wide_peaks(self):
     """ test 5 wide peaks """
     pn = 5
     ints = unidip.test_unidip(f"{EXAMPLES}test0.5sig.csv",
                               plot=False,
                               debug=False,
                               alpha=.05)
     assert len(
         ints
     ) == pn, f"Found wrong number of peaks! Should be {pn}, is {len(ints)}."
コード例 #8
0
ファイル: test.py プロジェクト: opnumten/unidip
 def test_1or10_peaks(self):
     """ test hidden 10 peaks """
     pn = 10
     ints = unidip.test_unidip(f"{EXAMPLES}test1or10p.csv",
                               plot=False,
                               alpha=0.32,
                               mrg_dst=5)
     assert len(
         ints
     ) == pn, f"Found wrong number of peaks! Should be {pn}, is {len(ints)}."
コード例 #9
0
ファイル: test.py プロジェクト: afcarl/unidip
 def test_negEntIdxErr_peaks(self):
     """ tests finding 5 hist peaks """
     unidip.test_unidip(f"{EXAMPLES}negEntIdxErr.csv",
                        is_hist=True,
                        plot=False)
コード例 #10
0
ファイル: test.py プロジェクト: afcarl/unidip
 def test_large3_peaks(self):
     """ test large three peaks """
     unidip.test_unidip(f"{EXAMPLES}large3.csv", plot=False)
コード例 #11
0
ファイル: test.py プロジェクト: afcarl/unidip
 def test_3_peaks(self):
     """ test 3 peaks """
     unidip.test_unidip(f"{EXAMPLES}peak3.csv", plot=False)
コード例 #12
0
ファイル: test.py プロジェクト: afcarl/unidip
 def test_2_peaks(self):
     """ test 2 peaks """
     unidip.test_unidip(f"{EXAMPLES}peak2.csv", plot=False, debug=False)
コード例 #13
0
ファイル: test.py プロジェクト: afcarl/unidip
 def test_0_peaks(self):
     """ testing 0 peaks, not enough data """
     unidip.test_unidip(f"{EXAMPLES}testsmall.csv")
コード例 #14
0
ファイル: test.py プロジェクト: afcarl/unidip
 def test_10_peaks(self):
     """ test 10 peaks """
     unidip.test_unidip(f"{EXAMPLES}test10p.csv", plot=False, debug=False)
コード例 #15
0
ファイル: test.py プロジェクト: afcarl/unidip
 def test_hist3_peaks(self):
     """ test 3 histogram peaks """
     unidip.test_unidip(f"{EXAMPLES}hist3p.csv", plot=False, is_hist=True)
コード例 #16
0
ファイル: test.py プロジェクト: afcarl/unidip
 def test_histsmall_peak(self):
     """ Tests on 10 density points from histogram """
     unidip.test_unidip(f"{EXAMPLES}histnotsig.csv",
                        plot=False,
                        is_hist=True)
コード例 #17
0
ファイル: test.py プロジェクト: afcarl/unidip
 def test_5wide_peaks(self):
     """ test 5 wide peaks """
     unidip.test_unidip(f"{EXAMPLES}test0.5sig.csv",
                        plot=False,
                        debug=False,
                        alpha=.05)
コード例 #18
0
ファイル: test.py プロジェクト: afcarl/unidip
 def test_1or10_peaks(self):
     """ test hidden 10 peaks """
     unidip.test_unidip(f"{EXAMPLES}test1or10p.csv",
                        plot=False,
                        alpha=0.3,
                        merge_distance=5)
コード例 #19
0
ファイル: test.py プロジェクト: afcarl/unidip
 def test_negEntMaxRecErr(self):
     """ Test for max recursion error on 4 peaks"""
     unidip.test_unidip(f"{EXAMPLES}negEntMaxRecErr.csv",
                        is_hist=True,
                        plot=False)
コード例 #20
0
ファイル: test.py プロジェクト: afcarl/unidip
 def test_1_peak(self):
     """ test 1 peak"""
     unidip.test_unidip(f"{EXAMPLES}peak1.csv", plot=False)