@@ -21,7 +21,8 @@ def test_compute_EBV():
2121 for offset in offsets :
2222 # Test float input
2323 Balmer = value + offset
24- EBV = attenuation .compute_EBV (Balmer , source = source , zero_neg = zero )
24+ EBV = attenuation .compute_EBV (Balmer , source = source ,
25+ zero_neg = zero , verbose = True )
2526
2627 assert isinstance (EBV , float )
2728 if offset == 0 :
@@ -37,7 +38,8 @@ def test_compute_EBV():
3738
3839 # Test numpy array with single record
3940 EBV = attenuation .compute_EBV (np .array ([Balmer ]),
40- source = source , zero_neg = zero )
41+ source = source , zero_neg = zero ,
42+ verbose = True )
4143
4244 assert isinstance (EBV , (np .ndarray , np .generic ))
4345 if offset == 0 :
@@ -53,14 +55,16 @@ def test_compute_EBV():
5355
5456 # Test EBV distribution case
5557 values = [value , value - dx , value + dx ]
56- Balmer_dist = random_pdf (values , [dx ] * len (values ), seed_i = 1 , n_iter = 5000 )
58+ Balmer_dist = random_pdf (values , [dx ] * len (values ), seed_i = 1 ,
59+ n_iter = 5000 )
5760 if not zero :
5861 EBV_dist = attenuation .compute_EBV (Balmer_dist , source = source ,
59- zero_neg = zero )
62+ zero_neg = zero , verbose = True )
6063 else :
6164 EBV_dist , EBV_peak = attenuation .compute_EBV (Balmer_dist ,
6265 source = source ,
63- zero_neg = zero )
66+ zero_neg = zero ,
67+ verbose = True )
6468
6569 '''
6670 # For writing initial file
@@ -80,7 +84,7 @@ def test_compute_EBV():
8084def test_compute_A ():
8185
8286 for EBV in [0.0 , 0.25 ]:
83- A_dict = attenuation .compute_A (EBV )
87+ A_dict = attenuation .compute_A (EBV , verbose = True )
8488 assert isinstance (A_dict , dict )
8589 for key in A_dict .keys ():
8690 if EBV == 0 :
@@ -97,7 +101,8 @@ def test_line_ratio_atten():
97101 # [OII]/H-beta
98102 ratio_atten = attenuation .line_ratio_atten (ratio , EBV ,
99103 line_name_short ['OII' ],
100- line_name_short ['HB' ])
104+ line_name_short ['HB' ],
105+ verbose = True )
101106 assert isinstance (ratio_atten , float )
102107 if EBV == 0 :
103108 assert ratio_atten == ratio
@@ -107,7 +112,8 @@ def test_line_ratio_atten():
107112 # [OIII]/[OII]
108113 ratio_atten = attenuation .line_ratio_atten (ratio , EBV ,
109114 line_name_short ['OIII' ],
110- line_name_short ['OII' ])
115+ line_name_short ['OII' ],
116+ verbose = True )
111117 assert isinstance (ratio_atten , float )
112118 if EBV == 0 :
113119 assert ratio_atten == ratio
@@ -117,5 +123,5 @@ def test_line_ratio_atten():
117123
118124def test_Hb_SFR ():
119125
120- logSFR = attenuation .Hb_SFR (41.0 , 0.25 )
126+ logSFR = attenuation .Hb_SFR (41.0 , 0.25 , verbose = True )
121127 assert isinstance (logSFR , float )
0 commit comments