Skip to content

Commit 5622625

Browse files
committed
v2.9.8 release.
Former-commit-id: b4c3fe59195799373fe7e99f9260c09794eb1e2c [formerly 8825973] Former-commit-id: 469a22220bc99b4f381328983226b8e366a74923
1 parent c1ddb3d commit 5622625

File tree

6 files changed

+49
-19
lines changed

6 files changed

+49
-19
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
pymatgen.analysis.diffraction package
2+
=====================================
3+
4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
9+
10+
Submodules
11+
----------
12+
13+
pymatgen.analysis.diffraction.xrd module
14+
----------------------------------------
15+
16+
.. automodule:: pymatgen.analysis.diffraction.xrd
17+
:members:
18+
:undoc-members:
19+
:show-inheritance:
20+
21+
22+
Module contents
23+
---------------
24+
25+
.. automodule:: pymatgen.analysis.diffraction
26+
:members:
27+
:undoc-members:
28+
:show-inheritance:

pymatgen/analysis/diffraction/xrd.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ def get_xrd_data(self, structure):
9393
structure: Input structure
9494
9595
Returns:
96-
{XRD data} in the form of [
97-
[two_theta, scaled_intensity, [h, k, l]]
98-
]
96+
{XRD data} in the form of [[two_theta, scaled_intensity, [h, k, l]]]
9997
"""
10098
if self.symprec:
10199
finder = SymmetryFinder(structure, symprec=self.symprec)

pymatgen/analysis/diffusion_analyzer.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def from_structures(cls, structures, specie, temperature,
271271
MSD vs dt. Weights are proportional to 1/dt, since the
272272
number of observations are also proportional to 1/dt (and
273273
hence the variance is proportional to dt)
274-
"""
274+
"""
275275
structure = structures[0]
276276

277277
p = [np.array(s.frac_coords)[:, None] for s in structures]
@@ -446,7 +446,7 @@ def _get_vasprun(args):
446446
def get_extrapolated_diffusivity(temps, diffusivities, new_temp):
447447
"""
448448
Returns (Arrhenius) extrapolated diffusivity at new_temp
449-
449+
450450
Args:
451451
temps ([float]): A sequence of temperatures. units: K
452452
diffusivities ([float]): A sequence of diffusivities (e.g.,
@@ -468,13 +468,13 @@ def get_extrapolated_conductivity(temps, diffusivities, new_temp, structure,
468468
species):
469469
"""
470470
Returns extrapolated mS/cm conductivity.
471-
471+
472472
Args:
473473
temps ([float]): A sequence of temperatures. units: K
474474
diffusivities ([float]): A sequence of diffusivities (e.g.,
475475
from DiffusionAnalyzer.diffusivity). units: cm^2/s
476476
new_temp (float): desired temperature. units: K
477-
structure (structure): structure used for the diffusivity calculation
477+
structure (structure): structure used for the diffusivity calculation
478478
species (string/Specie): conducting species
479479
480480
Returns:
@@ -513,7 +513,7 @@ def get_arrhenius_plot(temps, diffusivities, **kwargs):
513513
# out in base 10 for easier reading of the diffusivity scale,
514514
# but the Arrhenius relationship is in base e).
515515
actv_energy = - w[0] * phyc.k_b / phyc.e * 1e6 * math.log(10)
516-
plt.text(0.6, 0.85, "E$_a$ = {:.0f} meV".format(actv_energy),
516+
plt.text(0.6, 0.85, "E$_a$ = {:.0f} meV".format(actv_energy),
517517
fontsize=30, transform=plt.axes().transAxes)
518518
plt.ylabel("log(D (cm$^2$/s))")
519519
plt.xlabel("1000/T (K$^{-1}$)")

pymatgen/electronic_structure/bandstructure.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,9 @@ def get_band_gap(self):
480480
481481
Returns:
482482
A dict {"energy","direct","transition"}:
483-
- "energy": band gap energy
484-
- "direct": A boolean telling if the gap is direct (True)
485-
or not (False)
486-
- "transition": kpoint labels of the transition (e.g., "\Gamma-X")
483+
"energy": band gap energy
484+
"direct": A boolean telling if the gap is direct or not
485+
"transition": kpoint labels of the transition (e.g., "\Gamma-X")
487486
"""
488487
if self.is_metal():
489488
return {"energy": 0.0, "direct": False, "transition": None}

pymatgen/io/vaspio/vasp_output.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ class Vasprun(object):
129129
in VASP).
130130
131131
.. attribute:: dielectric
132+
132133
The real and imaginary part of the dielectric constant (e.g., computed
133134
by RPA) in function of the energy (frequency). Optical properties (e.g.
134135
absorption coefficient) can be obtained through this.
@@ -138,11 +139,13 @@ class Vasprun(object):
138139
real_partyz,real_partxz]],[[imag_partxx,imag_partyy,imag_partzz,
139140
imag_partxy, imag_partyz, imag_partxz]])
140141
141-
.. atribute:: epsilon_static
142+
.. attribute:: epsilon_static
143+
142144
The static part of the dielectric constant. Present when it's a DFPT run
143145
(LEPSILON=TRUE)
144146
145147
.. attribute:: nionic_steps
148+
146149
The total number of ionic steps. This number is always equal
147150
to the total number of steps in the actual run even if
148151
ionic_step_skip is used.

pymatgen/io/vaspio_set.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -853,15 +853,17 @@ def __init__(self, user_incar_settings=None, ionic=True):
853853
class MPBSHSEVaspInputSet(DictVaspInputSet):
854854
"""
855855
Implementation of a VaspInputSet for HSE band structure computations
856-
Remember that HSE band structures cannot be non-self consistent. So, a band structure
857-
along syymetry lines for instance needs a uniform grid with appropriate weights + weight 0
858-
path in reciprocal space
856+
Remember that HSE band structures cannot be non-self consistent. So, a band
857+
structure along syymetry lines for instance needs a uniform grid with
858+
appropriate weights + weight 0 path in reciprocal space
859+
859860
Args:
860861
user_incar_settings(dict): A dict specifying additional incar
861862
settings
862-
added_kpoints: a list of kpoints (list of 3 number list) with weight 0 added to the run.
863-
The k-points are in fractional coordinates
864-
kpoints_density: the kpoint density of the uniform grid used for the band structure run
863+
added_kpoints: a list of kpoints (list of 3 number list) with weight 0
864+
added to the run. The k-points are in fractional coordinates
865+
kpoints_density: the kpoint density of the uniform grid used for the
866+
band structure run
865867
mode: Line: Generate k-points along symmetry lines for
866868
bandstructure. Uniform: Generate uniform k-points grid
867869

0 commit comments

Comments
 (0)