diff options
| author | Abhay Raghuvanshi <abhayaman669@gmail.com> | 2021-03-19 04:45:07 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-18 17:15:07 -0600 |
| commit | cb71c43d45c0ad6e14db97a51e317b771f6a9ebb (patch) | |
| tree | 5af3a6385bdabcb914148d3a4becb7512f405339 /numpy/fft | |
| parent | ddbff082e0bab0e3580be9f2f275418595879022 (diff) | |
| download | numpy-cb71c43d45c0ad6e14db97a51e317b771f6a9ebb.tar.gz | |
MAINT: Added Chain exceptions where appropriate (#18400)
* Added chain exception in _pocketfft.py
* Added chain exception in format.py
* Added chain exception in make_lite.py
* Added chain exception in mrecords.py
* added from e for exceptions
* Minor update for _read_array_header exception msg
* Removed \n from excp msg and e from msg format.
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* Update numpy/linalg/lapack_lite/make_lite.py
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
Diffstat (limited to 'numpy/fft')
| -rw-r--r-- | numpy/fft/_pocketfft.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/fft/_pocketfft.py b/numpy/fft/_pocketfft.py index bf0e60b6d..4ed3042a6 100644 --- a/numpy/fft/_pocketfft.py +++ b/numpy/fft/_pocketfft.py @@ -112,7 +112,7 @@ def _swap_direction(norm): return _SWAP_DIRECTION_MAP[norm] except KeyError: raise ValueError(f'Invalid norm value {norm}; should be "backward", ' - '"ortho" or "forward".') + '"ortho" or "forward".') from None def _fft_dispatcher(a, n=None, axis=None, norm=None): |
