Skip to content

Improve flexibility of the precision parameter in the CWT implementation. #800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

meiyasan
Copy link
Contributor

Hello @rgommers ,

I had many issues in controlling the precision of the wavelet (def wavefun()). This issue has been mentioned several times already, but never committed. I think this is a rather important fix allowing for more flexibility in playing with CWT.

So please find the minimal modification necessary allowing for better precision and removing artifacts in the low-frequency region (high scale values).

Please consider if possible, this is important parameter to adjust. In the current master, the value is hardcoded in _cwt.py to precision=10, this is not so good.

@meiyasan meiyasan changed the title Update _cwt.py Improve flexibility of the precision parameter in the CWT implementation. Apr 12, 2025
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! Not a maintainer over here, but I think the change looks good in its current form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants