|
36 | 36 | }, |
37 | 37 | { |
38 | 38 | "cell_type": "code", |
39 | | - "outputs": [], |
40 | 39 | "source": [ |
41 | 40 | "# Slab parameters\n", |
42 | 41 | "MATERIAL_NAME = \"MoS2.*2D\" # Name of the material (regex) to be loaded from Standata\n", |
|
71 | 70 | "collapsed": false |
72 | 71 | }, |
73 | 72 | "id": "9d8b1890b34d850a", |
| 73 | + "outputs": [], |
74 | 74 | "execution_count": null |
75 | 75 | }, |
76 | 76 | { |
|
86 | 86 | }, |
87 | 87 | { |
88 | 88 | "cell_type": "code", |
89 | | - "outputs": [], |
90 | 89 | "source": [ |
91 | 90 | "import sys\n", |
92 | 91 | "\n", |
|
102 | 101 | "collapsed": false |
103 | 102 | }, |
104 | 103 | "id": "ef664b14457530fd", |
| 104 | + "outputs": [], |
105 | 105 | "execution_count": null |
106 | 106 | }, |
107 | 107 | { |
|
117 | 117 | }, |
118 | 118 | { |
119 | 119 | "cell_type": "code", |
120 | | - "outputs": [], |
121 | 120 | "source": [ |
122 | 121 | "from utils.visualize import visualize_materials\n", |
123 | 122 | "from mat3ra.standata.materials import Materials\n", |
|
133 | 132 | "collapsed": false |
134 | 133 | }, |
135 | 134 | "id": "be38fdda1984c654", |
| 135 | + "outputs": [], |
136 | 136 | "execution_count": null |
137 | 137 | }, |
138 | 138 | { |
|
147 | 147 | }, |
148 | 148 | { |
149 | 149 | "cell_type": "code", |
150 | | - "outputs": [], |
151 | 150 | "source": [ |
152 | 151 | "from mat3ra.made.tools.build.slab import SlabConfiguration, get_terminations, create_slab\n", |
153 | 152 | "from utils.visualize import visualize_materials as visualize\n", |
|
168 | 167 | "collapsed": false |
169 | 168 | }, |
170 | 169 | "id": "e2d24109d3068c9e", |
| 170 | + "outputs": [], |
171 | 171 | "execution_count": null |
172 | 172 | }, |
173 | 173 | { |
|
183 | 183 | }, |
184 | 184 | { |
185 | 185 | "cell_type": "code", |
186 | | - "outputs": [], |
187 | 186 | "source": [ |
188 | 187 | "from mat3ra.made.tools.build.defect import AdatomSlabPointDefectConfiguration\n", |
189 | 188 | "\n", |
|
204 | 203 | "collapsed": false |
205 | 204 | }, |
206 | 205 | "id": "e385e50ae11ed2b9", |
| 206 | + "outputs": [], |
207 | 207 | "execution_count": null |
208 | 208 | }, |
209 | 209 | { |
|
218 | 218 | }, |
219 | 219 | { |
220 | 220 | "cell_type": "code", |
221 | | - "outputs": [], |
222 | 221 | "source": [ |
223 | 222 | "from mat3ra.made.tools.build.defect import create_defects\n", |
224 | 223 | "\n", |
|
228 | 227 | "collapsed": false |
229 | 228 | }, |
230 | 229 | "id": "a990fa35742d7269", |
| 230 | + "outputs": [], |
231 | 231 | "execution_count": null |
232 | 232 | }, |
233 | 233 | { |
|
242 | 242 | }, |
243 | 243 | { |
244 | 244 | "cell_type": "code", |
245 | | - "outputs": [], |
246 | 245 | "source": [ |
247 | 246 | "from utils.visualize import visualize_materials as visualize\n", |
248 | 247 | "\n", |
249 | 248 | "visualize([{\"material\": slab, \"title\": \"Original material\"},\n", |
250 | 249 | " {\"material\": slab_with_adatom, \"title\": f\"Material with adatom defect at {PLACEMENT_METHOD} position\"}],\n", |
251 | | - " rotation=\"-90x\"\n", |
252 | | - " )\n", |
253 | | - "visualize([{\"material\": slab, \"title\": \"Original material\"},\n", |
254 | | - " {\"material\": slab_with_adatom, \"title\": f\"Material with adatom defect at {PLACEMENT_METHOD} position\"}],\n", |
255 | | - " )" |
| 250 | + " viewer=\"wave\")" |
256 | 251 | ], |
257 | 252 | "metadata": { |
258 | 253 | "collapsed": false |
259 | 254 | }, |
260 | 255 | "id": "509b18661a069e42", |
| 256 | + "outputs": [], |
261 | 257 | "execution_count": null |
262 | 258 | }, |
263 | 259 | { |
|
272 | 268 | }, |
273 | 269 | { |
274 | 270 | "cell_type": "code", |
275 | | - "outputs": [], |
276 | 271 | "source": [ |
277 | 272 | "from utils.jupyterlite import set_materials, download_content_to_file\n", |
278 | 273 | "\n", |
|
283 | 278 | "collapsed": false |
284 | 279 | }, |
285 | 280 | "id": "61daa5afcbc078a9", |
| 281 | + "outputs": [], |
286 | 282 | "execution_count": null |
287 | 283 | } |
288 | 284 | ], |
|
0 commit comments