Skip to content

Commit

Permalink
Get rid of annoying spectral warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Feb 10, 2021
1 parent 25ef7a7 commit 7d28a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ROSCO_toolbox/ofTools/util/spectral.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def fnextpow2(x):
if nperseg is None:
if noverlap is None:
overlap_frac=0.5
elif noverlap is 0:
elif noverlap == 0:
overlap_frac=0
else:
raise NotImplementedError('TODO noverlap set but not nperseg')
Expand Down

0 comments on commit 7d28a6f

Please sign in to comment.