From 5e235a0a51aec2488806aa85aa0ee8a182915831 Mon Sep 17 00:00:00 2001 From: Josh Bailey Date: Tue, 12 Mar 2024 03:56:53 +0000 Subject: [PATCH] hotfix density --- gamutrf/grscan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamutrf/grscan.py b/gamutrf/grscan.py index df43dc0c..358969ed 100644 --- a/gamutrf/grscan.py +++ b/gamutrf/grscan.py @@ -359,7 +359,7 @@ def connect_blocks(self, source, other_blocks, last_block_port=0): def get_db_blocks(self, nfft, samp_rate, scaling): if scaling == "density": - scale = 1.0 / (samp_rate * sum((self.get_window(nfft) ** 2))) + scale = 1.0 / (samp_rate * sum(([x**2 for x in self.get_window(nfft)]))) elif scaling == "spectrum": scale = 1.0 / (sum(self.get_window(nfft)) ** 2) else: