def append_to_tables(self, table, table_ids):
        """Add this instance as a row on a `astropy.table.Table` """
        infile_refs = np.zeros((2), int)
        outfile_refs = np.zeros((2), int)
        rmfile_refs = np.zeros((2), int)
        intfile_refs = np.zeros((2), int)
        f_ptr = len(table_ids['file_id'])
        infile_refs[0] = f_ptr
        if self.infile_ids is not None:
            for fid in self.infile_ids:
                table_ids.add_row(dict(file_id=fid))
                f_ptr += 1
        infile_refs[1] = f_ptr
        outfile_refs[0] = f_ptr
        if self.outfile_ids is not None:
            for fid in self.outfile_ids:
                table_ids.add_row(dict(file_id=fid))
                f_ptr += 1
        outfile_refs[1] = f_ptr
        rmfile_refs[0] = f_ptr
        if self.rmfile_ids is not None:
            for fid in self.rmfile_ids:
                table_ids.add_row(dict(file_id=fid))
                f_ptr += 1
        rmfile_refs[1] = f_ptr
        intfile_refs[0] = f_ptr
        if self.intfile_ids is not None:
            for fid in self.intfile_ids:
                table_ids.add_row(dict(file_id=fid))
                f_ptr += 1
        intfile_refs[1] = f_ptr

        table.add_row(dict(dbkey=self.dbkey,
                           jobname=self.jobname,
                           jobkey=self.jobkey,
                           appname=self.appname,
                           logfile=self.logfile,
                           job_config=str(self.job_config),
                           timestamp=self.timestamp,
                           infile_refs=infile_refs,
                           outfile_refs=outfile_refs,
                           rmfile_refs=rmfile_refs,
                           intfile_refs=intfile_refs,
                           status=self.status))
def append_to_tables ( self , table , table_ids ) : infile_refs = np . zeros ( ( 2 ) , int ) outfile_refs = np . zeros ( ( 2 ) , int ) rmfile_refs = np . zeros ( ( 2 ) , int ) intfile_refs = np . zeros ( ( 2 ) , int ) f_ptr = len ( table_ids [ 'file_id' ] ) infile_refs [ 0 ] = f_ptr if self . infile_ids is not None : for fid in self . infile_ids : table_ids . add_row ( dict ( file_id = fid ) ) f_ptr += 1 infile_refs [ 1 ] = f_ptr outfile_refs [ 0 ] = f_ptr if self . outfile_ids is not None : for fid in self . outfile_ids : table_ids . add_row ( dict ( file_id = fid ) ) f_ptr += 1 outfile_refs [ 1 ] = f_ptr rmfile_refs [ 0 ] = f_ptr if self . rmfile_ids is not None : for fid in self . rmfile_ids : table_ids . add_row ( dict ( file_id = fid ) ) f_ptr += 1 rmfile_refs [ 1 ] = f_ptr intfile_refs [ 0 ] = f_ptr if self . intfile_ids is not None : for fid in self . intfile_ids : table_ids . add_row ( dict ( file_id = fid ) ) f_ptr += 1 intfile_refs [ 1 ] = f_ptr table . add_row ( dict ( dbkey = self . dbkey , jobname = self . jobname , jobkey = self . jobkey , appname = self . appname , logfile = self . logfile , job_config = str ( self . job_config ) , timestamp = self . timestamp , infile_refs = infile_refs , outfile_refs = outfile_refs , rmfile_refs = rmfile_refs , intfile_refs = intfile_refs , status = self . status ) )
Add this instance as a row on a `astropy.table.Table`