Skip to content
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

Add block-averaged sources to EquivalentSources #260

Merged
merged 14 commits into from
Oct 27, 2021

Conversation

santisoler
Copy link
Member

@santisoler santisoler commented Oct 20, 2021

Allow EquivalentSources to use the block-averaging strategy for locating the
sources introduced in Soler & Uieda
(2021)
. Add a new block_size parameter
to define the size of the blocks. Add a new example to the Gallery and test
functions for the new feature. Add citation instructions for the paper when
using the block-averaged sources.

Fixes #254

@santisoler santisoler added the enhancement Idea or request for a new feature label Oct 20, 2021
Copy link
Member

@leouieda leouieda left a comment

Choose a reason for hiding this comment

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

Nice work 👍 The docs need a bit of attention:

  • Build the HTML to make the example and docstring look ok
  • Some classes and code formatting in the example may need a fix. For example not using the :class: directive and some missing backtics.

Otherwise looks good to me 🙂

examples/equivalent_sources/block_averaged_sources.py Outdated Show resolved Hide resolved
harmonica/equivalent_sources/cartesian.py Show resolved Hide resolved
Add missing :class: directive.
Fix itemization format.
Replace "anisotropic" for "oversampled in one direction".
@santisoler
Copy link
Member Author

@leouieda Thanks for the review! I've applied all the required changes and also added citation instructions for the gradient-boosted equivalent sources paper. Let me know what do you think and if it's ok we can merge it.

CITATION.rst Outdated Show resolved Hide resolved
@leouieda
Copy link
Member

Minor comments on the citation file. Otherwise, merge away!

@santisoler
Copy link
Member Author

Thanks again for the review. I made another iteration of the citation instructions that looks better IMHO.
When CI gods gives the green light I'll merge.
We can change the citation instructions style in the future I guess.

@santisoler santisoler merged commit a224c98 into master Oct 27, 2021
@santisoler santisoler deleted the block-averaged-sources branch October 27, 2021 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Idea or request for a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement block-averaged equivalent sources in EQLHarmonic
2 participants