def create_sc_table(scfile, colnames=None):
    """Load an FT2 file from a file or list of files."""

    if utils.is_fits_file(scfile) and colnames is None:
        return create_table_from_fits(scfile, 'SC_DATA')

    if utils.is_fits_file(scfile):
        files = [scfile]
    else:
        files = [line.strip() for line in open(scfile, 'r')]

    tables = [create_table_from_fits(f, 'SC_DATA', colnames)
              for f in files]

    return vstack(tables)
def create_sc_table ( scfile , colnames = None ) : if utils . is_fits_file ( scfile ) and colnames is None : return create_table_from_fits ( scfile , 'SC_DATA' ) if utils . is_fits_file ( scfile ) : files = [ scfile ] else : files = [ line . strip ( ) for line in open ( scfile , 'r' ) ] tables = [ create_table_from_fits ( f , 'SC_DATA' , colnames ) for f in files ] return vstack ( tables )
Load an FT2 file from a file or list of files.