Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/build_and_test.yml
#	.gitignore
#	defect_finder/BDM.py
#	setup.py
  • Loading branch information
kavanase committed Jun 6, 2022
2 parents ca202a5 + c62dca9 commit f3b43a6
Show file tree
Hide file tree
Showing 113 changed files with 14,150 additions and 1,941 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
max-parallel: 5

matrix:
python-version: ['3.8', '3.9']
python-version: ['3.8', '3.9'] # Excluding 3.10 for the moment, as hiphive requires Numpy <1.22 which is incompatible with Python 3.10, should be fixed soon...

name: Python ${{ matrix.python-version }} Test Pop

Expand All @@ -40,6 +40,5 @@ jobs:
- name: Test
run: |
pytest
pytest --ignore=tests/test_local.py # Ignore local tests file, which tests INCAR and POTCAR file writing but not possible on GitHub Actions
pytest tests/test_shakenbreak.py --mpl # test output plots
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,12 @@ dmypy.json
# Pyre type checker
.pyre/

# PyCharm
# PyCharm files
.idea/

# MacOS
# Mac OS Files
.DS_Store

# Affinity Logo ideas
# Affinity Designer
Affinity/
.vscode/settings.json
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 0 additions & 22 deletions BDM_parsing_script.sh

This file was deleted.

