Skip to content

Commit

Permalink
valid_table: Use os.path.join (iss #13)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Jun 4, 2020
1 parent bd91d19 commit 9362e4b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Metallicity_Stack_Commons/valid_table.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# from os.path import exists
import numpy as np
from os.path import join

from astropy.io import ascii as asc
from astropy.table import Table, Column

Expand Down Expand Up @@ -36,8 +38,8 @@ def make_validation_table(fitspath):
OIII4363_S/N
"""

bin_table = asc.read(fitspath + filename_dict['bin_info'])
em_table = asc.read(fitspath + filename_dict['bin_fit'])
bin_table = asc.read(join(fitspath, filename_dict['bin_info']))
em_table = asc.read(join(fitspath, filename_dict['bin_fit']))

bin_ID = em_table['bin_ID'].data
raw_OIII4363 = em_table['OIII_4363_Flux_Observed'].data
Expand Down Expand Up @@ -115,7 +117,8 @@ def compare_to_by_eye(fitspath, dataset):
Notes
"""
ver_table = fitspath + filename_dict['bin_valid']

ver_table = join(fitspath, filename_dict['bin_valid'])
ver_tab = asc.read(ver_table)
indicate = ver_tab['Detection']
ID = ver_tab['bin_ID']
Expand Down

0 comments on commit 9362e4b

Please sign in to comment.