-
Notifications
You must be signed in to change notification settings - Fork 648
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
ag.rotate should rotate around selection center of mass/geometry #1022
Comments
We could also allow to give an arbitrary origin to this name selection |
@kain88-de there is also currently |
But it doesn't accept a rotation/transformation matrix. Besides I spend today hours until I remembered this fact about rotate. Then that |
I noticed today (after around one hour of debugging) that this change broke I will also include a new alignment test that shows the failure this change introduced. |
To not break a lot of old code restore the old behavior of rotate to use (0, 0, 0) as center of the rotation.
To not break a lot of old code restore the old behavior of rotate to use (0, 0, 0) as center of the rotation.
Revert rotate default to before #1022
Expected behaviour
If I do
ag.rotate(R)
I would expect that I can rotate the protein I selected around it's center of mass/geometry. I would propose we add a kwargorigin
for this. This point determines the origin or the rotation and we default to the center of geometry (or lab for backwards compatibility)Actual behaviour
The center of the rotation is the center of the coordinate system. This means instead of just an internal rotation I can rotate protein in my lab system to another place.
Currently version of MDAnalysis:
(run
python -c "import MDAnalysis as mda; print(mda.__version__)"
)0.16.0dev
The text was updated successfully, but these errors were encountered: