Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ci:

repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0
rev: 26.1.0
hooks:
- id: black-jupyter

Expand Down Expand Up @@ -34,7 +34,7 @@ repos:
- id: autoflake

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.0
rev: v1.19.1
hooks:
- id: mypy

Expand All @@ -46,7 +46,7 @@ repos:
- id: nbqa-isort

- repo: https://github.com/kynan/nbstripout
rev: 0.8.2
rev: 0.9.0
hooks:
- id: nbstripout
args: [--drop-empty-cells, --keep-output]
14 changes: 4 additions & 10 deletions notebooks/2017-04-03-Slab generation and Wulff shape.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,8 @@
")\n",
"\n",
"slabgen = SlabGenerator(Si, (1, 1, 1), 10, 10)\n",
"print(\n",
" \"Notice now there are actually now %s terminations that can be \\\n",
"generated in the (111) direction for diamond Si\"\n",
" % (len(slabgen.get_slabs()))\n",
")\n",
"print(\"Notice now there are actually now %s terminations that can be \\\n",
"generated in the (111) direction for diamond Si\" % (len(slabgen.get_slabs())))\n",
"\n",
"# The simplest way to do this is to just use generate_all_slabs which finds all the unique\n",
"# Miller indices for a structure and uses SlabGenerator to create all terminations for all of them.\n",
Expand Down Expand Up @@ -400,11 +397,8 @@
}
],
"source": [
"print(\n",
" \"There is a total of %s slabs generated including polar, asymmetric, and \\\n",
"P-O terminated slabs\"\n",
" % (len(all_slabs))\n",
")\n",
"print(\"There is a total of %s slabs generated including polar, asymmetric, and \\\n",
"P-O terminated slabs\" % (len(all_slabs)))\n",
"\n",
"# store any slabs for calculation that satisfies our criterias\n",
"valid_slabs = []\n",
Expand Down
Loading