Skip to content

Commit 6f6fa1a

Browse files
author
Uthpala Herath
committed
Prepare for release 1.2.25
1 parent b43d399 commit 6f6fa1a

File tree

11 files changed

+16
-13
lines changed

11 files changed

+16
-13
lines changed

MechElastic.egg-info/PKG-INFO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Metadata-Version: 1.1
22
Name: MechElastic
3-
Version: 1.2.23
3+
Version: 1.2.24
44
Summary: A Python library to calculate elastic properties of materials.
55
Home-page: https://github.com/romerogroup/MechElastic
66
Author: Sobhit Singh, Logan Lang, Viviana Dovale-Farelo, Uthpala Herath, Pedram Tavadze, François-Xavier Coudert, Aldo H. Romero
77
Author-email: [email protected]
88
License: LICENSE.txt
9-
Download-URL: https://github.com/romerogroup/MechElastic/archive/1.2.23.tar.gz
9+
Download-URL: https://github.com/romerogroup/MechElastic/archive/1.2.24.tar.gz
1010
Description: UNKNOWN
1111
Platform: UNKNOWN

build/lib/mechelastic/calculate_elastic.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def calculate_elastic(
2020
code="vasp",
2121
anaddbfile=None,
2222
qe_outfile=None,
23+
qe_infile= None,
2324
adjust_pressure=True,
2425
verbose=True,
2526
outfile="elastic_properties.txt",
@@ -46,6 +47,8 @@ def calculate_elastic(
4647
Path to the DDB file (applicable only in abinit). The default is None.
4748
qe_outfile : str, optional
4849
Path to the Quantum Espresso output file. The default is None.
50+
qe_infile : str, optional
51+
Path to the Quantum Espresso input file. The default is None.
4952
adjust_pressure : bool, optional
5053
To adjust the cell pressure according to the output file. The default is True.
5154
verbose : str, optional
@@ -61,7 +64,7 @@ def calculate_elastic(
6164
6265
"""
6366
# Check if infile is present
64-
if not os.path.exists(infile):
67+
if not os.path.exists(infile) and code == "vasp":
6568
print("%s doesn't exist. Exiting." % infile)
6669
sys.exit()
6770

@@ -91,13 +94,13 @@ def calculate_elastic(
9194
lattice_constant = output.lattice_constant
9295

9396
elif code == "qe_ElaStic":
94-
output = QE_ElaStic_Parser(outfile=qe_outfile, infile=infile)
97+
output = QE_ElaStic_Parser(outfile=qe_outfile, infile=qe_infile)
9598
elastic_tensor = output.elastic_tensor
9699
structure = output.structure
97100
lattice_constant = output.lattice_constant
98101

99102
elif code == "qe_thermo_pw":
100-
output = QE_thermo_pw_Parser(outfile=qe_outfile, infile=infile)
103+
output = QE_thermo_pw_Parser(outfile=qe_outfile, infile=qe_infile)
101104
elastic_tensor = output.elastic_tensor
102105
structure = output.structure
103106
lattice_constant = output.lattice_constant

build/lib/mechelastic/parsers/abinitparser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _parse_output(self):
167167

168168
print("\nPrinting Cij matrix as read from Abinit DDB output.\n")
169169
np.set_printoptions(precision=4, suppress=True)
170-
printer.printMatrix(c)
170+
printer.print_matrix(c)
171171

172172
self.elastic_tensor = c.copy()
173173

@@ -182,7 +182,7 @@ def _parse_output(self):
182182

183183
np.set_printoptions(precision=3, suppress=True)
184184

185-
printer.printMatrix(self.elastic_tensor)
185+
printer.print_matrix(self.elastic_tensor)
186186

187187
print(
188188
(

build/lib/mechelastic/parsers/qe_ElaStic_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def _parse_files(self):
362362
print("\nPrinting Cij matrix as read from outfile (GPa)\n")
363363
self.elastic_tensor = c.copy()
364364
np.set_printoptions(precision=3, suppress=True)
365-
printer.printMatrix(self.elastic_tensor)
365+
printer.print_matrix(self.elastic_tensor)
366366

367367
self.compaliance_tensor = np.linalg.inv(self.elastic_tensor)
368368

build/lib/mechelastic/parsers/qe_thermo_pw_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def _parse_files(self):
362362
print("\nPrinting Cij matrix as read from outfile (GPa)\n")
363363
self.elastic_tensor = c.copy()
364364
np.set_printoptions(precision=3, suppress=True)
365-
printer.printMatrix(self.elastic_tensor)
365+
printer.print_matrix(self.elastic_tensor)
366366

367367
self.compaliance_tensor = np.linalg.inv(self.elastic_tensor)
368368

build/lib/mechelastic/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# THIS FILE IS GENERATED FROM MECHELASTIC SETUP.PY.
33
name = 'MechElastic'
4-
version = '1.2.23'
4+
version = '1.2.24'
55
description = 'A Python library to calculate elastic properties of materials. '
66
url = 'https://github.com/romerogroup/MechElastic'
77
author = 'Sobhit Singh, Logan Lang, Viviana Dovale-Farelo, Uthpala Herath, Pedram Tavadze, François-Xavier Coudert, Aldo H. Romero'
97.5 KB
Binary file not shown.

dist/MechElastic-1.2.24.tar.gz

72.3 KB
Binary file not shown.

mechelastic/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# THIS FILE IS GENERATED FROM MECHELASTIC SETUP.PY.
33
name = 'MechElastic'
4-
version = '1.2.23'
4+
version = '1.2.24'
55
description = 'A Python library to calculate elastic properties of materials. '
66
url = 'https://github.com/romerogroup/MechElastic'
77
author = 'Sobhit Singh, Logan Lang, Viviana Dovale-Farelo, Uthpala Herath, Pedram Tavadze, François-Xavier Coudert, Aldo H. Romero'

setup.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "MechElastic",
3-
"version": "1.2.24",
3+
"version": "1.2.25",
44
"description": "A Python library to calculate elastic properties of materials. ",
55
"author": "Sobhit Singh, Logan Lang, Viviana Dovale-Farelo, Uthpala Herath, Pedram Tavadze, François-Xavier Coudert, Aldo H. Romero",
66
"email": "[email protected]",
77
"url": "https://github.com/romerogroup/MechElastic",
8-
"download_url": "https://github.com/romerogroup/MechElastic/archive/1.2.24.tar.gz",
8+
"download_url": "https://github.com/romerogroup/MechElastic/archive/1.2.25.tar.gz",
99
"status": "development",
1010
"copyright": "Copyright 2021",
1111
"date": "Sep 22nd, 2021"

0 commit comments

Comments
 (0)