1: In line 2, import qp It seems like qp is never used anywhere else in the file
2: In line 80 for calculatingOutlierRate function, print "using %.3g for cut for whole sample and %.3g for magcut sample\n"%(cutcriterion_all,cutcriterion_magcut) doesn't compile and could be updated to include parentheses like print ("using %.3g for cut for whole sample and %.3g for magcut sample\n" %(cutcriterion_all,cutcriterion_magcut))
1: In line 2,
import qpIt seems like qp is never used anywhere else in the file2: In line 80 for calculatingOutlierRate function,
print "using %.3g for cut for whole sample and %.3g for magcut sample\n"%(cutcriterion_all,cutcriterion_magcut)doesn't compile and could be updated to include parentheses likeprint ("using %.3g for cut for whole sample and %.3g for magcut sample\n" %(cutcriterion_all,cutcriterion_magcut))