Skip to content

Revert rotate default to before #1022#1242

Merged
orbeckst merged 4 commits intoMDAnalysis:developfrom
kain88-de:rotate-fix
Mar 16, 2017
Merged

Revert rotate default to before #1022#1242
orbeckst merged 4 commits intoMDAnalysis:developfrom
kain88-de:rotate-fix

Conversation

@kain88-de
Copy link
Copy Markdown
Member

@kain88-de kain88-de commented Mar 13, 2017

Fixes #1022

Changes made in this Pull Request:

  • ag.rotate rotates around 0, 0, 0 again.

This version now is good. It keeps old code working and it allows me to quickly check the center of rotation and change it.

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

MMTF_gz = resource_filename(__name__, 'data/5KIH.mmtf.gz')

ALIGN_BOUND = resource_filename(__name__, 'data/analysis/align_bound.pdb.gz')
ALIGN_UNBOUND = resource_filename(__name__, 'data/analysis/align_unbound.pdb.gz')
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any other two protein datafiles we already have and could use for this test? I didn't find any skipping over the list.

.. math::

\mathbf{x}' = \mathsf{R}\mathbf{x}
By default rotates around center of origin ``point=(0, 0, 0)``.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be worth adding a comment how to rotate around the COM of the AG as a hint? Ie how to get the behaviour that you wanted to implement as default

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added in the notes now how once can chose a different rotation center. For my original case it is already good that the paramter list gives me the option and tells me the default is 0, 0, 0

Copy link
Copy Markdown
Member

@orbeckst orbeckst left a 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.

To not break a lot of old code restore the old behavior of rotate to
use (0, 0, 0) as center of the rotation.
This aligns a partial universe of two proteins.
@orbeckst
Copy link
Copy Markdown
Member

Can I merge?

@kain88-de
Copy link
Copy Markdown
Member Author

Sure.

@orbeckst orbeckst self-assigned this Mar 16, 2017
@orbeckst orbeckst merged commit f3db4fa into MDAnalysis:develop Mar 16, 2017
@kain88-de kain88-de deleted the rotate-fix branch April 10, 2017 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants