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

mnt: changed only= keyword arguments to what= #542

Merged
merged 3 commits into from
Feb 27, 2023

Commits on Feb 27, 2023

  1. mnt: changed only= keyword arguments to what=

    This is to unify interfaces that has these kinds of arguments.
    It affects Geometry|SuperCell.rotate and some tbtrans siles.
    
    To accommodate backwards compatibility for some time I have
    added a function to decorate methods enabling a keyword argument
    and replacing the *new* keyword argument with the old keyword argument.
    I believe users who use the old argument are not aware of the new one
    and hence it makes more sense.
    A deprecation warning is also issued.
    
    The default for Geometry.rotate is now also changed depending on
    whether atoms argument is supplied.
    - atoms is None: what="xyz+abc"
    - else what="xyz"
    when doing sub-rotations it makes more sense to only rotate the
    atomic coordinates, while rotations of everything makes more sense
    to also rotate the lattice vectors.
    
    Signed-off-by: Nick Papior <[email protected]>
    zerothi committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    36c069b View commit details
    Browse the repository at this point in the history
  2. mnt: ensured deprecation warnings are shown

    Signed-off-by: Nick Papior <[email protected]>
    zerothi committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    450b6fe View commit details
    Browse the repository at this point in the history
  3. doc: improved documentation for the combinations of arguments

    Signed-off-by: Nick Papior <[email protected]>
    zerothi committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    a61ee95 View commit details
    Browse the repository at this point in the history