Skip to content

Commit

Permalink
Fix overlap input condition
Browse files Browse the repository at this point in the history
Fixes #444
  • Loading branch information
mhostetter committed Dec 18, 2024
1 parent ccced42 commit 19ec6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdr/plot/_spectral_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def periodogram(
sample_rate, sample_rate_provided = verify_sample_rate(sample_rate)
# verify_isinstance(window, str, optional=True)
verify_scalar(length, optional=True, int=True, positive=True)
verify_scalar(overlap, optional=True, int=True, positive=True)
verify_scalar(overlap, optional=True, int=True, non_negative=True)
verify_scalar(fft, optional=True, int=True, positive=True)
verify_literal(detrend, ["constant", "linear", False])
verify_literal(average, ["mean", "median"])
Expand Down Expand Up @@ -174,7 +174,7 @@ def spectrogram(
sample_rate, sample_rate_provided = verify_sample_rate(sample_rate)
# verify_isinstance(window, str, optional=True)
verify_scalar(length, optional=True, int=True, positive=True)
verify_scalar(overlap, optional=True, int=True, positive=True)
verify_scalar(overlap, optional=True, int=True, non_negative=True)
verify_scalar(fft, optional=True, int=True, positive=True)
verify_literal(detrend, ["constant", "linear", False])
verify_isinstance(ax, plt.Axes, optional=True)
Expand Down

0 comments on commit 19ec6f7

Please sign in to comment.