diff --git a/gamutrf/grscan.py b/gamutrf/grscan.py index a159b814..5bd4555d 100644 --- a/gamutrf/grscan.py +++ b/gamutrf/grscan.py @@ -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, @@ -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, diff --git a/gamutrf/scan.py b/gamutrf/scan.py index b6739b69..c92615da 100644 --- a/gamutrf/scan.py +++ b/gamutrf/scan.py @@ -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", @@ -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"