Skip to content

Commit

Permalink
Prepare for release 1.2.25
Browse files Browse the repository at this point in the history
  • Loading branch information
uthpalaherath committed Sep 22, 2021
1 parent b43d399 commit 6f6fa1a
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions MechElastic.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Metadata-Version: 1.1
Name: MechElastic
Version: 1.2.23
Version: 1.2.24
Summary: A Python library to calculate elastic properties of materials.
Home-page: https://github.com/romerogroup/MechElastic
Author: Sobhit Singh, Logan Lang, Viviana Dovale-Farelo, Uthpala Herath, Pedram Tavadze, François-Xavier Coudert, Aldo H. Romero
Author-email: [email protected]
License: LICENSE.txt
Download-URL: https://github.com/romerogroup/MechElastic/archive/1.2.23.tar.gz
Download-URL: https://github.com/romerogroup/MechElastic/archive/1.2.24.tar.gz
Description: UNKNOWN
Platform: UNKNOWN
9 changes: 6 additions & 3 deletions build/lib/mechelastic/calculate_elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def calculate_elastic(
code="vasp",
anaddbfile=None,
qe_outfile=None,
qe_infile= None,
adjust_pressure=True,
verbose=True,
outfile="elastic_properties.txt",
Expand All @@ -46,6 +47,8 @@ def calculate_elastic(
Path to the DDB file (applicable only in abinit). The default is None.
qe_outfile : str, optional
Path to the Quantum Espresso output file. The default is None.
qe_infile : str, optional
Path to the Quantum Espresso input file. The default is None.
adjust_pressure : bool, optional
To adjust the cell pressure according to the output file. The default is True.
verbose : str, optional
Expand All @@ -61,7 +64,7 @@ def calculate_elastic(
"""
# Check if infile is present
if not os.path.exists(infile):
if not os.path.exists(infile) and code == "vasp":
print("%s doesn't exist. Exiting." % infile)
sys.exit()

Expand Down Expand Up @@ -91,13 +94,13 @@ def calculate_elastic(
lattice_constant = output.lattice_constant

elif code == "qe_ElaStic":
output = QE_ElaStic_Parser(outfile=qe_outfile, infile=infile)
output = QE_ElaStic_Parser(outfile=qe_outfile, infile=qe_infile)
elastic_tensor = output.elastic_tensor
structure = output.structure
lattice_constant = output.lattice_constant

elif code == "qe_thermo_pw":
output = QE_thermo_pw_Parser(outfile=qe_outfile, infile=infile)
output = QE_thermo_pw_Parser(outfile=qe_outfile, infile=qe_infile)
elastic_tensor = output.elastic_tensor
structure = output.structure
lattice_constant = output.lattice_constant
Expand Down
4 changes: 2 additions & 2 deletions build/lib/mechelastic/parsers/abinitparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def _parse_output(self):

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

self.elastic_tensor = c.copy()

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

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

printer.printMatrix(self.elastic_tensor)
printer.print_matrix(self.elastic_tensor)

print(
(
Expand Down
2 changes: 1 addition & 1 deletion build/lib/mechelastic/parsers/qe_ElaStic_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def _parse_files(self):
print("\nPrinting Cij matrix as read from outfile (GPa)\n")
self.elastic_tensor = c.copy()
np.set_printoptions(precision=3, suppress=True)
printer.printMatrix(self.elastic_tensor)
printer.print_matrix(self.elastic_tensor)

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

Expand Down
2 changes: 1 addition & 1 deletion build/lib/mechelastic/parsers/qe_thermo_pw_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def _parse_files(self):
print("\nPrinting Cij matrix as read from outfile (GPa)\n")
self.elastic_tensor = c.copy()
np.set_printoptions(precision=3, suppress=True)
printer.printMatrix(self.elastic_tensor)
printer.print_matrix(self.elastic_tensor)

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

Expand Down
2 changes: 1 addition & 1 deletion build/lib/mechelastic/version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# THIS FILE IS GENERATED FROM MECHELASTIC SETUP.PY.
name = 'MechElastic'
version = '1.2.23'
version = '1.2.24'
description = 'A Python library to calculate elastic properties of materials. '
url = 'https://github.com/romerogroup/MechElastic'
author = 'Sobhit Singh, Logan Lang, Viviana Dovale-Farelo, Uthpala Herath, Pedram Tavadze, François-Xavier Coudert, Aldo H. Romero'
Expand Down
Binary file added dist/MechElastic-1.2.24-py3-none-any.whl
Binary file not shown.
Binary file added dist/MechElastic-1.2.24.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion mechelastic/version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# THIS FILE IS GENERATED FROM MECHELASTIC SETUP.PY.
name = 'MechElastic'
version = '1.2.23'
version = '1.2.24'
description = 'A Python library to calculate elastic properties of materials. '
url = 'https://github.com/romerogroup/MechElastic'
author = 'Sobhit Singh, Logan Lang, Viviana Dovale-Farelo, Uthpala Herath, Pedram Tavadze, François-Xavier Coudert, Aldo H. Romero'
Expand Down
4 changes: 2 additions & 2 deletions setup.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "MechElastic",
"version": "1.2.24",
"version": "1.2.25",
"description": "A Python library to calculate elastic properties of materials. ",
"author": "Sobhit Singh, Logan Lang, Viviana Dovale-Farelo, Uthpala Herath, Pedram Tavadze, François-Xavier Coudert, Aldo H. Romero",
"email": "[email protected]",
"url": "https://github.com/romerogroup/MechElastic",
"download_url": "https://github.com/romerogroup/MechElastic/archive/1.2.24.tar.gz",
"download_url": "https://github.com/romerogroup/MechElastic/archive/1.2.25.tar.gz",
"status": "development",
"copyright": "Copyright 2021",
"date": "Sep 22nd, 2021"
Expand Down
Binary file modified sphinx/_build/doctrees/environment.pickle
Binary file not shown.

0 comments on commit 6f6fa1a

Please sign in to comment.