Skip to content

Commit

Permalink
plotting.balmer.extract_fit: Use column_names definition #25 (iss #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Mar 1, 2020
1 parent 62a3d4a commit c9e7dca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Metallicity_Stack_Commons/plotting/balmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@ def extract_fit(astropy_table, line_name, balmer=False):
"""

try:
xbar = astropy_table[line_name + '_X_bar'].data
xbar = astropy_table[line_name + '_Center'].data
except KeyError:
print("Line not present in table")
print("Exiting!!!")
return

xbar = astropy_table[line_name + '_X_bar'].data
sp = astropy_table[line_name + '_Pos_Sig'].data
ap = astropy_table[line_name + '_Pos_Amp'].data
con = astropy_table[line_name + '_Const'].data
xbar = astropy_table[line_name + '_Center'].data
sp = astropy_table[line_name + '_Sigma'].data
ap = astropy_table[line_name + '_Norm'].data
con = astropy_table[line_name + '_Median'].data

param_list = [xbar, sp, ap, con]

if balmer:
sn = astropy_table[line_name + '_Neg_Sig'].data
an = astropy_table[line_name + '_Neg_Amp'].data
sn = astropy_table[line_name + '_Abs_Sigma'].data
an = astropy_table[line_name + '_Abs_Norm'].data

param_list += [sn, an]

Expand Down

0 comments on commit c9e7dca

Please sign in to comment.