6 changes: 3 additions & 3 deletions Example_notebook/Defect_Finding_Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Then parse the energies by running the `BDM_parsing_script.sh` from the `defect-finder` folder, in the top-level folder containing your defect folders (e.g. `vac_2_Te_0` etc. (with subfolders: `vac_2_Te_0/BDM/vac_2_Te_0_10.0%_BDM_Distortion/vasp_gam` etc.). This will parse the energies and store them in a `{defect_name}.txt` file (in the `{defect_name}/BDM` folders) to allow easy plotting and analysis.\n",
"Then parse the energies by running the `BDM_parsing_script.sh` from the `ShakeNBreak` folder, in the top-level folder containing your defect folders (e.g. `vac_2_Te_0` etc. (with subfolders: `vac_2_Te_0/BDM/vac_2_Te_0_10.0%_BDM_Distortion/vasp_gam` etc.). This will parse the energies and store them in a `{defect_name}.txt` file (in the `{defect_name}/BDM` folders) to allow easy plotting and analysis.\n",
"\n",
"Also recommended to parse the final structures (CONTCARs) obtained with each BDM distortion to your local computer to ease the structural analysis. Can go to the local folder where BDM input is and use scp/rsync...\n",
"```bash\n",
Expand Down Expand Up @@ -1528,7 +1528,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -1542,7 +1542,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.7"
"version": "3.8.11"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# `defect-finder`
# `shakenbreak`
Defect structure-searching method employing chemically-guided bond distortions to locate ground-state and metastable structures of point defects in solid materials.
72 changes: 72 additions & 0 deletions data/CdTe_Bulk_Supercell_POSCAR
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
Cd32 Te32
1.0
13.086768 0.000000 0.000000
0.000000 13.086768 0.000000
0.000000 0.000000 13.086768
Cd Te
32 32
direct
0.000000 0.000000 0.000000 Cd
0.000000 0.000000 0.500000 Cd
0.000000 0.500000 0.000000 Cd
0.000000 0.500000 0.500000 Cd
0.500000 0.000000 0.000000 Cd
0.500000 0.000000 0.500000 Cd
0.500000 0.500000 0.000000 Cd
0.500000 0.500000 0.500000 Cd
0.000000 0.250000 0.250000 Cd
0.000000 0.250000 0.750000 Cd
0.000000 0.750000 0.250000 Cd
0.000000 0.750000 0.750000 Cd
0.500000 0.250000 0.250000 Cd
0.500000 0.250000 0.750000 Cd
0.500000 0.750000 0.250000 Cd
0.500000 0.750000 0.750000 Cd
0.250000 0.000000 0.250000 Cd
0.250000 0.000000 0.750000 Cd
0.250000 0.500000 0.250000 Cd
0.250000 0.500000 0.750000 Cd
0.750000 0.000000 0.250000 Cd
0.750000 0.000000 0.750000 Cd
0.750000 0.500000 0.250000 Cd
0.750000 0.500000 0.750000 Cd
0.250000 0.250000 0.000000 Cd
0.250000 0.250000 0.500000 Cd
0.250000 0.750000 0.000000 Cd
0.250000 0.750000 0.500000 Cd
0.750000 0.250000 0.000000 Cd
0.750000 0.250000 0.500000 Cd
0.750000 0.750000 0.000000 Cd
0.750000 0.750000 0.500000 Cd
0.125000 0.125000 0.375000 Te
0.125000 0.125000 0.875000 Te
0.125000 0.625000 0.375000 Te
0.125000 0.625000 0.875000 Te
0.625000 0.125000 0.375000 Te
0.625000 0.125000 0.875000 Te
0.625000 0.625000 0.375000 Te
0.625000 0.625000 0.875000 Te
0.125000 0.375000 0.125000 Te
0.125000 0.375000 0.625000 Te
0.125000 0.875000 0.125000 Te
0.125000 0.875000 0.625000 Te
0.625000 0.375000 0.125000 Te
0.625000 0.375000 0.625000 Te
0.625000 0.875000 0.125000 Te
0.625000 0.875000 0.625000 Te
0.375000 0.125000 0.125000 Te
0.375000 0.125000 0.625000 Te
0.375000 0.625000 0.125000 Te
0.375000 0.625000 0.625000 Te
0.875000 0.125000 0.125000 Te
0.875000 0.125000 0.625000 Te
0.875000 0.625000 0.125000 Te
0.875000 0.625000 0.625000 Te
0.375000 0.375000 0.375000 Te
0.375000 0.375000 0.875000 Te
0.375000 0.875000 0.375000 Te
0.375000 0.875000 0.875000 Te
0.875000 0.375000 0.375000 Te
0.875000 0.375000 0.875000 Te
0.875000 0.875000 0.375000 Te
0.875000 0.875000 0.875000 Te
73 changes: 73 additions & 0 deletions data/CdTe_Int_Cd_2_-60%_Distortion_NN_10_POSCAR
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
Cd33 Te32
1.0
13.086768 0.000000 0.000000
0.000000 13.086768 0.000000
0.000000 0.000000 13.086768
Cd Te Cd
32 32 1
direct
-0.112499 0.112499 -0.112499 Cd
0.000000 0.000000 0.500000 Cd
0.000000 0.500000 0.000000 Cd
0.000000 0.500000 0.500000 Cd
0.500000 0.000000 0.000000 Cd
0.500000 0.000000 0.500000 Cd
0.500000 0.500000 0.000000 Cd
0.500000 0.500000 0.500000 Cd
0.000000 0.250000 0.250000 Cd
-0.112501 0.212500 0.787500 Cd
0.000000 0.750000 0.250000 Cd
0.000000 0.750000 0.750000 Cd
0.500000 0.250000 0.250000 Cd
0.687499 0.212500 0.787500 Cd
0.500000 0.750000 0.250000 Cd
0.500000 0.750000 0.750000 Cd
0.250000 0.000000 0.250000 Cd
0.250000 0.000000 0.750000 Cd
0.250000 0.500000 0.250000 Cd
0.250000 0.500000 0.750000 Cd
0.750000 0.000000 0.250000 Cd
0.787500 0.112501 0.787500 Cd
0.750000 0.500000 0.250000 Cd
0.787500 0.312501 0.787500 Cd
0.250000 0.250000 0.000000 Cd
0.250000 0.250000 0.500000 Cd
0.250000 0.750000 0.000000 Cd
0.250000 0.750000 0.500000 Cd
0.787500 0.212500 -0.112501 Cd
0.787500 0.212500 0.687499 Cd
0.750000 0.750000 0.000000 Cd
0.750000 0.750000 0.500000 Cd
0.125000 0.125000 0.375000 Te
0.125000 0.125000 0.875000 Te
0.125000 0.625000 0.375000 Te
0.125000 0.625000 0.875000 Te
0.625000 0.125000 0.375000 Te
0.737501 0.162500 0.837500 Te
0.625000 0.625000 0.375000 Te
0.625000 0.625000 0.875000 Te
0.125000 0.375000 0.125000 Te
0.125000 0.375000 0.625000 Te
0.125000 0.875000 0.125000 Te
0.125000 0.875000 0.625000 Te
0.625000 0.375000 0.125000 Te
0.625000 0.375000 0.625000 Te
0.625000 0.875000 0.125000 Te
0.625000 0.875000 0.625000 Te
0.375000 0.125000 0.125000 Te
0.375000 0.125000 0.625000 Te
0.375000 0.625000 0.125000 Te
0.375000 0.625000 0.625000 Te
0.875000 0.125000 0.125000 Te
0.837500 0.162500 0.737501 Te
0.875000 0.625000 0.125000 Te
0.875000 0.625000 0.625000 Te
0.375000 0.375000 0.375000 Te
0.375000 0.375000 0.875000 Te
0.375000 0.875000 0.375000 Te
0.375000 0.875000 0.875000 Te
0.875000 0.375000 0.375000 Te
0.837500 0.262499 0.837500 Te
0.875000 0.875000 0.375000 Te
0.875000 0.875000 0.875000 Te
0.812500 0.187500 0.812500 Cd
73 changes: 73 additions & 0 deletions data/CdTe_Int_Cd_2_-60%_Distortion_Rattled_POSCAR
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
Cd33 Te32
1.0
13.086768 0.000000 0.000000
0.000000 13.086768 0.000000
0.000000 0.000000 13.086768
Cd Te Cd
32 32 1
direct
0.015687 0.016850 0.001366 Cd
0.027150 -0.004274 0.510022 Cd
-0.001450 0.498073 -0.021881 Cd
-0.027791 0.520051 0.481731 Cd
0.488559 -0.005388 -0.018233 Cd
0.505628 0.018628 0.473025 Cd
0.480169 0.525724 0.024806 Cd
0.465168 0.522894 0.488746 Cd
-0.010575 0.266555 0.224970 Cd
-0.112501 0.212500 0.787500 Cd
-0.007569 0.707323 0.254030 Cd
-0.005091 0.735542 0.767954 Cd
0.500582 0.282054 0.233540 Cd
0.516451 0.254245 0.732282 Cd
0.507083 0.752646 0.289477 Cd
0.504958 0.768167 0.759194 Cd
0.231444 -0.013969 0.271090 Cd
0.237637 0.005369 0.738165 Cd
0.271837 0.492289 0.245178 Cd
0.262295 0.517355 0.726021 Cd
0.742101 -0.036939 0.260110 Cd
0.787500 0.112501 0.787500 Cd
0.764301 0.508256 0.237514 Cd
0.777230 0.506174 0.741888 Cd
0.211292 0.239182 -0.004714 Cd
0.259763 0.265475 0.486182 Cd
0.285691 0.766761 -0.017562 Cd
0.255331 0.732412 0.472916 Cd
0.787787 0.221096 -0.003940 Cd
0.775609 0.269674 0.490538 Cd
0.767460 0.743394 0.034258 Cd
0.765981 0.759274 0.508443 Cd
0.092021 0.138580 0.403462 Te
0.120109 0.127325 0.868735 Te
0.118757 0.650794 0.376210 Te
0.131236 0.632855 0.920260 Te
0.612888 0.118295 0.347304 Te
0.623123 0.143179 0.880364 Te
0.613265 0.644358 0.392451 Te
0.613934 0.618184 0.901802 Te
0.127144 0.366708 0.102787 Te
0.127373 0.391911 0.643997 Te
0.114182 0.871510 0.112726 Te
0.157563 0.851963 0.591365 Te
0.608225 0.383947 0.112958 Te
0.674205 0.410819 0.606292 Te
0.610638 0.877709 0.161475 Te
0.625252 0.863944 0.593390 Te
0.406094 0.107909 0.111410 Te
0.388622 0.128300 0.618342 Te
0.369166 0.615047 0.151861 Te
0.357831 0.646494 0.587609 Te
0.880313 0.142624 0.139588 Te
0.894743 0.139882 0.597115 Te
0.905021 0.627647 0.094809 Te
0.897552 0.618875 0.663753 Te
0.395865 0.374393 0.355271 Te
0.399730 0.376028 0.878691 Te
0.366271 0.876470 0.379925 Te
0.390363 0.875004 0.869363 Te
0.884099 0.376580 0.370198 Te
0.879483 0.385403 0.867484 Te
0.891724 0.854341 0.378435 Te
0.881778 0.881354 0.903174 Te
0.812500 0.187500 0.812500 Cd
73 changes: 73 additions & 0 deletions data/CdTe_Int_Cd_2_-60%_Distortion_Unrattled_POSCAR
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
Cd33 Te32
1.0
13.086768 0.000000 0.000000
0.000000 13.086768 0.000000
0.000000 0.000000 13.086768
Cd Te Cd
32 32 1
direct
0.000000 0.000000 0.000000 Cd
0.000000 0.000000 0.500000 Cd
0.000000 0.500000 0.000000 Cd
0.000000 0.500000 0.500000 Cd
0.500000 0.000000 0.000000 Cd
0.500000 0.000000 0.500000 Cd
0.500000 0.500000 0.000000 Cd
0.500000 0.500000 0.500000 Cd
0.000000 0.250000 0.250000 Cd
-0.112501 0.212500 0.787500 Cd
0.000000 0.750000 0.250000 Cd
0.000000 0.750000 0.750000 Cd
0.500000 0.250000 0.250000 Cd
0.500000 0.250000 0.750000 Cd
0.500000 0.750000 0.250000 Cd
0.500000 0.750000 0.750000 Cd
0.250000 0.000000 0.250000 Cd
0.250000 0.000000 0.750000 Cd
0.250000 0.500000 0.250000 Cd
0.250000 0.500000 0.750000 Cd
0.750000 0.000000 0.250000 Cd
0.787500 0.112501 0.787500 Cd
0.750000 0.500000 0.250000 Cd
0.750000 0.500000 0.750000 Cd
0.250000 0.250000 0.000000 Cd
0.250000 0.250000 0.500000 Cd
0.250000 0.750000 0.000000 Cd
0.250000 0.750000 0.500000 Cd
0.750000 0.250000 0.000000 Cd
0.750000 0.250000 0.500000 Cd
0.750000 0.750000 0.000000 Cd
0.750000 0.750000 0.500000 Cd
0.125000 0.125000 0.375000 Te
0.125000 0.125000 0.875000 Te
0.125000 0.625000 0.375000 Te
0.125000 0.625000 0.875000 Te
0.625000 0.125000 0.375000 Te
0.625000 0.125000 0.875000 Te
0.625000 0.625000 0.375000 Te
0.625000 0.625000 0.875000 Te
0.125000 0.375000 0.125000 Te
0.125000 0.375000 0.625000 Te
0.125000 0.875000 0.125000 Te
0.125000 0.875000 0.625000 Te
0.625000 0.375000 0.125000 Te
0.625000 0.375000 0.625000 Te
0.625000 0.875000 0.125000 Te
0.625000 0.875000 0.625000 Te
0.375000 0.125000 0.125000 Te
0.375000 0.125000 0.625000 Te
0.375000 0.625000 0.125000 Te
0.375000 0.625000 0.625000 Te
0.875000 0.125000 0.125000 Te
0.875000 0.125000 0.625000 Te
0.875000 0.625000 0.125000 Te
0.875000 0.625000 0.625000 Te
0.375000 0.375000 0.375000 Te
0.375000 0.375000 0.875000 Te
0.375000 0.875000 0.375000 Te
0.375000 0.875000 0.875000 Te
0.875000 0.375000 0.375000 Te
0.875000 0.375000 0.875000 Te
0.875000 0.875000 0.375000 Te
0.875000 0.875000 0.875000 Te
0.812500 0.187500 0.812500 Cd
Loading

0 comments on commit f3b43a6

Please sign in to comment.