-
Notifications
You must be signed in to change notification settings - Fork 17
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
Make SOAP initialization more intuitive w.r.t. species lists #353
base: master
Are you sure you want to change the base?
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.
Don't you think |
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
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>
.
|
find it confusing when variable name contains a data type and also accepts other data types. I would go with something as |
Fix #350
In particular, merge the
expansion_by_species_method
andglobal_species
keys 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 lint
on the project, ensure it passesmake pretty-cpp
andmake pretty-python
, check that theauto-formatting is sensible
own branch