"""I have also noticed a trend in a number of the failed cases that involve array comparisons: the mean discrepancy is very small, and there are a small number of significant outliers. At present, such a test fails the rigorous criteria we are using. However, I am thinking of writing a utility to identify these cases and mark them as acceptable failures. Any comments/objections? Basic idea: - look for failed tests, possibly only of the array types - for each test, extract tra_discrepmean, tra_outliers, tda_sigthresh if abs(mean) 0: qdb = sqlite3.connect("/aten/data1/ssb/test/stf/cgi/db/stf_query.db") # create a new qid now = time.time() c = qdb.execute("INSERT INTO query_id ( time ) VALUES ( ? ) ",(now,)) qid = c.lastrowid qdb.commit() #Now make our list for k in idlist: qdb.execute("INSERT INTO query ( qid, key_id ) VALUES ( ?, ? ) ", (qid, k) ) #print "Insert loop: ", k, time.asctime() qdb.commit() qdb.close() #Write a URL url="http://stsdas.stsci.edu/cgi-bin/stf.cgi?query=summary&qid=%s\n"%qid sys.stdout.write(url) if __name__ == '__main__': run(*sys.argv[1:])