Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Apr 26, 2024
1 parent f477ac7 commit 80d943e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions axidence/plugins/pairing/peaks_paired.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,9 @@ def simple_pairing(
print(f"S2 rate is {s2_rate * 1e3:.3f}mHz")

paring_rate_full = (
s1_rate
* s2_rate
* (max_drift_time - min_drift_time)
/ units.s
* run_time
/ paring_rate_correction
s1_rate * s2_rate * (max_drift_time - min_drift_time) / units.s / paring_rate_correction
)
n_events = round(paring_rate_full * paring_rate_bootstrap_factor)
n_events = round(paring_rate_full * run_time * paring_rate_bootstrap_factor)
s1_group_number = rng.choice(len(s1), size=n_events, replace=True)
s2_group_number = rng.choice(len(s2), size=n_events, replace=True)
if fixed_drift_time is None:
Expand Down

0 comments on commit 80d943e

Please sign in to comment.