Skip to content

Commit

Permalink
plotting.balmer.fitting_result: Fix bug - define dx (iss #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Mar 1, 2020
1 parent 5f87da0 commit faa9c65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Metallicity_Stack_Commons/plotting/balmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def extract_fit(astropy_table, line_name, balmer=False):


def fitting_result(wave, y_norm, lambda_cen, balmer_fit, balmer_fit_neg):
dx = wave[2] - wave[1]

x_sigsnip = np.where(np.abs((wave - lambda_cen)) / balmer_fit[1] <= 2.5)[0]
gauss0 = double_gauss(wave, *balmer_fit)
neg0 = gauss(wave, *balmer_fit_neg)
Expand Down

0 comments on commit faa9c65

Please sign in to comment.