-
Notifications
You must be signed in to change notification settings - Fork 69
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
Rename equivalent sources classes #255
Conversation
Add test function that checks if predictions are equivalent and if FutureWarning is raised on initialization.
Add test function that checks if predictions are equivalent and if FutureWarning is raised on initialization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍 I like the new names. Just need to double check that all instances of “layer” have been replaced.
Co-authored-by: Leonardo Uieda <[email protected]>
Thanks @leouieda for the review. Yes, I need to double check if I've changed "layer" everywhere else (besides the docs, which need some work). I do have some doubts: we used to use One more thing: I was thinking to leave the "equivalent layer" name somewhere in the docs so it could be indexed by search engines, just in case someone is looking for an "equivalent layer" implementation instead of an "equivalent sources" one. |
That's a good point about the search terms. It may be good to leave it in a tutorial or the docstring as something like "equivalent sources (a.k.a. equivalent layer)" or something like that.
How about |
Replace EQLHarmonic and EQLHarmonicSpherical with EquivalentSources and EquivalentSourcesSph, respectively. Change every use of "equivalent layer" to "equivalent sources". Use the eqs variable for the gridder instances.
This reverts commit 85e15e8.
Rename
EQLHarmonic
andEQLHarmonicSpherical
classes toEquivalentSources
and
EquivalentSourcesSph
, respectively. Refactor files organization: renameequivalent_layer
directory toequivalent_sources
and the sources files tocartesian.py
andspherical.py
. Split the file with the tests function bycoordinate system: Cartesian and spherical. Rename some tests functions. Add
new child classes
EQLHarmonic
andEQLHarmonicSph
for backwardscompatibility that raise a
FutureWarning
when initialized. Update galleryexamples and documentation pages to use "equivalent sources" instead of
"equivalent layer". Mention "equivalent layer" in one gallery example though.
Rename
eql
variables in examples and tests witheqs
.TODO:
eql
variables in the examples and testsFixes #250