Skip to content

Commit

Permalink
Merge pull request #408 from MDAnalysis/missedcamelcase
Browse files Browse the repository at this point in the history
Missed camelCase fix
  • Loading branch information
richardjgowers committed Sep 4, 2015
2 parents e044ddd + ed31912 commit 06fbc36
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package/MDAnalysis/core/AtomGroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2567,7 +2567,7 @@ def rotateby(self, angle, axis, point=None):
self.transform(M)
return M

def align_principalAxis(self, axis, vector):
def align_principal_axis(self, axis, vector):
"""Align principal axis with index *axis* with *vector*.
:Arguments:
Expand All @@ -2581,7 +2581,7 @@ def align_principalAxis(self, axis, vector):
To align the long axis of a channel (the first principal axis,
i.e. *axis* = 0) with the z-axis::
u.atoms.align_principalAxis(0, [0,0,1])
u.atoms.align_principal_axis(0, [0,0,1])
u.atoms.write("aligned.pdb")
"""
p = self.principal_axes()[axis]
Expand All @@ -2591,6 +2591,10 @@ def align_principalAxis(self, axis, vector):
#print "axis = %r, angle = %f deg" % (ax, angle)
return self.rotateby(angle, ax)

align_principalAxis = deprecate(align_principal_axis,
old_name='align_principalAxis',
new_name='align_principal_axis')

def pack_into_box(self, box=None, inplace=True):
r"""Shift all atoms in this group to be within the primary unit cell.
Expand Down

0 comments on commit 06fbc36

Please sign in to comment.