Skip to content

Commit

Permalink
Merge pull request #715 from anarkiwi/sigf2
Browse files Browse the repository at this point in the history
run finder on each tuning range individually.
  • Loading branch information
anarkiwi authored Jun 14, 2023
2 parents 9b825ef + effcbe8 commit b38130b
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions gamutrf/sigfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,20 @@ def process_scan(args, scan_configs, prom_vars, df, lastbins, running_df, last_d
freq_start_mhz = (
min([scan_config["freq_start"] for scan_config in scan_configs]) / 1e6
)
signals = scipy_find_sig_windows(
df, width=args.width, prominence=args.prominence, threshold=args.threshold
)
signals = []
for scan_config in scan_configs:
scan_df = df[
(df.freq >= scan_config["freq_start"] / 1e6)
& (df.freq <= scan_config["freq_end"] / 1e6)
]
signals.extend(
scipy_find_sig_windows(
scan_df,
width=args.width,
prominence=args.prominence,
threshold=args.threshold,
)
)

if PEAK_TRIGGER == 1 and signals:
led_sleep = 0.2
Expand Down

0 comments on commit b38130b

Please sign in to comment.