Skip to content

Commit

Permalink
Angstrom to nanometers
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielelanaro committed Jan 14, 2015
1 parent 534a9e3 commit faadaf9
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 693 deletions.
2 changes: 1 addition & 1 deletion chemlab/qc/wavefunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def molecular_orbital(coords, mocoeffs, gbasis):
# Making a closure
def f(x, y, z, coords=coords, mocoeffs=mocoeffs, gbasis=gbasis):
# The other functions take nanometers
return sum(c * bf(x * 10, y * 10, z * 10) for c, bf in zip(mocoeffs, getbfs(coords, gbasis)))
return sum(c * bf(x * 10, y*10, z*10) for c, bf in zip(mocoeffs, getbfs(coords * 10, gbasis)))

return f

Expand Down

0 comments on commit faadaf9

Please sign in to comment.