Skip to content

Commit

Permalink
Merge pull request #1200 from anarkiwi/dense
Browse files Browse the repository at this point in the history
hotfix density
  • Loading branch information
anarkiwi authored Mar 12, 2024
2 parents fe97e94 + 5e235a0 commit 709983c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamutrf/grscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 709983c

Please sign in to comment.