Skip to content

Commit

Permalink
syntax cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Nov 22, 2015
1 parent 0d9c4df commit 28b6ca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions biopandas/pandas_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from urllib.request import urlopen
from urllib.error import HTTPError, URLError
except ImportError:
from urllib2 import urlopen, Request, HTTPError, URLError
from urllib2 import urlopen, HTTPError, URLError
from .engines import pdb_records

class PandasPDB(object):
Expand Down Expand Up @@ -73,7 +73,7 @@ def rmsd(df1, df2, s='no hydrogen'):

total = ((df1['x_coord'] - df2['x_coord'])**2 +
(df1['y_coord'] - df2['y_coord'])**2 +
(df1['z_coord'] - df2['z_coord'])**2) +
(df1['z_coord'] - df2['z_coord'])**2)
rmsd = round(( total.sum() / df1.shape[0] )**0.5, 4)
return rmsd

Expand Down

0 comments on commit 28b6ca9

Please sign in to comment.