def delete_row(self, table, args):
    if (table == 'barrier'):
        self.c.execute(('DELETE FROM %s WHERE wafer=? AND chip=?' % scrub(table)), args)
    elif ((table == 'shape') or (table == 'josephson')):
        self.c.execute(('DELETE FROM %s WHERE wafer=? AND chip=? AND device=?' % scrub(table)), args)
    else:
        print(('No table name: %s' % table))
def delete_row(self, table, args):
    if (table == 'barrier'):
        self.c.execute(('DELETE FROM %s WHERE wafer=? AND chip=?' % scrub(table)), args)
    elif ((table == 'shape') or (table == 'josephson')):
        self.c.execute(('DELETE FROM %s WHERE wafer=? AND chip=? AND device=?' % scrub(table)), args)
    else:
        print(('No table name: %s' % table))