Skip to content

Commit

Permalink
fixed numpy -> np in LeafletFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
orbeckst committed Oct 9, 2015
1 parent a626960 commit fdcbe82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Fixes
keyword argument Universe(..., dt=<dt>)
* Fixed a bug in topology.core.guess_atom_element where a
single digit atom name would raise an IndexError (#476)
* Fixed numpy -> np in LeafletFinder

10/04/15 kain88-de, richardjgowers, dotsdl, sseyler, orbeckst, jbarnoud

Expand Down
2 changes: 1 addition & 1 deletion package/MDAnalysis/analysis/leaflet.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _get_graph(self):

def _get_components(self):
"""Return connected components (as sorted numpy arrays), sorted by size."""
return [numpy.sort(component) for component in NX.connected_components(self.graph)]
return [np.sort(component) for component in NX.connected_components(self.graph)]

def update(self, cutoff=None):
"""Update components, possibly with a different *cutoff*"""
Expand Down

0 comments on commit fdcbe82

Please sign in to comment.