Skip to content

Commit

Permalink
analysis.composite_indv_detect.main: Change to use bin_ID naming conv…
Browse files Browse the repository at this point in the history
…ention (iss #25)
  • Loading branch information
astrochun committed Feb 19, 2020
1 parent c5acfbd commit 835f4b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Metallicity_Stack_Commons/analysis/composite_indv_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main(fitspath, dataset, composite_file, indv_em_line_file, indv_bin_file, ou
# Read in composite table
composite_table = asc.read(composite_file)

bin_id = composite_table['ID'].data
bin_id = composite_table['bin_ID'].data
bin_temp = composite_table['Temperature'].data

# Read in tables containing line ratios, bins, etc.
Expand All @@ -46,7 +46,7 @@ def main(fitspath, dataset, composite_file, indv_em_line_file, indv_bin_file, ou
# Populate composite temperature for individual galaxies
adopted_temp = np.zeros(len(det3_table))
for comp_bin, comp_temp in zip(bin_id, bin_temp):
bin_idx = np.where(bin_table['Bin_number'].data == comp_bin)[0]
bin_idx = np.where(bin_table['bin_ID'].data == comp_bin)[0]
adopted_temp[bin_idx] = comp_temp

O2 = det3_table['O2'].data # [OII]3726,3728 fluxes
Expand Down

0 comments on commit 835f4b7

Please sign in to comment.