Skip to content

Commit 832979e

Browse files
authored
Merge pull request #98 from SMTG-Bham/develop
Develop
2 parents 0428aeb + 7d20093 commit 832979e

36 files changed

Lines changed: 906 additions & 1669 deletions

.github/ISSUE_TEMPLATE/question-about-shakenbreak.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,23 @@ assignees: ''
77

88
---
99

10-
I have searched the following curated resources for answers:
10+
For general questions related to `ShakeNBreak` and defect structure-searching, we ask that you post these on the
11+
[`ShakeNBreak` MatSci community forum](https://matsci.org/c/shake-n-break/71).
12+
13+
Before taking developer time, we kindly ask that you first check the following curated resources for answers, as many
14+
questions have been answered before:
1115
- [ ] [`ShakeNBreak` documentation site](https://shakenbreak.readthedocs.io/en/latest/) – tip: use the search bar on the left.
1216
- [ ] [`ShakeNBreak` tutorials](https://shakenbreak.readthedocs.io/en/latest/Tutorials.html)
1317
- [ ] [`ShakeNBreak` Python API docs](https://shakenbreak.readthedocs.io/en/latest/modules.html)
1418
- [ ] [Previous `ShakeNBreak` issues](https://github.com/SMTG-Bham/ShakeNBreak/issues?q=is%3Aissue+is%3Aclosed) where the same question may have been asked – tip: use the search bar.
1519
- [ ] All other `ShakeNBreak` docs pages; such as [Tips](https://shakenbreak.readthedocs.io/en/latest/Tips.html) and [Installation](https://shakenbreak.readthedocs.io/en/latest/Installation.html)
20+
- [ ] [`ShakeNBreak` MatSci community forum](https://matsci.org/c/shake-n-break/71)
1621

1722
If your question is about general defect structure-searching methodology, please refer to the following papers, and other relevant literature:
1823
- [Defect Structure Searching Preview](https://doi.org/10.1016/j.matt.2021.06.003)
19-
- [Defect Structure Searching Main Paper](doi.org/10.1038/s41524-023-00973-1)
24+
- [Defect Structure Searching Main Paper](https://doi.org/10.1038/s41524-023-00973-1)
25+
- [Guidelines for Robust Defect Simulations](https://doi.org/10.1038/s41578-025-00879-y)
2026
- [Free Energies of Defects](https://doi.org/10.1039/D3CS00432E)
27+
28+
FAQ: Why are only `Rattled` and `Unperturbed` generated for some charge states?
29+
> `ShakeNBreak` uses the change in valence electron count (i.e. 'excess charge') at the defect site to dictate the number of bonds to distort, which was found to be the best chemically-motivated strategy; see [the npj theory paper](https://www.nature.com/articles/s41524-023-00973-1). For _fully-ionised_ charge states (e.g. `v_Cu_-1`) the excess charge is zero, and so no bonds are distorted and only rattling to break symmetry is trialled. These defect charge states are typically the most simple, and do not involve charge localisation.

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
name: Tests
22

33
on:
4+
workflow_dispatch:
5+
46
push:
57
branches:
68
- '*' # all branches
79

8-
workflow_dispatch:
9-
pull_request:
10-
1110
jobs:
1211
test:
1312
strategy:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,6 @@ conda_packaging.md
151151
.pytest_cache/
152152
shakenbreak/__pycache__/
153153
tests/__pycache__/
154+
155+
# Cursor
156+
.cursor/

CHANGELOG.rst

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Change Log
22
==========
33

4+
v3.4.4
5+
----------
6+
- Update ``doped`` requirement and use latest ``doped`` oxidation state functions.
7+
- Restrict ``hiphive`` imports to within functions, to reduce dependence on dependencies (primarily
8+
``numba``, which can often lag behind latest ``numpy``).
9+
- Remove deprecated ``pymatgen`` version check code.
10+
- Code cleanup, docs updates & minor bugfixes for extreme edge cases.
11+
12+
413
v3.4.3
514
----------
615
- Efficient oxidation state guessing using ``doped`` functions, along with handling of mixed-valence systems by @hwbng
@@ -144,9 +153,10 @@ v3.2.0
144153
----------
145154
- Following the major release of ``doped`` ``v2.0``, now compatible with the new ``pymatgen``
146155
defects code (``pymatgen>2022.7.25``), this update:
147-
- Allows input of ``doped`` ``DefectsGenerator`` object to ``Distortions``
148-
- Updates the tutorials to reflect the current recommended workflow of generating defects
149-
with ``doped`` and then applying ``ShakeNBreak``, no longer requiring separate virtual environments 🎉
156+
157+
- Allows input of ``doped`` ``DefectsGenerator`` object to ``Distortions``
158+
- Updates the tutorials to reflect the current recommended workflow of generating defects
159+
with ``doped`` and then applying ``ShakeNBreak``, no longer requiring separate virtual environments 🎉
150160

151161
v3.1.0
152162
----------
@@ -204,7 +214,7 @@ v23.02.02
204214

205215

206216
v23.01.25
207-
--------
217+
----------
208218

209219
- Specify ``pandas`` version in requirements.txt to equal or higher than 1.1.0
210220
- Refactor ``snb-regenerate`` to execute when no arguments are specified (rather than showing help message)
@@ -228,7 +238,7 @@ v22.12.1
228238

229239

230240
v22.11.29
231-
--------
241+
----------
232242

233243
- Add example notebook showing how to generate interstitials and apply SnB to them.
234244
- Fix typo in example notebook and docs.
@@ -237,19 +247,14 @@ v22.11.29
237247

238248

239249
v22.11.18
240-
--------
241-
242-
Add docs plots.
243-
244-
245-
v22.11.18
246-
--------
250+
----------
247251

248-
Docs tutorial update.
252+
(b). Add docs plots.
253+
(a). Docs tutorial update.
249254

250255

251256
v22.11.17
252-
--------
257+
----------
253258

254259
- Refactor ``Distortions()`` to a list or simple-format dict of ``Defect`` objects as input.
255260
Same for ``Distortions.from_structures()``
@@ -283,12 +288,12 @@ v22.11.1
283288

284289

285290
v22.10.14
286-
--------
291+
----------
287292

288293
Just bumping version number to test updated GH Actions ``pip-install-test`` workflow.
289294

290295
v22.10.13
291-
--------
296+
----------
292297

293298
- Updated defect name handling to work for all conventions
294299
- More robust ``snb-generate`` and plotting behaviour

0 commit comments

Comments
 (0)