Skip to content

Commit

Permalink
plotting.balmer: Fix variable name (bug): combine_ascii -> astropy ta…
Browse files Browse the repository at this point in the history
…ble (iss #10)
  • Loading branch information
astrochun committed Jan 31, 2020
1 parent 11527c4 commit ac9ae4a
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 = combine_asc[line_name + '_X_bar']
xbar = astropy_table[line_name + '_X_bar']
except KeyError:
print("Line not present in table")
print("Exiting!!!")
return

xbar = combine_asc[line_name + '_X_bar']
sp = combine_asc[line_name + '_Pos_Sig']
ap = combine_asc[line_name + '_Pos_Amp']
con = combine_asc[line_name + '_Const']
xbar = astropy_table[line_name + '_X_bar']
sp = astropy_table[line_name + '_Pos_Sig']
ap = astropy_table[line_name + '_Pos_Amp']
con = astropy_table[line_name + '_Const']

param_list = [xbar, sp, ap, con]

if balmer:
sn = combine_asc[line_name + '_Neg_Sig']
an = combine_asc[line_name + '_Neg_Amp']
sn = astropy_table[line_name + '_Neg_Sig']
an = astropy_table[line_name + '_Neg_Amp']

param_list += [sn, an]

Expand Down

0 comments on commit ac9ae4a

Please sign in to comment.