Skip to content

Commit

Permalink
Merge branch 'master' of github.com:materialsproject/pymatgen
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Jun 14, 2016
2 parents d8e2b69 + f461700 commit 877e90d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymatgen/io/gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
from pymatgen.core import Element, Molecule, Composition
from monty.io import zopen
from pymatgen.util.coord_utils import get_angle
import pymatgen.core.physical_constants as cst
import scipy.constants as cst

HARTREE_TO_ELECTRON_VOLT = 1/cst.physical_constants["electron volt-hartree relationship"][0]

def read_route_line(route):
"""
Expand Down Expand Up @@ -940,7 +941,7 @@ def get_scan_plot(self, coords=None):
plt.ylabel("Energy / eV")

e_min = min(d["energies"])
y = [(e - e_min) * cst.HARTREE_TO_ELECTRON_VOLT for e in d["energies"]]
y = [(e - e_min) * HARTREE_TO_ELECTRON_VOLT for e in d["energies"]]

plt.plot(x, y, "ro--")
return plt
Expand Down

0 comments on commit 877e90d

Please sign in to comment.