forked from PyWavelets/pywt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`_check_mode_input` was the only user of six. It was only used to check the input of `MODES.from_object`, and raised a `TypeError` if a numeric mode was out of range or a mode object was not a string type. `MODES.from_object` raises a `ValueError` in these situations, and when the mode name string is not found. Now, `MODES.from_object` is wrapped in a function `_try_mode` that returns its result and fixes the type of any exception raised to keep the API the same. This is a candidate for cleanup after the API break. Part of issue PyWavelets#61
- Loading branch information
Showing
3 changed files
with
14 additions
and
51 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters