Ejemplo n.º 1
0
 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)}."
Ejemplo n.º 2
0
 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)}."
Ejemplo n.º 3
0
 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)}."
Ejemplo n.º 4
0
 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)}."
Ejemplo n.º 5
0
 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)}."
Ejemplo n.º 6
0
 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)}."
Ejemplo n.º 7
0
 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)}."
Ejemplo n.º 8
0
 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)}."
Ejemplo n.º 9
0
 def test_negEntIdxErr_peaks(self):
     """ tests finding 5 hist peaks """
     unidip.test_unidip(f"{EXAMPLES}negEntIdxErr.csv",
                        is_hist=True,
                        plot=False)
Ejemplo n.º 10
0
 def test_large3_peaks(self):
     """ test large three peaks """
     unidip.test_unidip(f"{EXAMPLES}large3.csv", plot=False)
Ejemplo n.º 11
0
 def test_3_peaks(self):
     """ test 3 peaks """
     unidip.test_unidip(f"{EXAMPLES}peak3.csv", plot=False)
Ejemplo n.º 12
0
 def test_2_peaks(self):
     """ test 2 peaks """
     unidip.test_unidip(f"{EXAMPLES}peak2.csv", plot=False, debug=False)
Ejemplo n.º 13
0
 def test_0_peaks(self):
     """ testing 0 peaks, not enough data """
     unidip.test_unidip(f"{EXAMPLES}testsmall.csv")
Ejemplo n.º 14
0
 def test_10_peaks(self):
     """ test 10 peaks """
     unidip.test_unidip(f"{EXAMPLES}test10p.csv", plot=False, debug=False)
Ejemplo n.º 15
0
 def test_hist3_peaks(self):
     """ test 3 histogram peaks """
     unidip.test_unidip(f"{EXAMPLES}hist3p.csv", plot=False, is_hist=True)
Ejemplo n.º 16
0
 def test_histsmall_peak(self):
     """ Tests on 10 density points from histogram """
     unidip.test_unidip(f"{EXAMPLES}histnotsig.csv",
                        plot=False,
                        is_hist=True)
Ejemplo n.º 17
0
 def test_5wide_peaks(self):
     """ test 5 wide peaks """
     unidip.test_unidip(f"{EXAMPLES}test0.5sig.csv",
                        plot=False,
                        debug=False,
                        alpha=.05)
Ejemplo n.º 18
0
 def test_1or10_peaks(self):
     """ test hidden 10 peaks """
     unidip.test_unidip(f"{EXAMPLES}test1or10p.csv",
                        plot=False,
                        alpha=0.3,
                        merge_distance=5)
Ejemplo n.º 19
0
 def test_negEntMaxRecErr(self):
     """ Test for max recursion error on 4 peaks"""
     unidip.test_unidip(f"{EXAMPLES}negEntMaxRecErr.csv",
                        is_hist=True,
                        plot=False)
Ejemplo n.º 20
0
 def test_1_peak(self):
     """ test 1 peak"""
     unidip.test_unidip(f"{EXAMPLES}peak1.csv", plot=False)