def update_table_row ( self , table , row_idx ) : try : table [ row_idx ] [ 'timestamp' ] = self . timestamp table [ row_idx ] [ 'status' ] = self . status except IndexError : print ( "Index error" , len ( table ) , row_idx )
python astropy table adding values
Add this instance as a row on a astropy . table . Table
def update_table_row(self, table, row_idx):
        """Add this instance as a row on a `astropy.table.Table` """
        try:
            table[row_idx]['timestamp'] = self.timestamp
            table[row_idx]['status'] = self.status
        except IndexError:
            print("Index error", len(table), row_idx)