(window_type)
| 488 | |
| 489 | # Return a callable object representing the window |
| 490 | def _canonicalizeWindowFunction(window_type): |
| 491 | if callable(window_type): |
| 492 | return window_type |
| 493 | |
| 494 | if window_type is None: |
| 495 | return noWindow |
| 496 | |
| 497 | return { |
| 498 | "none": noWindow, |
| 499 | "sakoechiba": sakoeChibaWindow, |
| 500 | "itakura": itakuraWindow, |
| 501 | "slantedband": slantedBandWindow |
| 502 | }.get(window_type, lambda: _error("Window function undefined")) |
| 503 | |
| 504 | |
| 505 | def _canonicalizeStepPattern(s): |