Skip to content

Commit

Permalink
hotfix density
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Mar 12, 2024
1 parent 8b806aa commit 5e235a0
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)])))

Check warning on line 362 in gamutrf/grscan.py

View check run for this annotation

Codecov / codecov/patch

gamutrf/grscan.py#L362

Added line #L362 was not covered by tests
elif scaling == "spectrum":
scale = 1.0 / (sum(self.get_window(nfft)) ** 2)
else:
Expand Down

0 comments on commit 5e235a0

Please sign in to comment.