Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@meiyasan
Copy link
Contributor

@meiyasan meiyasan commented Nov 22, 2024

Hello,

I wanted to suppress the deprecation warning when using the cmor continuous wavelet family in my code. Instead of removing the message entirely, I highlight the initial parameters of the deprecated wavelet names for reference.

Below is the code snippet I’m working with:

import pywt
wavelets = ["fbsp", "cmor", "shan"]
for wavelet in wavelets:
    w = pywt.ContinuousWavelet(wavelet)
    print(wavelet)
    print("M = ", w.fbsp_order)
    print("B = ", w.bandwidth_frequency)
    print("C = ", w.center_frequency)
    print("")

@meiyasan meiyasan changed the title highlighted deprecations with backward compatibility information DOC: highlighted deprecations with backward compatibility information Nov 22, 2024
Copy link
Collaborator

@agriyakhetarpal agriyakhetarpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @meiyasan!

Co-authored-by: Agriya Khetarpal <[email protected]>
@meiyasan
Copy link
Contributor Author

meiyasan commented Dec 4, 2024

@agriyakhetarpal @rgommers, are there any additional checks required?

@agriyakhetarpal
Copy link
Collaborator

I think this should be good to go, but it is @rgommers who can press the green button :)

@rgommers rgommers added this to the v1.8.0 milestone Dec 4, 2024
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @meiyasan. And thanks for the review @agriyakhetarpal

@rgommers rgommers merged commit 7d32750 into PyWavelets:main Dec 4, 2024
17 checks passed
@meiyasan meiyasan deleted the patch-1 branch December 5, 2024 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants