From a5a1aeb8991337d2375208fb327e2be6701f44c8 Mon Sep 17 00:00:00 2001 From: Chun Ly Date: Sat, 29 Feb 2020 20:36:47 -0700 Subject: [PATCH] analysis.composite_indv_detect.main: Simplify if statement (iss #21) --- Metallicity_Stack_Commons/analysis/composite_indv_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Metallicity_Stack_Commons/analysis/composite_indv_detect.py b/Metallicity_Stack_Commons/analysis/composite_indv_detect.py index a8a86e5..31a863d 100644 --- a/Metallicity_Stack_Commons/analysis/composite_indv_detect.py +++ b/Metallicity_Stack_Commons/analysis/composite_indv_detect.py @@ -56,7 +56,7 @@ def main(fitspath, dataset, composite_file, indv_em_line_file, indv_bin_file, ou O3 = det3_table['OIII_5007_Flux_Observed'].data * OIII_r # [OIII]4959,5007 fluxes (Assume 3.1:1 ratio) Hb = det3_table['HBETA_Flux_Observed'].data # H-beta fluxes - if det3 == True: + if det3: com_O_log, metal_dict = metallicity_calculation(adopted_temp, O2/Hb, O3/Hb) else: det3 = np.where(bin_table['Individual_Detections'])[0]