Skip to content

Commit fad3cf0

Browse files
grlee77rgommers
authored andcommitted
FIX: ensure all deprecated modes are correctly translated to their new names
closes gh-245
1 parent de0bbc9 commit fad3cf0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pywt/_extensions/_pywt.pyx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ from libc.math cimport pow, sqrt
1919
import numpy as np
2020

2121

22+
# Caution: order of _old_modes entries must match _Modes.modes below
2223
_old_modes = ['zpd',
2324
'cpd',
2425
'sym',
@@ -89,8 +90,9 @@ class _Modes(object):
8990
smooth = common.MODE_SMOOTH
9091
periodization = common.MODE_PERIODIZATION
9192

92-
modes = ["zero", "constant", "symmetric", "reflect", "periodic",
93-
"smooth", "periodization"]
93+
# Caution: order in modes list below must match _old_modes above
94+
modes = ["zero", "constant", "symmetric", "periodic", "smooth",
95+
"periodization", "reflect"]
9496

9597
def from_object(self, mode):
9698
if isinstance(mode, int):

0 commit comments

Comments
 (0)