Skip to content

Commit

Permalink
Fix two more lgtm.com alerts.
Browse files Browse the repository at this point in the history
  • Loading branch information
f3rmion committed Mar 1, 2021
1 parent 806c2e1 commit 7d02fdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/kallisto/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ def vdw(config, inp: str, out: click.File, chrg: int, vdwtype: str, angstrom: bo
else:
scale = 1.0

vdw = np.zeros(shape=(nat,), dtype=np.float64)
vdw = molecule.get_vdw(chrg, vdwtype, scale)
for i in range(nat):
verbosePrinter(config.verbose, vdw[i], out)
Expand Down
10 changes: 5 additions & 5 deletions src/kallisto/rmsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,13 +399,13 @@ def exchangeSubstructure(
# reference shift
refShift = getRodriguezRotation(partner, origin, partner, theta)
shift = outxyz[0, :] - refShift
for i in range(newnat):
outxyz2[i, :] = getRodriguezRotation(
outxyz[i, :], origin, partner, theta,
for j in range(newnat):
outxyz2[j, :] = getRodriguezRotation(
outxyz[j, :], origin, partner, theta,
)
outxyz2[i, :] += shift
outxyz2[j, :] += shift

atom = Atom(symbol=newat[i], position=outxyz2[i, :])
atom = Atom(symbol=newat[j], position=outxyz2[j, :])
atoms.append(atom)
else:
for j in range(newnat):
Expand Down

0 comments on commit 7d02fdf

Please sign in to comment.