Commit 55d7aab
committed
Fix very-edge case in csd(), plus small additional cleanups.
Previously, `csd([0, 0], [0, 0])` would fail with a ZeroDivisionError
when computing yticks. Fix that by copying the logic from psd, and
streamlining it in both places. Also fix an unformatted exception
message in specgram.1 parent 0d89bf6 commit 55d7aab
1 file changed
+5
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7035 | 7035 | | |
7036 | 7036 | | |
7037 | 7037 | | |
| 7038 | + | |
7038 | 7039 | | |
7039 | | - | |
7040 | | - | |
7041 | | - | |
7042 | | - | |
7043 | | - | |
| 7040 | + | |
7044 | 7041 | | |
7045 | 7042 | | |
7046 | 7043 | | |
| |||
7140 | 7137 | | |
7141 | 7138 | | |
7142 | 7139 | | |
7143 | | - | |
7144 | | - | |
7145 | | - | |
7146 | | - | |
7147 | 7140 | | |
| 7141 | + | |
| 7142 | + | |
7148 | 7143 | | |
7149 | 7144 | | |
7150 | 7145 | | |
| |||
7576 | 7571 | | |
7577 | 7572 | | |
7578 | 7573 | | |
7579 | | - | |
| 7574 | + | |
7580 | 7575 | | |
7581 | 7576 | | |
7582 | 7577 | | |
| |||
0 commit comments