Skip to content

Commit bd5a5cf

Browse files
committed
Add seekpath to requirements
1 parent 3b4d48b commit bd5a5cf

File tree

7 files changed

+12
-20
lines changed

7 files changed

+12
-20
lines changed

abipy/abio/tests/test_abivars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def test_tricky_inputs(self):
188188
self.assert_equal(inp.structure[1].specie.symbol, "As")
189189
mat = 5.6533 * np.array([0, 1/2, 1/2, 1/2, 0, 1/2, 1/2, 1/2, 0])
190190
mat.shape = (3, 3)
191-
self.assert_equal(inp.structure[1].lattice.matrix, mat)
191+
self.assert_almost_equal(inp.structure[1].lattice.matrix, mat)
192192

193193
# tutorial/input/tbase2_1
194194
# 2 datasets with different natom (should use typat[:1] in 2nd dataset)

abipy/dfpt/tests/test_msqdos.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_from_ddb(self):
4242
assert np.all(abipy_indsym == msqd_dos.structure.indsym)
4343

4444
cif_string = msqd_dos.get_cif_string(temp=300)
45-
#print("cif_string:\n", cif_string)
45+
print("cif_string:\n", cif_string)
4646

4747
self.assertMultiLineEqual(cif_string, """\
4848
# generated using pymatgen
@@ -98,16 +98,6 @@ def test_from_ddb(self):
9898
O7 0.01126 0.01922 0.01356 0.00412 -0.00249 0.00765
9999
O8 0.01922 0.01518 0.01356 -0.00661 -0.00412 0.01157""")
100100

101-
#Si0 0.00850 0.00695 0.00611 -0.00019 -0.00009 0.00348
102-
#Si1 0.00850 0.00850 0.00611 0.00009 -0.00009 0.00502
103-
#Si2 0.00695 0.00850 0.00611 0.00009 0.00019 0.00348
104-
#O3 0.01916 0.01120 0.01353 0.00249 -0.00411 0.00762
105-
#O4 0.01120 0.01512 0.01353 -0.00660 -0.00249 0.00358
106-
#O5 0.01512 0.01916 0.01353 0.00411 0.00660 0.01153
107-
#O6 0.01512 0.01120 0.01353 0.00249 0.00660 0.00358
108-
#O7 0.01120 0.01916 0.01353 0.00411 -0.00249 0.00762
109-
#O8 0.01916 0.01512 0.01353 -0.00660 -0.00411 0.01153""")
110-
111101
# Write CIF file with U_cif tensor
112102
filepath = msqd_dos.write_cif_file(filepath=None, temp=300)
113103
assert filepath.endswith(".cif")

abipy/dfpt/tests/test_vzsisa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_vzsisa(self):
7070
self.assert_almost_equal(vols, [40.2445043, 40.4564043])
7171

7272
vols, fits = qha.vol_Einf_Vib2(tstop=tstop, tstart=tstart, num=2)
73-
self.assert_almost_equal(vols, [40.2457091, 40.4461412])
73+
self.assert_almost_equal(vols, [40.2457091, 40.4461412], decimal=5)
7474

7575
vols, fits = qha.vol_Einf_Vib4(tstop=tstop, tstart=tstart, num=2)
7676
self.assert_almost_equal(vols, [40.2456922, 40.4467746])

abipy/dynamics/analyzer.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
e2s = 1.602188**2 # electron charge in Coulomb scaled by 10.d-19**2
4343
kbs = 1.38066 # Boltzmann constant in Joule/K scaled by 10.d-23
4444

45-
#bohr2a = 0.529177
46-
#kBoltzAng10m9 = 1.38066e-02
47-
#kBoltz = 1.38066e-23
4845
kBoltzEv = 8.617333e-05
4946
#nCar = 56 # FIXME: Harcoded
5047

@@ -420,6 +417,7 @@ def __init__(self,
420417
cart_positions: Cartesian positions in Ang. Default shape: (nt, natom, 3).
421418
ucmats: Array of lattice matrix of every step. Used for NPT.
422419
For NVT-AIMD, the lattice at each time step is set to the lattice in the "structure" argument.
420+
engine: String defining the engine used to produce the MD trajectory.
423421
pos_order: "tac" if cart_positions has shape (nt, natom, 3).
424422
"atc" if cart_positions has shape (natom, nt, 3).
425423
evp_df:
@@ -1761,9 +1759,10 @@ class ArrheniusEntry:
17611759

17621760
@classmethod
17631761
def from_file(cls, filepath: PathLike, key, mpl_style) -> ArrheniusEntry:
1764-
1765-
# Read data in CSV format. Assuming header with at least the following entries:
1766-
# temperature,diffusion,err_diffusion,volume,symbol,composition
1762+
"""
1763+
Read data in CSV format. Assuming header with at least the following entries:
1764+
temperature,diffusion,err_diffusion,volume,symbol,composition
1765+
"""
17671766
try:
17681767
df = pd.read_csv(filepath, skipinitialspace=True)
17691768

@@ -1993,7 +1992,7 @@ def plot(self, thinvt_arange=None, what="diffusion", ncar=None, colormap="jet",
19931992
what: Selects the quantity to plot. Possibile values: "diffusion", "sigma", "tsigma".
19941993
ncar: Number of carriers. Required if what is "sigma" or "tsigma".
19951994
colormap: Colormap used to select the color if entry.mpl_style does not provide it.
1996-
with_t: True to dd a twin axes with the value of T
1995+
with_t: True to add a twin axes with the value of T
19971996
text:
19981997
ax: |matplotlib-Axes| or None if a new figure should be created.
19991998
fontsize: fontsize for legends and titles.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ dependencies = [
5858
"packaging",
5959
"pandas",
6060
"phonopy<=2.31.2",
61+
"seekpath",
6162
"plotly",
6263
"pydispatcher>=2.0.5",
6364
#"pymatgen==v2024.10.29",

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ ipython
2323
chart-studio
2424
click
2525
phonopy<=2.31.2
26+
seekpath
2627
ase
2728
# TODO remove after https://github.com/materialsproject/emmet/issues/768 is fixed
2829
pydantic<2.0.0

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def cleanup():
168168
"chart-studio",
169169
"click",
170170
"phonopy<=2.31.2",
171+
"seekpath",
171172
"ase",
172173
#"custodian",
173174
#pydantic,

0 commit comments

Comments
 (0)