Skip to content

Commit

Permalink
analysis.composite_indv_detect.main: Bug fix, need to define metal_di…
Browse files Browse the repository at this point in the history
…ct for det3=True case (iss #21)
  • Loading branch information
astrochun committed Mar 15, 2020
1 parent bfb155e commit 2e0fb0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Metallicity_Stack_Commons/analysis/composite_indv_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ def main(fitspath, dataset, composite_file, indv_em_line_file, indv_bin_file, ou
com_O_log = np.zeros(len(indv_em_line_table))
com_O_log[det3] = temp_com_O_log

metal_dict = dict()
for key0 in temp_metal_dict.keys():
metal_dict[key0] = np.zeros(len(indv_em_line_table))
metal_dict[key0][det3] = temp_metal_dict[key0]

# Define [indv_derived_prop_table] to include ID, bin_ID, composite T_e,
# and 12+log(O/H)
arr0 = [indv_em_line_table['ID'], bin_id_indv, adopted_temp, com_O_log]
Expand Down

0 comments on commit 2e0fb0c

Please sign in to comment.