Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
[featurizer] fix #225
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed Apr 11, 2015
1 parent 8d4bce5 commit d6720d5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pyemma/coordinates/data/featurizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def _describe_atom(topology, index):
:param index:
:return:
"""
assert isinstance(index, int)
at = topology.atom(index)
return "%s %i %s %i" % (at.residue.name, at.residue.index, at.name, at.index)

Expand Down Expand Up @@ -319,11 +320,13 @@ def __init__(self, top):

def describe(self):
top = self.topology
labels_phi = ["PHI %s" % _describe_atom(top, ires)
for ires in self._phi_inds]
labels_phi = ["PHI %s" % _describe_atom(top, i)
for ires in self._phi_inds
for i in ires]

labels_psi = ["PSI %s" % _describe_atom(top, ires)
for ires in self._psi_inds]
labels_psi = ["PSI %s" % _describe_atom(top, i)
for ires in self._psi_inds
for i in ires]

return labels_phi + labels_psi

Expand Down

0 comments on commit d6720d5

Please sign in to comment.