Skip to content

Commit

Permalink
Merge pull request #1360 from anarkiwi/inflen
Browse files Browse the repository at this point in the history
remove iq_inference_len.
  • Loading branch information
anarkiwi authored Jul 24, 2024
2 parents d0d71f5 + 61ef950 commit 0282dce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
3 changes: 1 addition & 2 deletions gamutrf/grscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def __init__(
inference_port=10001,
inference_text_color="",
iq_inference_background=True,
iq_inference_len=1024,
iq_inference_model_name="",
iq_inference_model_server="",
iq_inference_squelch_db=None,
Expand Down Expand Up @@ -321,7 +320,7 @@ def __init__(
self.iq_inference_block = iqtlabs.iq_inference(
tag="rx_freq",
vlen=nfft,
n_vlen=int(iq_inference_len / nfft),
n_vlen=1,
sample_buffer=tune_step_fft,
min_peak_points=inference_min_db,
model_server=iq_inference_model_server,
Expand Down
10 changes: 0 additions & 10 deletions gamutrf/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,6 @@ def argument_parser():
default=1e-4,
help="I/Q inference power squelch alpha",
)
parser.add_argument(
"--iq_inference_len",
dest="iq_inference_len",
type=int,
default=1024,
help="number of samples to send for I/Q inference",
)
parser.add_argument(
"--iq_inference_model_name",
dest="iq_inference_model_name",
Expand Down Expand Up @@ -526,9 +519,6 @@ def check_options(options):
if options.samp_rate % options.nfft:
print("NFFT should be a factor of sample rate")

if options.iq_inference_len % options.nfft:
return "NFFT should be a factor of I/Q inference length"

if options.freq_end:
if options.freq_start > options.freq_end:
return "freq_start must be less than freq_end"
Expand Down

0 comments on commit 0282dce

Please sign in to comment.