This repository was archived by the owner on Jan 15, 2026. It is now read-only.
Make SOAP initialization more intuitive w.r.t. species lists#353
Draft
Make SOAP initialization more intuitive w.r.t. species lists#353
Conversation
(it was ignored before if 'expansion_by_species_method' was not set appropriately; this is now done automatically) Fix #350
This replaces the originally separate 'expansion_by_species_method' and 'global_species' keys, which are kept in the C++ backend; the wrapper just provides a more intuitive interface now. Some backwards compatibility is provided; it should be removed after a few months.
Contributor
|
Don't you think |
Contributor
Author
|
No, I deliberately chose a different name to make the switch to the new behaviour clear and be able to warn code trying to use the old options. Also, I really wasn't a fan of the old name; too verbose and technical. As for the new name, why is it a problem that you can pass a string instead of a list? SphericalInvariants(..., species_list="structure wise", ...)reads very well to me; it just says "the species list is defined structure wise". |
Also, fix strangely-meta deprecated deprecation warnings
Contributor
|
duck typing at its best ^_^
…On Mon, 10 May 2021 at 17:48, Max Veit ***@***.***> wrote:
No, I deliberately chose a different name to make the switch to the new
behaviour clear and be able to warn code trying to use the old options.
Also, I really wasn't a fan of the old name; too verbose and technical.
As for the new name, why is it a problem that you can pass a string
instead of a list?
SphericalInvariants(..., species_list="structure wise", ...)
reads very well to me; it just says "the species list is defined structure
wise".
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#353 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIREZ4KACBAWCFOYBPA4PDTM756HANCNFSM44RL5ARA>
.
|
Contributor
|
find it confusing when variable name contains a data type and also accepts other data types. I would go with something as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #350
In particular, merge the
expansion_by_species_methodandglobal_specieskeys in the Python interface, so the confusion that led to the aforementioned issue doesn't happen again.Tasks before review:
formatted correctly (ask @max-veit if you need help with this task).
to verify the fix and catch future regressions as well as similar bugs
elsewhere in the code.
make linton the project, ensure it passesmake pretty-cppandmake pretty-python, check that theauto-formatting is sensible
own branch