|
107 | 107 | }, |
108 | 108 | { |
109 | 109 | "cell_type": "code", |
110 | | - "execution_count": 13, |
| 110 | + "execution_count": 3, |
111 | 111 | "metadata": { |
112 | 112 | "slideshow": { |
113 | 113 | "slide_type": "-" |
|
118 | 118 | "name": "stdout", |
119 | 119 | "output_type": "stream", |
120 | 120 | "text": [ |
121 | | - "The autoreload extension is already loaded. To reload it, use:\n", |
122 | | - " %reload_ext autoreload\n", |
123 | | - "pyTEM version: 0.2025.12.1\n", |
| 121 | + "pyTEM version: 0.2026.3.0\n", |
124 | 122 | "notebook version: 2025.12.06\n" |
125 | 123 | ] |
126 | 124 | } |
|
129 | 127 | "%matplotlib widget\n", |
130 | 128 | "import os\n", |
131 | 129 | "import sys\n", |
132 | | - "single\n", |
133 | 130 | "\n", |
134 | 131 | "import matplotlib\n", |
135 | 132 | "import matplotlib.pyplot as plt\n", |
|
527 | 524 | }, |
528 | 525 | { |
529 | 526 | "cell_type": "code", |
530 | | - "execution_count": 8, |
| 527 | + "execution_count": 2, |
531 | 528 | "metadata": {}, |
532 | 529 | "outputs": [ |
533 | 530 | { |
534 | | - "name": "stdout", |
535 | | - "output_type": "stream", |
536 | | - "text": [ |
537 | | - "Of the 3374 possible reflection 854 are allowed.\n", |
538 | | - "here\n", |
539 | | - "Of the 854 allowed reflection 33 have unique distances.\n", |
540 | | - "\n", |
541 | | - "\n", |
542 | | - " [hkl] \t 1/d [1/nm] \t d [nm] \t F^2 \n", |
543 | | - "[1. 1. 1.] \t 4.25 \t 0.2355 \t 729.11 \n", |
544 | | - "[0. 0. 2.] \t 4.90 \t 0.2039 \t 599.47 \n", |
545 | | - "[2. 0. 2.] \t 6.94 \t 0.1442 \t 333.71 \n", |
546 | | - "[1. 1. 3.] \t 8.13 \t 0.1230 \t 241.36 \n", |
547 | | - "[2. 2. 2.] \t 8.49 \t 0.1177 \t 219.62 \n", |
548 | | - "[0. 0. 4.] \t 9.81 \t 0.1020 \t 158.02 \n", |
549 | | - "[3. 3. 1.] \t 10.69 \t 0.0936 \t 128.30 \n", |
550 | | - "[2. 0. 4.] \t 10.97 \t 0.0912 \t 120.38 \n", |
551 | | - "[4. 2. 2.] \t 12.01 \t 0.0832 \t 95.48 \n", |
552 | | - "[3. 3. 3.] \t 12.74 \t 0.0785 \t 81.88 \n", |
553 | | - "[4. 0. 4.] \t 13.87 \t 0.0721 \t 65.29 \n", |
554 | | - "[5. 1. 3.] \t 14.51 \t 0.0689 \t 57.83 \n", |
555 | | - "[4. 4. 2.] \t 14.71 \t 0.0680 \t 55.65 \n", |
556 | | - "[0. 2. 6.] \t 15.51 \t 0.0645 \t 48.14 \n", |
557 | | - "[5. 3. 3.] \t 16.08 \t 0.0622 \t 43.55 \n", |
558 | | - "[2. 2. 6.] \t 16.27 \t 0.0615 \t 42.17 \n", |
559 | | - "[4. 4. 4.] \t 16.99 \t 0.0589 \t 37.33 \n", |
560 | | - "[5. 1. 5.] \t 17.51 \t 0.0571 \t 34.26 \n", |
561 | | - "[0. 4. 6.] \t 17.68 \t 0.0566 \t 33.33 \n", |
562 | | - "[2. 4. 6.] \t 18.35 \t 0.0545 \t 29.98 \n", |
563 | | - "[5. 3. 5.] \t 18.83 \t 0.0531 \t 27.81 \n", |
564 | | - "[7. 3. 3.] \t 20.07 \t 0.0498 \t 23.11 \n", |
565 | | - "[6. 4. 4.] \t 20.22 \t 0.0495 \t 22.62 \n", |
566 | | - "[0. 6. 6.] \t 20.81 \t 0.0481 \t 20.78 \n", |
567 | | - "[5. 5. 5.] \t 21.24 \t 0.0471 \t 19.56 \n", |
568 | | - "[6. 6. 2.] \t 21.38 \t 0.0468 \t 19.18 \n", |
569 | | - "[7. 5. 3.] \t 22.34 \t 0.0448 \t 16.79 \n", |
570 | | - "[6. 6. 4.] \t 23.00 \t 0.0435 \t 15.36 \n", |
571 | | - "[5. 5. 7.] \t 24.40 \t 0.0410 \t 12.80 \n", |
572 | | - "[7. 3. 7.] \t 25.36 \t 0.0394 \t 11.32 \n", |
573 | | - "[6. 6. 6.] \t 25.48 \t 0.0392 \t 11.16 \n", |
574 | | - "[7. 7. 5.] \t 27.19 \t 0.0368 \t 9.05 \n", |
575 | | - "[7. 7. 7.] \t 29.73 \t 0.0336 \t 6.73 \n" |
| 531 | + "ename": "NameError", |
| 532 | + "evalue": "name 'pyTEMlib' is not defined", |
| 533 | + "output_type": "error", |
| 534 | + "traceback": [ |
| 535 | + "\u001b[31m---------------------------------------------------------------------------\u001b[39m", |
| 536 | + "\u001b[31mNameError\u001b[39m Traceback (most recent call last)", |
| 537 | + "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[2]\u001b[39m\u001b[32m, line 7\u001b[39m\n\u001b[32m 4\u001b[39m verbose = \u001b[38;5;28;01mTrue\u001b[39;00m\n\u001b[32m 5\u001b[39m \u001b[38;5;66;03m# --------------------------------------------\u001b[39;00m\n\u001b[32m----> \u001b[39m\u001b[32m7\u001b[39m atoms = \u001b[43mpyTEMlib\u001b[49m.crystal_tools.structure_by_name(structure)\n\u001b[32m 8\u001b[39m main_dataset.structures[\u001b[33m'\u001b[39m\u001b[33mStructure_000\u001b[39m\u001b[33m'\u001b[39m] = atoms\n\u001b[32m 9\u001b[39m main_dataset.metadata[\u001b[33m'\u001b[39m\u001b[33mexperiment\u001b[39m\u001b[33m'\u001b[39m][\u001b[33m'\u001b[39m\u001b[33mhkl_max\u001b[39m\u001b[33m'\u001b[39m] = hkl_max\n", |
| 538 | + "\u001b[31mNameError\u001b[39m: name 'pyTEMlib' is not defined" |
576 | 539 | ] |
577 | 540 | } |
578 | 541 | ], |
579 | 542 | "source": [ |
580 | 543 | "# -----Input for ring pattern calculation ----\n", |
581 | | - "structure = 'gold'\n", |
| 544 | + "structure = 'aluminum'\n", |
582 | 545 | "hkl_max = 7\n", |
583 | 546 | "verbose = True\n", |
584 | 547 | "# --------------------------------------------\n", |
|
0 commit comments