Skip to content

Commit

Permalink
error_prop.fluxes_derived_prop: xpeak -> peak (iss #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Mar 27, 2020
1 parent 45ab1da commit 34290d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Metallicity_Stack_Commons/error_prop.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ def fluxes_derived_prop(path, binned_data=True):
for aa, flux, rms in zip(range(len(flux_cols)), flux_cols, flux_rms_cols):
flux_gpdf = random_pdf(flux_tab[flux], flux_tab[rms], seed_i=aa,
n_iter=1000)
err, xpeak = compute_onesig_pdf(flux_gpdf, flux_tab[flux], usepeak=True)
err, peak = compute_onesig_pdf(flux_gpdf, flux_tab[flux], usepeak=True)

# Fill In Dictionary
flux_pdf_dict[line_name[aa]] = flux_gpdf
flux_peak[line_name[aa] + '_xpeak'] = xpeak
flux_peak[line_name[aa] + '_peak'] = peak
flux_lowhigh[line_name[aa] + '_lowhigh_error'] = err

flux_tab0[line_name[aa] + '_Flux_Gaussian'][detect_idx] = xpeak
flux_tab0[line_name[aa] + '_Flux_Gaussian'][detect_idx] = peak

# Edit ASCII Table
new_flux_file = join(path, filename_dict['bin_fit_rev'])
Expand Down

0 comments on commit 34290d1

Please sign in to comment.