Skip to content

Custom filters #4

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
Open

Custom filters #4

wants to merge 3 commits into from

Conversation

AdriJD
Copy link
Collaborator

@AdriJD AdriJD commented Feb 21, 2024

Added the option to filter a map by user-provided harmonic filter. Useful in cases where you would not want to filter by the the pseudo-spectrum of the data. Also added missing lim and lim0 arguments for the wavelet noise model.

Copy link
Collaborator

@zatkins2 zatkins2 left a comment

Choose a reason for hiding this comment

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

Thanks for these additions! Take a look at my suggestion for filters.py.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you consider making a separate filter for this new feature? That is probably simpler than modifying each of the other filters to accommodate this new feature. You would only need to write a new model function (registered with model=True). You wouldn't need to write a new simulation filter, you would only need to add a registration on top of existing filters (e.g., analogous to how ivar_basic and raw_ivar_basic share a simulation filters). Maybe there is a downside to this but I think it would be more modular/easier to maintain.

If you prefer to modify the existing filters, I think you missed adding your new feature to iso_harmonic_ivar_scaledep_model

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