Skip to content

Commit

Permalink
Define ang2bohr conversion factor
Browse files Browse the repository at this point in the history
  • Loading branch information
FarnazH committed Jan 5, 2024
1 parent 3dc9a72 commit 078a98e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/grid/atomgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,8 @@ def from_preset(
if atnum in _DEFAULT_POWER_RTRANSFORM_PARAMS:
rmin, rmax, npt = _DEFAULT_POWER_RTRANSFORM_PARAMS[int(atnum)]
# Convert angstrom to atomic units
rmin = rmin * (
scipy.constants.angstrom / scipy.constants.value("atomic unit of length")
)
rmax = rmax * (
scipy.constants.angstrom / scipy.constants.value("atomic unit of length")
)
ang2bohr = scipy.constants.angstrom / scipy.constants.value("atomic unit of length")
rmin, rmax = rmin * ang2bohr, rmax * ang2bohr
onedgrid = UniformInteger(npt)
rgrid = PowerRTransform(rmin, rmax).transform_1d_grid(onedgrid)
else:
Expand Down

0 comments on commit 078a98e

Please sign in to comment.