Skip to content

Commit

Permalink
fixed two problems
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeiDBykov committed Jul 22, 2022
1 parent 7e9bacc commit 3540c02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nway-calibrate-cutoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ def error(self, message):
i = numpy.min(numpy.where(mask)[0])
#print(i)
print('For a false detection rate of <%d%%' % (rate*100))
print('--> use only counterparts with p_any>%.2f (%.2f%% of matches)' % (cutoffs[i], efficiency[i]))
print('--> use only counterparts with p_any>%.2f (%.2f%% of matches)' % (cutoffs[i], efficiency[i]*100))


3 changes: 3 additions & 0 deletions nway-create-fake-catalogue.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ def greatarc_interpolate(posa, posb, f):
dmask = d[b_nearest] * 60 * 60 > radius
#d = d[dmask]
b_nearest = b_nearest[dmask]

assert len(b_nearest)>0, "Method failed: No sources found nearby, could not interpolate a fake source."

#print('have %d neighbors' % len(b_nearest))
b_nearest = b_nearest[:100]
#print('distances:', d[b_nearest] * 60 * 60)
Expand Down

0 comments on commit 3540c02

Please sign in to comment.