Skip to content

Commit

Permalink
analysis.composite_indv_detect.main: Write table to [outfile] (iss #21)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Feb 9, 2020
1 parent 5e90c5d commit a49940a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Metallicity_Stack_Commons/analysis/composite_indv_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ..temp_metallicity_calc import metallicity_calculation


def main(fitspath, dataset, composite_file):
def main(fitspath, dataset, composite_file, outfile):
"""
Purpose:
Reads in composite table(s) containing bin information to
Expand All @@ -19,8 +19,7 @@ def main(fitspath, dataset, composite_file):
:param fitspath: str containing folder path
:param dataset: str containing sub-folder (specific to stacking approach)
:param composite_file: str containing filename of composite data
:return: TBD
:param outfile: str containing filename of output file
"""

# Read in composite table
Expand Down Expand Up @@ -52,7 +51,8 @@ def main(fitspath, dataset, composite_file):
col_metal = Column(com_O_log, name='com_O_log')
det3_table.add_columns([col_temp, col_metal]) # Add at the end (default)


# Write Astropy ASCII table containing composite T_e and derived metallicity
det3_table.write(outfile, format='ascii.fixed_width_two_line')


def run_ind_detection(fitspath, dataset, average_value_ascii):
Expand Down

0 comments on commit a49940a

Please sign in to comment.