Skip to content

Commit f7db9c3

Browse files
committed
chore: cleanup
1 parent d65c928 commit f7db9c3

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

other/materials_designer/create_supercell.ipynb

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"cell_type": "markdown",
2424
"source": [
2525
"## 1. Prepare the Environment\n",
26-
"### 1.1. Set up defect parameters "
26+
"### 1.1. Set up transformation parameters "
2727
],
2828
"metadata": {
2929
"collapsed": false
@@ -36,8 +36,8 @@
3636
"source": [
3737
"SUPERCELL_MATRIX = [[3, 0, 0], [0, 3, 0], [0, 0, 1]] \n",
3838
"\n",
39-
"# or use the scaling factors \n",
40-
"SCALING_FACTORS = None # [3, 3, 1]"
39+
"# or use the scaling factor\n",
40+
"SCALING_FACTOR = None # [3, 3, 1]"
4141
],
4242
"metadata": {
4343
"collapsed": false
@@ -115,7 +115,7 @@
115115
"outputs": [],
116116
"source": [
117117
"from utils.visualize import visualize_materials as visualize\n",
118-
"repetitions = SCALING_FACTORS if SCALING_FACTORS else [3, 3, 1]\n",
118+
"repetitions = SCALING_FACTOR if SCALING_FACTOR else [3, 3, 1]\n",
119119
"visualize(material, repetitions=repetitions, rotation=\"0x\")\n",
120120
"visualize(material, repetitions=repetitions, rotation=\"-90x\")"
121121
],
@@ -128,9 +128,7 @@
128128
{
129129
"cell_type": "markdown",
130130
"source": [
131-
"## 2. Create supercell\n",
132-
"\n",
133-
"### 2.1. Create supercell\n"
131+
"## 2. Create supercell"
134132
],
135133
"metadata": {
136134
"collapsed": false
@@ -145,8 +143,8 @@
145143
"\n",
146144
"if SUPERCELL_MATRIX:\n",
147145
" supercell = create_supercell(material, supercell_matrix=SUPERCELL_MATRIX)\n",
148-
"elif SCALING_FACTORS:\n",
149-
" supercell = create_supercell(material, scaling_factors=SCALING_FACTORS)"
146+
"elif SCALING_FACTOR:\n",
147+
" supercell = create_supercell(material, scaling_factor=SCALING_FACTOR)"
150148
],
151149
"metadata": {
152150
"collapsed": false

0 commit comments

Comments
 (0)