Skip to content

Commit

Permalink
minor rewrite for less chatty comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tdent authored and spxiwh committed Sep 9, 2022
1 parent 26f0bd9 commit 543ec9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pycbc/events/eventmgr_cython.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ def logsignalrateinternals_compute2detrate(
id1 = nbinned1[idx] + c1_size / 2
id2 = nbinned2[idx] + c2_size / 2

# Long logic block. What we basically have here are 3 IDs (relating to the
# time, phase and sensitivity bins). If all 3 IDs are actually in the weights
# file provided, find that weight and apply it. Otherwise apply the
# "max_penalty" parameter.
# For bins that exist in the signal pdf histogram, apply that pdf value,
# otherwise apply the "max penalty" value.
# The bins are specified by 3 indexes (corresponding to the time
# difference, phase difference and relative sensitivity dimensions).
if (id0 > 0) and (id0 < c0_size) and (id1 > 0) and (id1 < c1_size) and (id2 > 0) and (id2 < c2_size):
rate[ridx] = two_det_weights[id0, id1, id2]
else:
Expand Down

0 comments on commit 543ec9b

Please sign in to comment.