Skip to content

Commit

Permalink
DOC: highlighted deprecations with backward compatibility information (
Browse files Browse the repository at this point in the history
  • Loading branch information
meiyasan authored Dec 4, 2024
1 parent 5f3e52b commit 7d32750
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions pywt/_extensions/_pywt.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -705,17 +705,28 @@ cdef public class ContinuousWavelet [type ContinuousWaveletType, object Continuo
msg = (
"Wavelets of family {0}, without parameters "
"specified in the name are deprecated. The name "
"should take the form {0}M-B-C where M is the spline "
"should follow the format {0}M-B-C where M is the spline "
"order and B, C are floats representing the bandwidth "
"frequency and center frequency, respectively "
"(example: {0}1-1.5-1.0).").format(base_name)
"(example, for backward compatibility: "
"{0} = {0}2-1.0-0.5).").format(base_name)
elif base_name == 'shan':
msg = (
"Wavelets from the family {0}, without parameters "
"specified in the name are deprecated. The name "
"should follow the format {0}B-C, where B and C are floats "
"representing the bandwidth frequency and center "
"frequency, respectively (example, for backward "
"compatibility: {0} = {0}0.5-1.0)."
).format(base_name)
else:
msg = (
"Wavelets from the family {0}, without parameters "
"specified in the name are deprecated. The name "
"should takethe form {0}B-C where B and C are floats "
"should follow the format {0}B-C, where B and C are floats "
"representing the bandwidth frequency and center "
"frequency, respectively (example: {0}1.5-1.0)."
"frequency, respectively (example, for backward "
"compatibility: {0} = {0}1.0-0.5)."
).format(base_name)
warnings.warn(msg, FutureWarning)
else:
Expand Down

0 comments on commit 7d32750

Please sign in to comment.