Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #196

Merged
merged 104 commits into from
Aug 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
03fa5ab
Image augmentation.
knc6 May 30, 2021
30fd296
Augment images.
knc6 May 31, 2021
7c70aa0
Augment images.
knc6 May 31, 2021
f51b99e
Specie update.
knc6 May 31, 2021
a057253
Merge branch 'develop' of https://github.com/usnistgov/jarvis into de…
knc6 May 31, 2021
e026122
Add Latt2D, STM image (b-1) fix, image augmentation fix.
knc6 Jun 1, 2021
a6fdc87
Add Latt2D, STM image (b-1) fix, image augmentation fix.
knc6 Jun 1, 2021
f386efe
Update conf.py
knc6 Jun 1, 2021
5910e09
Update conf.py
knc6 Jun 1, 2021
4878026
Multi-output graph bacthing.
knc6 Jun 7, 2021
e52fda3
Add EDOS dataset.
knc6 Jun 7, 2021
1372a4a
Temp.
knc6 Jun 8, 2021
1ca37ce
Merge branch 'develop' of https://github.com/usnistgov/jarvis into de…
knc6 Jun 8, 2021
9fa0101
Add circuit maker.
knc6 Jun 12, 2021
2fb8b4d
Add circuit maker.
knc6 Jun 12, 2021
3a47dfd
NELECT update.
knc6 Jun 19, 2021
81d21cf
Version update, more DBs added.
knc6 Jun 19, 2021
430e1fc
Fix CHGCAR vasp.
knc6 Jun 20, 2021
d7a2d14
Added volumetric reshape for CHGCAR.
knc6 Jun 20, 2021
e94fc1c
Tmp
knc6 Jun 20, 2021
dcc5301
Merge branch 'develop' of https://github.com/usnistgov/jarvis into de…
knc6 Jun 20, 2021
f266490
Merge branch 'master' into develop
knc6 Jun 20, 2021
4da1b75
Merge branch 'develop' of https://github.com/usnistgov/jarvis into de…
knc6 Jun 21, 2021
be77798
Tershoff Hamman update, specie update.
knc6 Jun 23, 2021
e08c2f7
Add crop from center in STM.
knc6 Jun 23, 2021
794fb15
Add Fourier transfor in STM.
knc6 Jun 23, 2021
ad5c765
Update STM pytest.
knc6 Jun 23, 2021
a8475d8
Add DPI to STM.
knc6 Jun 23, 2021
cf5a47a
Zeo++ added, Atoms cif update, STM update, random vacancy maker added.
knc6 Jul 1, 2021
5eb67bf
Merge branch 'develop' of https://github.com/usnistgov/jarvis into de…
knc6 Jul 1, 2021
8507a0c
Atoms tempfile fix, Potcar from atoms module added.
knc6 Jul 1, 2021
cf5da8f
Test for docs.
knc6 Jul 1, 2021
b97b86b
C2DB link update, docs Atoms update.
knc6 Jul 1, 2021
a8acf56
C2DB link update, docs Atoms update.
knc6 Jul 1, 2021
cc1e273
Version update, COD DB, QM9 JCTC DB added.
knc6 Jul 6, 2021
436c668
Merge branch 'develop' of https://github.com/usnistgov/jarvis into de…
knc6 Jul 6, 2021
bdd9c76
Merge branch 'master' into develop
knc6 Jul 6, 2021
a62f845
Compostion bug fix, elemental descriptor added.
knc6 Jul 6, 2021
52cd71c
Merge branch 'master' into develop
knc6 Jul 6, 2021
127f9bb
Develop (#186)
tavazza Jul 8, 2021
686a23d
Delete __init__.py
knc6 Jul 8, 2021
97992df
stylecss added.
knc6 Jul 8, 2021
3598b0c
stylecss added.
knc6 Jul 8, 2021
2430cce
Adding extra Makefile/
knc6 Jul 8, 2021
675f161
Remove examples from docs.
knc6 Jul 8, 2021
217c049
Docs update.
knc6 Jul 8, 2021
98ca4c6
Docs update.
knc6 Jul 8, 2021
a776420
Docs update.
knc6 Jul 8, 2021
90b8511
Docs update.
knc6 Jul 8, 2021
880d496
Docs update.
knc6 Jul 8, 2021
cc93938
Docs update.
knc6 Jul 8, 2021
ac3bf7e
Docs update.
knc6 Jul 8, 2021
e706d4a
Docs update.
knc6 Jul 8, 2021
903af3b
Docs update.
knc6 Jul 8, 2021
e2d7216
Docs update.
knc6 Jul 8, 2021
91e00f1
Tutorials update.
knc6 Jul 9, 2021
589d99b
Tutorials docs update.
Jul 11, 2021
ca1d781
Docs update,pdb reader updated.
Jul 12, 2021
28f47fd
Update action_build.yml
knc6 Jul 12, 2021
5c5f698
Update action_build.yml
knc6 Jul 12, 2021
4695a6c
Remove pytraj strong dependencies.
Jul 12, 2021
a0eb5c6
Update docs, Added PDBBind and HPOV datasets.
Jul 12, 2021
7709cdf
Docs update.
Jul 12, 2021
ab105fc
Merge branch 'master' into develop
knc6 Jul 12, 2021
83873dd
Add thcikness to surface builder.
knc6 Jul 17, 2021
dea194a
Surface builder update, Chemical only magpie descriptors added, pdb_c…
knc6 Jul 19, 2021
1883178
Merge branch 'master' into develop
knc6 Jul 19, 2021
753df8c
Typo fix.
knc6 Jul 19, 2021
018d6de
Add names to chem descs.
knc6 Jul 19, 2021
725969c
Lessen hermsolver pytest.
knc6 Jul 19, 2021
78f56dc
Reduced pytest.
knc6 Jul 19, 2021
50b0bad
Reduced pytest.
knc6 Jul 19, 2021
b37ad66
Reduced pytest.
knc6 Jul 19, 2021
4bc6451
Reduced pytest.
knc6 Jul 19, 2021
bd1c657
Reduced pytest.
knc6 Jul 19, 2021
b3c0fd4
No DFT3D
knc6 Jul 19, 2021
f98d74c
Exclude dft_3d dataset for memory issue.
knc6 Jul 19, 2021
75840a3
Update figshare test.
knc6 Jul 19, 2021
0a78d00
Update figshare test.
knc6 Jul 19, 2021
443f8df
Exclude db from coverage.
knc6 Jul 19, 2021
5f9ba7c
Exclude db from coverage.
knc6 Jul 19, 2021
c55018b
Add magpie.json.
knc6 Jul 19, 2021
0b063fd
Merge branch 'master' into develop
knc6 Jul 19, 2021
7523c27
Add magpie.json.
knc6 Jul 19, 2021
ca76cd2
Wien2k bands bug fix.
knc6 Jul 22, 2021
0b72e9f
Wien2k bands bug fix.
knc6 Jul 22, 2021
2bf7159
Update JARVIS-FF,Elastictensor,LAMMPS parse folder, VASP bandstructur…
knc6 Jul 24, 2021
a6d39f2
JFF update.
knc6 Jul 25, 2021
424a7c3
Add JQE_TB3 and hMOF dataset.
knc6 Aug 6, 2021
5c38354
Update LAMMPS module.
knc6 Aug 6, 2021
b2aae72
Update LAMMPS module.
knc6 Aug 6, 2021
6ab3e16
Fix elastic tensor module.
knc6 Aug 6, 2021
b9982e7
Figshare update, docs db name update.
knc6 Aug 7, 2021
e444b00
Merge branch 'master' into develop
knc6 Aug 7, 2021
38a18db
Substitutions.
Aug 10, 2021
6ae2331
Update figshare dft_3d, cfid_3d.
knc6 Aug 18, 2021
26cbd85
Docs data update.
knc6 Aug 18, 2021
780e8ec
Generate substitutions.
knc6 Aug 18, 2021
d0ddb66
Fix merge.
knc6 Aug 18, 2021
0f35770
Lint fix.
knc6 Aug 18, 2021
186eb3d
Merge branch 'master' into develop
knc6 Aug 18, 2021
ae79032
Update DOS.
knc6 Aug 19, 2021
a1dec83
Merge branch 'develop' of https://github.com/usnistgov/jarvis into de…
knc6 Aug 19, 2021
1047f09
Update DOS.
knc6 Aug 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ Documentation

https://jarvis-tools.readthedocs.io

https://jarvis-materials-design.github.io/dbdocs/


Capabilities
-----------------------------------------
Expand Down
4 changes: 3 additions & 1 deletion docs/source/databases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Databases
==================== ========================= =======================================================
Database name Number of data-points Description
==================== ========================= =======================================================
``dft_3d`` 48527 Various 3D materials properties in JARVIS-DFT database
``dft_3d`` 55723 Various 3D materials properties in JARVIS-DFT database
computed with OptB88vdW and TBmBJ methods
``dft_2d`` 1079 Various 2D materials properties in JARVIS-DFT database
computed with OptB88vdW
Expand Down Expand Up @@ -37,6 +37,8 @@ Database name Number of data-points Description
``pdbbind`` 11189 Bio-molecular complexes database from PDBBind v2015
``qmof`` 18321 Bandgaps and total energies of metal organic frameowrks
in QMOF database
``cfid_3d`` 55723 Various 3D materials properties in JARVIS-DFT database
computed with OptB88vdW and TBmBJ methods with CFID
``raw_files`` 144895 Figshare links to download raw calculations VASP files
from JARVIS-DFT
==================== ========================= =======================================================
Expand Down
2 changes: 1 addition & 1 deletion jarvis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Version number."""
__version__ = "2021.08.05"
__version__ = "2021.08.18"
70 changes: 70 additions & 0 deletions jarvis/analysis/defects/substitutions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
"""Modules for making point-defect substituions."""
from jarvis.analysis.structure.spacegroup import Spacegroup3D
from jarvis.core.utils import rand_select
from jarvis.core.atoms import Atoms, get_supercell_dims


def generate_defect(
atoms=None,
enforce_c_size=10.0,
on_conventional_cell=False,
extend=1,
subs_element="Al",
selected_element=None,
):
"""Provide function to generate substitution defects."""
if on_conventional_cell:
atoms = Spacegroup3D(atoms).conventional_standard_structure
if enforce_c_size is not None:
dims = get_supercell_dims(
atoms, enforce_c_size=enforce_c_size, extend=extend
)
supercell_size = [dims[0], dims[1], dims[2]]
# atoms = atoms.make_supercell(supercell_size)
spg = Spacegroup3D(atoms)
wyckoffs = spg._dataset["wyckoffs"]
atoms.props = wyckoffs
supercell = atoms.make_supercell(supercell_size)
props = rand_select(supercell.props)
subs = []
# print(props)
for i, j in props.items():
info = {}
elements = supercell.elements.copy()
if selected_element is not None:
if elements[j] == selected_element:

elements[j] = subs_element

a = Atoms(
lattice_mat=supercell.lattice_mat,
coords=supercell.coords,
cartesian=supercell.cartesian,
elements=elements,
)
info["props"] = props
info["atoms"] = atoms.to_dict()
info["defect_atoms"] = a.to_dict()
info["supercell_size"] = list(supercell_size)
# print(a.elements)
subs.append(info)
else:
elements[j] = subs_element
a = Atoms(
lattice_mat=supercell.lattice_mat,
coords=supercell.coords,
cartesian=supercell.cartesian,
elements=elements,
)
info["props"] = props
info["atoms"] = atoms.to_dict()
info["defect_atoms"] = a.to_dict()
info["supercell_size"] = list(supercell_size)
# print(a.elements)
subs.append(info)
return subs


"""
x = generate_defect(atoms=a, selected_element="Br")
"""
14 changes: 14 additions & 0 deletions jarvis/core/atoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,22 @@ def check_polar(self):
polar = False
return polar

def strain_atoms(self, strain):
"""Apply volumetric strain to atoms."""
# strains=np.arange(0.80,1.2,0.02)
s = np.eye(3) + np.array(strain) * np.eye(3)
lattice_mat = np.array(self.lattice_mat)
lattice_mat = np.dot(lattice_mat, s)
return Atoms(
lattice_mat=lattice_mat,
elements=self.elements,
coords=self.coords,
cartesian=self.cartesian,
)

def apply_strain(self, strain):
"""Apply a strain(e.g. 0.01, [0,0,.01]) to the lattice."""
print("Use strain_atoms instead.")
s = (1 + np.array(strain)) * np.eye(3)
self.lattice_mat = np.dot(self.lattice_mat.T, s).T

Expand Down
2 changes: 1 addition & 1 deletion jarvis/core/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from skimage.util import random_noise
from skimage.filters import gaussian
from PIL import Image as PIL_Image
except Exception as exp:
except Exception:
# print("Install skimage, Pillow.", exp)
pass
# from scipy.ndimage import rotate
Expand Down
18 changes: 9 additions & 9 deletions jarvis/db/figshare.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ def get_db_info():
],
# https://doi.org/10.6084/m9.figshare.6815699
"dft_3d": [
"https://ndownloader.figshare.com/files/28034994",
"d3-5-16-2021.json",
"Obtaining 3D dataset 48k ...",
"https://ndownloader.figshare.com/files/29204826",
"jdft_3d-8-18-2021.json",
"Obtaining 3D dataset 55k ...",
"https://www.nature.com/articles/s41524-020-00440-1",
],
# https://doi.org/10.6084/m9.figshare.6815699
"cfid_3d": [
"https://ndownloader.figshare.com/files/26808914",
"d3-3-12-2021.json",
"Obtaining 3D dataset 43k ...",
"https://ndownloader.figshare.com/files/29205201",
"cfid_3d-8-18-2021.json",
"Obtaining 3D dataset 55k ...",
"https://www.nature.com/articles/s41524-020-00440-1",
],
# https://doi.org/10.6084/m9.figshare.14213522
Expand Down Expand Up @@ -78,9 +78,9 @@ def get_db_info():
],
# https://doi.org/10.6084/m9.figshare.14745327
"edos_pdos": [
"https://ndownloader.figshare.com/files/28501764",
"edos-up_pdos-elast_interp-6-19-2021.json",
"Interpolated electronic total dos spin-up dataset 48k...",
"https://ndownloader.figshare.com/files/29216859",
"edos-up_pdos-elast_interp-8-18-2021.json",
"Interpolated electronic total dos spin-up dataset 55k...",
"https://www.nature.com/articles/s41524-020-00440-1",
],
# https://doi.org/10.6084/m9.figshare.13054247
Expand Down
16 changes: 16 additions & 0 deletions jarvis/tests/testfiles/analysis/defects/test_subs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from jarvis.analysis.defects.substitutions import generate_defect
from jarvis.core.atoms import Atoms
from jarvis.io.vasp.inputs import Poscar
import os


def test_subs():
box = [[2.715, 2.715, 0], [0, 2.715, 2.715], [2.715, 0, 2.715]]
coords = [[0, 0, 0], [0.25, 0.25, 0.25]]
elements = ["Al", "Al"]
Si = Atoms(lattice_mat=box, coords=coords, elements=elements)
v = generate_defect(atoms=Si)


# test_2d()
# test_vacancy()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name="jarvis-tools",
version="2021.08.05",
version="2021.08.18",
long_description=long_d,
install_requires=[
"numpy>=1.19.5",
Expand Down