From eb53c824f4ab58fb43e9612db6b3ff0c4bf6997e Mon Sep 17 00:00:00 2001 From: Josh Bailey Date: Sun, 4 Aug 2024 22:05:09 +0000 Subject: [PATCH] scale. --- gamutrf/grscan.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gamutrf/grscan.py b/gamutrf/grscan.py index acdd1ba4..175be885 100644 --- a/gamutrf/grscan.py +++ b/gamutrf/grscan.py @@ -204,6 +204,7 @@ def __init__( if write_fft_points: fft_dir = sample_dir Path(sample_dir).mkdir(parents=True, exist_ok=True) + samples_vlen = fft_batch_size * nfft self.samples_blocks.extend( [ # blocks.vector_to_stream( @@ -215,10 +216,10 @@ def __init__( "rx_freq", gr.sizeof_gr_complex, "_".join(("cf32", endianstr())), - fft_batch_size * nfft, + samples_vlen, sample_dir, "samples", - write_samples, + int(write_samples / samples_vlen), skip_tune_step, int(samp_rate), rotate_secs,