File size: 61,712 Bytes
56c956f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 |
<!DOCTYPE html>
<html lang="en" data-content_root="../../" >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>The tutorial 8th — PyXplore Book</title>
<script data-cfasync="false">
document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
document.documentElement.dataset.theme = localStorage.getItem("theme") || "";
</script>
<!-- Loaded before other Sphinx assets -->
<link href="../../_static/styles/theme.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
<link href="../../_static/styles/bootstrap.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
<link href="../../_static/styles/pydata-sphinx-theme.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
<link href="../../_static/vendor/fontawesome/6.5.2/css/all.min.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="../../_static/vendor/fontawesome/6.5.2/webfonts/fa-solid-900.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="../../_static/vendor/fontawesome/6.5.2/webfonts/fa-brands-400.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="../../_static/vendor/fontawesome/6.5.2/webfonts/fa-regular-400.woff2" />
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=b76e3c8a" />
<link rel="stylesheet" type="text/css" href="../../_static/styles/sphinx-book-theme.css?v=eba8b062" />
<link rel="stylesheet" type="text/css" href="../../_static/togglebutton.css?v=13237357" />
<link rel="stylesheet" type="text/css" href="../../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../../_static/mystnb.8ecb98da25f57f5357bf6f572d296f466b2cfe2517ffebfabe82451661e28f02.css" />
<link rel="stylesheet" type="text/css" href="../../_static/sphinx-thebe.css?v=4fa983c6" />
<link rel="stylesheet" type="text/css" href="../../_static/sphinx-design.min.css?v=95c83b7e" />
<!-- Pre-loaded scripts that we'll load fully later -->
<link rel="preload" as="script" href="../../_static/scripts/bootstrap.js?digest=dfe6caa3a7d634c4db9b" />
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
<script src="../../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>
<script src="../../_static/documentation_options.js?v=9eb32ce0"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
<script src="../../_static/scripts/sphinx-book-theme.js?v=887ef09a"></script>
<script>let toggleHintShow = 'Click to show';</script>
<script>let toggleHintHide = 'Click to hide';</script>
<script>let toggleOpenOnPrint = 'true';</script>
<script src="../../_static/togglebutton.js?v=4a39c7ea"></script>
<script>var togglebuttonSelector = '.toggle, .admonition.dropdown';</script>
<script src="../../_static/design-tabs.js?v=f930bc37"></script>
<script>const THEBE_JS_URL = "https://unpkg.com/thebe@0.8.2/lib/index.js"; const thebe_selector = ".thebe,.cell"; const thebe_selector_input = "pre"; const thebe_selector_output = ".output, .cell_output"</script>
<script async="async" src="../../_static/sphinx-thebe.js?v=c100c467"></script>
<script>var togglebuttonSelector = '.toggle, .admonition.dropdown';</script>
<script>const THEBE_JS_URL = "https://unpkg.com/thebe@0.8.2/lib/index.js"; const thebe_selector = ".thebe,.cell"; const thebe_selector_input = "pre"; const thebe_selector_output = ".output, .cell_output"</script>
<script>DOCUMENTATION_OPTIONS.pagename = 'tutorials/XPS/8th';</script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
<link rel="prev" title="The tutorial 7th" href="../EXAFS/7th.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
</head>
<body data-bs-spy="scroll" data-bs-target=".bd-toc-nav" data-offset="180" data-bs-root-margin="0px 0px -60%" data-default-mode="">
<div id="pst-skip-link" class="skip-link d-print-none"><a href="#main-content">Skip to main content</a></div>
<div id="pst-scroll-pixel-helper"></div>
<button type="button" class="btn rounded-pill" id="pst-back-to-top">
<i class="fa-solid fa-arrow-up"></i>Back to top</button>
<input type="checkbox"
class="sidebar-toggle"
id="pst-primary-sidebar-checkbox"/>
<label class="overlay overlay-primary" for="pst-primary-sidebar-checkbox"></label>
<input type="checkbox"
class="sidebar-toggle"
id="pst-secondary-sidebar-checkbox"/>
<label class="overlay overlay-secondary" for="pst-secondary-sidebar-checkbox"></label>
<div class="search-button__wrapper">
<div class="search-button__overlay"></div>
<div class="search-button__search-container">
<form class="bd-search d-flex align-items-center"
action="../../search.html"
method="get">
<i class="fa-solid fa-magnifying-glass"></i>
<input type="search"
class="form-control"
name="q"
id="search-input"
placeholder="Search this book..."
aria-label="Search this book..."
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"/>
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form></div>
</div>
<div class="pst-async-banner-revealer d-none">
<aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside>
</div>
<header class="bd-header navbar navbar-expand-lg bd-navbar d-print-none">
</header>
<div class="bd-container">
<div class="bd-container__inner bd-page-width">
<div class="bd-sidebar-primary bd-sidebar">
<div class="sidebar-header-items sidebar-primary__section">
</div>
<div class="sidebar-primary-items__start sidebar-primary__section">
<div class="sidebar-primary-item">
<a class="navbar-brand logo" href="../../intro.html">
<img src="../../_static/logo.png" class="logo__image only-light" alt="PyXplore Book - Home"/>
<script></script>
</a></div>
<div class="sidebar-primary-item">
<script>
</script></div>
<div class="sidebar-primary-item"><nav class="bd-links bd-docs-nav" aria-label="Main">
<div class="bd-toc-item navbar-nav active">
<ul class="nav bd-sidenav bd-sidenav__home-link">
<li class="toctree-l1">
<a class="reference internal" href="../../intro.html">
Welcome to PyXplore
</a>
</li>
</ul>
<ul class="current nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="../../parameter.html">Parameters and Functions Documentation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../resultsFiles.html">Results Files Documentation</a></li>
<li class="toctree-l1 current active has-children"><a class="reference internal" href="../index.html">Tutorial Overview</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../basic_opt/1st.html">The tutorial 1st</a></li>
<li class="toctree-l2"><a class="reference internal" href="../multi_phases/2nd.html">The tutorial 2nd</a></li>
<li class="toctree-l2"><a class="reference internal" href="../amorphous/3rd.html">The tutorial 3rd</a></li>
<li class="toctree-l2"><a class="reference internal" href="../simulation/4th.html">The tutorial 4th</a></li>
<li class="toctree-l2"><a class="reference internal" href="../atomic_dis/5th.html">The tutorial 5th</a></li>
<li class="toctree-l2"><a class="reference internal" href="../solid_solution/6th.html">The tutorial 6th</a></li>
<li class="toctree-l2"><a class="reference internal" href="../EXAFS/7th.html">The tutorial 7th</a></li>
<li class="toctree-l2 current active"><a class="current reference internal" href="#">The tutorial 8th</a></li>
</ul><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary>
</details></li>
</ul>
</div>
</nav></div>
</div>
<div class="sidebar-primary-items__end sidebar-primary__section">
</div>
<div id="rtd-footer-container"></div>
</div>
<main id="main-content" class="bd-main" role="main">
<div class="sbt-scroll-pixel-helper"></div>
<div class="bd-content">
<div class="bd-article-container">
<div class="bd-header-article d-print-none">
<div class="header-article-items header-article__inner">
<div class="header-article-items__start">
<div class="header-article-item"><button class="sidebar-toggle primary-toggle btn btn-sm" title="Toggle primary sidebar" data-bs-placement="bottom" data-bs-toggle="tooltip">
<span class="fa-solid fa-bars"></span>
</button></div>
</div>
<div class="header-article-items__end">
<div class="header-article-item">
<div class="article-header-buttons">
<div class="dropdown dropdown-source-buttons">
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Source repositories">
<i class="fab fa-github"></i>
</button>
<ul class="dropdown-menu">
<li><a href="https://github.com/Bin-Cao/PyWPEM" target="_blank"
class="btn btn-sm btn-source-repository-button dropdown-item"
title="Source repository"
data-bs-placement="left" data-bs-toggle="tooltip"
>
<span class="btn__icon-container">
<i class="fab fa-github"></i>
</span>
<span class="btn__text-container">Repository</span>
</a>
</li>
<li><a href="https://github.com/Bin-Cao/PyWPEM/issues/new?title=Issue%20on%20page%20%2Ftutorials/XPS/8th.html&body=Your%20issue%20content%20here." target="_blank"
class="btn btn-sm btn-source-issues-button dropdown-item"
title="Open an issue"
data-bs-placement="left" data-bs-toggle="tooltip"
>
<span class="btn__icon-container">
<i class="fas fa-lightbulb"></i>
</span>
<span class="btn__text-container">Open issue</span>
</a>
</li>
</ul>
</div>
<div class="dropdown dropdown-download-buttons">
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Download this page">
<i class="fas fa-download"></i>
</button>
<ul class="dropdown-menu">
<li><a href="../../_sources/tutorials/XPS/8th.md" target="_blank"
class="btn btn-sm btn-download-source-button dropdown-item"
title="Download source file"
data-bs-placement="left" data-bs-toggle="tooltip"
>
<span class="btn__icon-container">
<i class="fas fa-file"></i>
</span>
<span class="btn__text-container">.md</span>
</a>
</li>
<li>
<button onclick="window.print()"
class="btn btn-sm btn-download-pdf-button dropdown-item"
title="Print to PDF"
data-bs-placement="left" data-bs-toggle="tooltip"
>
<span class="btn__icon-container">
<i class="fas fa-file-pdf"></i>
</span>
<span class="btn__text-container">.pdf</span>
</button>
</li>
</ul>
</div>
<button onclick="toggleFullScreen()"
class="btn btn-sm btn-fullscreen-button"
title="Fullscreen mode"
data-bs-placement="bottom" data-bs-toggle="tooltip"
>
<span class="btn__icon-container">
<i class="fas fa-expand"></i>
</span>
</button>
<script>
</script>
<script>
</script>
<button class="sidebar-toggle secondary-toggle btn btn-sm" title="Toggle secondary sidebar" data-bs-placement="bottom" data-bs-toggle="tooltip">
<span class="fa-solid fa-list"></span>
</button>
</div></div>
</div>
</div>
</div>
<div id="jb-print-docs-body" class="onlyprint">
<h1>The tutorial 8th</h1>
<!-- Table of contents -->
<div id="print-main-content">
<div id="jb-print-toc">
<div>
<h2> Contents </h2>
</div>
<nav aria-label="Page">
<ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#coding">coding</a></li>
</ul>
</nav>
</div>
</div>
</div>
<div id="searchbox"></div>
<article class="bd-article">
<section class="tex2jax_ignore mathjax_ignore" id="the-tutorial-8th">
<h1>The tutorial 8th<a class="headerlink" href="#the-tutorial-8th" title="Link to this heading">#</a></h1>
<p>Describes how PyXplore processes X-ray photoelectron spectroscopy (XPS) data.</p>
<section id="coding">
<h2>coding<a class="headerlink" href="#coding" title="Link to this heading">#</a></h2>
<blockquote>
<div><p><strong>1. Save your XPS data to the root directory and rename the file to <code class="docutils literal notranslate"><span class="pre">int.csv</span></code>.</strong></p>
</div></blockquote>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># import PyXplore package</span>
<span class="kn">from</span> <span class="nn">PyXplore</span> <span class="kn">import</span> <span class="n">WPEM</span>
<span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>βββ ββββββββββ ββββββββββββ ββββ
βββ ββββββββββββββββββββββββ βββββ
βββ ββ βββββββββββββββββ βββββββββββ
βββββββββββββββββ ββββββ βββββββββββ
βββββββββββββ βββββββββββ βββ βββ
ββββββββ βββ βββββββββββ βββ
A Diffraction Refinement Software : WPEM
Bin Cao, Advanced Materials Thrust, Hong Kong University of Science and Technology (Guangzhou)
URL : https://github.com/Bin-Cao/WPEM
Executed on : 2025-07-22 11:02:07 | Have a great day.
====================================================================================================
</pre></div>
</div>
</div>
</div>
<blockquote>
<div><p><strong>2. Parse your diffraction data (<code class="docutils literal notranslate"><span class="pre">bing</span> <span class="pre">energy</span></code>, intensity) and perform background processing.</strong></p>
</div></blockquote>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">intensity_csv</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">read_csv</span><span class="p">(</span><span class="sa">r</span><span class="s1">'int.csv'</span><span class="p">,</span><span class="n">header</span><span class="o">=</span><span class="kc">None</span> <span class="p">)</span>
<span class="n">var</span> <span class="o">=</span> <span class="n">WPEM</span><span class="o">.</span><span class="n">BackgroundFit</span><span class="p">(</span><span class="n">intensity_csv</span><span class="p">,</span><span class="n">segement</span><span class="o">=</span><span class="p">[[</span><span class="mi">910</span><span class="p">,</span><span class="mi">931</span><span class="p">],[</span><span class="mi">948</span><span class="p">,</span><span class="mi">952</span><span class="p">],[</span><span class="mi">958</span><span class="p">,</span><span class="mi">959</span><span class="p">],[</span><span class="mi">966</span><span class="p">,</span><span class="mi">970</span><span class="p">]],</span><span class="n">bac_num</span><span class="o">=</span><span class="mi">120</span><span class="p">,</span><span class="n">Model</span><span class="o">=</span><span class="s1">'XPS'</span><span class="p">,</span><span class="n">noise</span> <span class="o">=</span> <span class="mf">0.05</span><span class="p">,</span><span class="n">bac_var_type</span><span class="o">=</span><span class="s1">'multivariate gaussian'</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<img alt="../../_images/9a72e2a8dccbcf64abfeb8a2eab9fa988629866dce60f476adac1acee635b9c7.png" src="../../_images/9a72e2a8dccbcf64abfeb8a2eab9fa988629866dce60f476adac1acee635b9c7.png" />
<img alt="../../_images/a7d040a67d12e14e2a70047ab928c73da14f75827fb366f931965173a18ff060.png" src="../../_images/a7d040a67d12e14e2a70047ab928c73da14f75827fb366f931965173a18ff060.png" />
<img alt="../../_images/d787df8081dcd8cf12cefc99637d7a8d3e1b3204bf8edf07912ac1c716a7771d.png" src="../../_images/d787df8081dcd8cf12cefc99637d7a8d3e1b3204bf8edf07912ac1c716a7771d.png" />
<img alt="../../_images/60c6db4eaa2cab53d24386ec1b18c1a9bea706b82bb6b2710ff4247625087ac7.png" src="../../_images/60c6db4eaa2cab53d24386ec1b18c1a9bea706b82bb6b2710ff4247625087ac7.png" />
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>================================
</pre></div>
</div>
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span><Figure size 640x480 with 0 Axes>
</pre></div>
</div>
</div>
</div>
<blockquote>
<div><p><strong>3. After running the code, a new folder named <code class="docutils literal notranslate"><span class="pre">ConvertedDocuments</span></code> will be created in the root directory. This folder contains the background information.</strong></p>
</div></blockquote>
<blockquote>
<div><p><strong>Copy the two important files β <code class="docutils literal notranslate"><span class="pre">bac.csv</span></code> and <code class="docutils literal notranslate"><span class="pre">no_bac_intensity.csv</span></code> β from <code class="docutils literal notranslate"><span class="pre">ConvertedDocuments</span></code> into the root directory, as they are required for the next steps.</strong></p>
</div></blockquote>
<div class="admonition seealso">
<p class="admonition-title">See also</p>
<p>A key difference with XPS is that the initial binding energy needs to be queried and input using two parameters: <code class="docutils literal notranslate"><span class="pre">AtomIdentifier</span></code> and <code class="docutils literal notranslate"><span class="pre">satellitePeaks</span></code>.**</p>
</div>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">AtomIdentifier</span> <span class="o">=</span> <span class="p">[[</span><span class="s1">'CuII'</span><span class="p">,</span><span class="s1">'2p3/2'</span><span class="p">,</span><span class="mf">933.7</span><span class="p">,],[</span><span class="s1">'CuII'</span><span class="p">,</span><span class="s1">'2p1/2'</span><span class="p">,</span><span class="mi">954</span><span class="p">,],]</span>
<span class="n">satellitePeaks</span> <span class="o">=</span> <span class="p">[[</span><span class="s1">'CuII'</span><span class="p">,</span> <span class="s1">'2p3/2'</span><span class="p">,</span><span class="mf">941.6</span><span class="p">,],[</span><span class="s1">'CuII'</span><span class="p">,</span><span class="s1">'2p3/2'</span><span class="p">,</span><span class="mf">943.4</span><span class="p">],[</span><span class="s1">'CuII'</span><span class="p">,</span><span class="s1">'2p1/2'</span><span class="p">,</span><span class="mf">962.5</span><span class="p">,],]</span>
<span class="c1"># The file name of non-background data </span>
<span class="n">no_bac_intensity_file</span> <span class="o">=</span> <span class="s2">"no_bac_intensity.csv"</span>
<span class="c1"># The file name of raw/original data </span>
<span class="n">original_file</span> <span class="o">=</span> <span class="s2">"int.csv"</span>
<span class="c1"># The file name of background data </span>
<span class="n">bacground_file</span> <span class="o">=</span> <span class="s2">"bac.csv"</span>
<span class="c1"># Execute the model</span>
<span class="n">WPEM</span><span class="o">.</span><span class="n">XPSfit</span><span class="p">(</span>
<span class="n">var</span><span class="p">,</span> <span class="n">AtomIdentifier</span><span class="p">,</span> <span class="n">satellitePeaks</span><span class="p">,</span><span class="n">no_bac_intensity_file</span><span class="p">,</span> <span class="n">original_file</span><span class="p">,</span> <span class="n">bacground_file</span><span class="p">,</span>
<span class="n">bta</span> <span class="o">=</span> <span class="mf">0.80</span><span class="p">,</span><span class="n">iter_max</span> <span class="o">=</span> <span class="mi">50</span><span class="p">,</span>
<span class="p">)</span>
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Started at Tue Jul 22 11:02:12 2025
Initialization
--------------------------------------------------------------------------------
ββββββββββ Initilize the parameters by WPEM ββββββββββ
Parameters of XPS are initialized has been completed
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 0%| | 0/50 [00:00<?, ?it/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 10%|βββββ | 5/50 [00:00<00:01, 41.72it/s]
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>WPEM 0-th iteration
The energies of electrons are:
[[['CuII', '2p3/2', 933.7, [2, 1, 1.5]], ['CuII', '2p1/2', 954, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.6], ['CuII', '2p3/2', 943.4], ['CuII', '2p1/2', 962.5]]]
Rp:45.523 | Rwp:51.131 | Rsquare:287.228
WPEM 1-th iteration
The energies of electrons are:
[[['CuII', '2p3/2', 933.7, [2, 1, 1.5]], ['CuII', '2p1/2', 954, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.6], ['CuII', '2p3/2', 943.4], ['CuII', '2p1/2', 962.5]]]
Rp:45.938 | Rwp:51.811 | Rsquare:294.326
WPEM 2-th iteration
Under the central field approximation, the effective charge of CuII is: 25.799
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5567944942568406
The energies of electrons are:
[[['CuII', '2p3/2', 933.882, [2, 1, 1.5]], ['CuII', '2p1/2', 953.956, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.462], ['CuII', '2p3/2', 943.371], ['CuII', '2p1/2', 962.385]]]
Rp:46.259 | Rwp:52.489 | Rsquare:301.292
WPEM 3-th iteration
Under the central field approximation, the effective charge of CuII is: 25.795
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5493864287697079
The energies of electrons are:
[[['CuII', '2p3/2', 933.89, [2, 1, 1.5]], ['CuII', '2p1/2', 953.951, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.494], ['CuII', '2p3/2', 943.403], ['CuII', '2p1/2', 962.384]]]
Rp:46.344 | Rwp:52.587 | Rsquare:302.297
WPEM 4-th iteration
Under the central field approximation, the effective charge of CuII is: 25.793
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5472711772701394
The energies of electrons are:
[[['CuII', '2p3/2', 933.895, [2, 1, 1.5]], ['CuII', '2p1/2', 953.95, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.493], ['CuII', '2p3/2', 943.427], ['CuII', '2p1/2', 962.382]]]
Rp:46.408 | Rwp:52.650 | Rsquare:303.038
WPEM 5-th iteration
Under the central field approximation, the effective charge of CuII is: 25.792
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.546155096073957
The energies of electrons are:
[[['CuII', '2p3/2', 933.898, [2, 1, 1.5]], ['CuII', '2p1/2', 953.95, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.491], ['CuII', '2p3/2', 943.444], ['CuII', '2p1/2', 962.38]]]
Rp:46.461 | Rwp:52.699 | Rsquare:303.633
WPEM 6-th iteration
Under the central field approximation, the effective charge of CuII is: 25.79
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5454956959926958
The energies of electrons are:
[[['CuII', '2p3/2', 933.904, [2, 1, 1.5]], ['CuII', '2p1/2', 953.949, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.488], ['CuII', '2p3/2', 943.456], ['CuII', '2p1/2', 962.377]]]
Rp:46.505 | Rwp:52.739 | Rsquare:304.134
WPEM 7-th iteration
Under the central field approximation, the effective charge of CuII is: 25.789
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5451827544054262
The energies of electrons are:
[[['CuII', '2p3/2', 933.907, [2, 1, 1.5]], ['CuII', '2p1/2', 953.95, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.484], ['CuII', '2p3/2', 943.465], ['CuII', '2p1/2', 962.375]]]
Rp:46.544 | Rwp:52.777 | Rsquare:304.591
WPEM 8-th iteration
Under the central field approximation, the effective charge of CuII is: 25.788
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5451634921635551
The energies of electrons are:
[[['CuII', '2p3/2', 933.911, [2, 1, 1.5]], ['CuII', '2p1/2', 953.95, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.481], ['CuII', '2p3/2', 943.471], ['CuII', '2p1/2', 962.372]]]
Rp:46.580 | Rwp:52.811 | Rsquare:305.005
WPEM 9-th iteration
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Under the central field approximation, the effective charge of CuII is:
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 20%|βββββββββ | 10/50 [00:00<00:00, 42.08it/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 30%|βββββββββββββ | 15/50 [00:00<00:00, 42.40it/s]
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 25.788
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5453921338017769
The energies of electrons are:
[[['CuII', '2p3/2', 933.913, [2, 1, 1.5]], ['CuII', '2p1/2', 953.952, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.478], ['CuII', '2p3/2', 943.475], ['CuII', '2p1/2', 962.369]]]
Rp:46.613 | Rwp:52.844 | Rsquare:305.400
WPEM 10-th iteration
Under the central field approximation, the effective charge of CuII is: 25.787
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5458271150863314
The energies of electrons are:
[[['CuII', '2p3/2', 933.916, [2, 1, 1.5]], ['CuII', '2p1/2', 953.953, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.475], ['CuII', '2p3/2', 943.478], ['CuII', '2p1/2', 962.366]]]
Rp:46.642 | Rwp:52.873 | Rsquare:305.753
WPEM 11-th iteration
Under the central field approximation, the effective charge of CuII is: 25.786
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5464314126562455
The energies of electrons are:
[[['CuII', '2p3/2', 933.92, [2, 1, 1.5]], ['CuII', '2p1/2', 953.953, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.472], ['CuII', '2p3/2', 943.481], ['CuII', '2p1/2', 962.363]]]
Rp:46.669 | Rwp:52.900 | Rsquare:306.083
WPEM 12-th iteration
Under the central field approximation, the effective charge of CuII is: 25.785
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5471734006441921
The energies of electrons are:
[[['CuII', '2p3/2', 933.923, [2, 1, 1.5]], ['CuII', '2p1/2', 953.953, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.469], ['CuII', '2p3/2', 943.482], ['CuII', '2p1/2', 962.36]]]
Rp:46.694 | Rwp:52.926 | Rsquare:306.393
WPEM 13-th iteration
Under the central field approximation, the effective charge of CuII is: 25.785
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5480263287264948
The energies of electrons are:
[[['CuII', '2p3/2', 933.925, [2, 1, 1.5]], ['CuII', '2p1/2', 953.955, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.467], ['CuII', '2p3/2', 943.484], ['CuII', '2p1/2', 962.358]]]
Rp:46.719 | Rwp:52.951 | Rsquare:306.698
WPEM 14-th iteration
Under the central field approximation, the effective charge of CuII is: 25.784
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5489679638914116
The energies of electrons are:
[[['CuII', '2p3/2', 933.929, [2, 1, 1.5]], ['CuII', '2p1/2', 953.956, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.465], ['CuII', '2p3/2', 943.484], ['CuII', '2p1/2', 962.355]]]
Rp:46.742 | Rwp:52.974 | Rsquare:306.972
WPEM 15-th iteration
Under the central field approximation, the effective charge of CuII is: 25.784
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5499791639996481
The energies of electrons are:
[[['CuII', '2p3/2', 933.93, [2, 1, 1.5]], ['CuII', '2p1/2', 953.958, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.463], ['CuII', '2p3/2', 943.485], ['CuII', '2p1/2', 962.352]]]
Rp:46.765 | Rwp:52.997 | Rsquare:307.245
WPEM 16-th iteration
Under the central field approximation, the effective charge of CuII is: 25.783
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5510444226206037
The energies of electrons are:
[[['CuII', '2p3/2', 933.934, [2, 1, 1.5]], ['CuII', '2p1/2', 953.958, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.461], ['CuII', '2p3/2', 943.486], ['CuII', '2p1/2', 962.349]]]
Rp:46.786 | Rwp:53.017 | Rsquare:307.489
WPEM 17-th iteration
Under the central field approximation, the effective charge of CuII is: 25.783
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5521503490396586
The energies of electrons are:
[[['CuII', '2p3/2', 933.936, [2, 1, 1.5]], ['CuII', '2p1/2', 953.96, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.459], ['CuII', '2p3/2', 943.486], ['CuII', '2p1/2', 962.346]]]
Rp:46.807 | Rwp:53.037 | Rsquare:307.734
WPEM 18-th iteration
Under the central field approximation, the effective charge of CuII is: 25.782
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5532863008297899
The energies of electrons are:
[[['CuII', '2p3/2', 933.939, [2, 1, 1.5]], ['CuII', '2p1/2', 953.96, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.458], ['CuII', '2p3/2', 943.486], ['CuII', '2p1/2', 962.343]]]
Rp:46.825 | Rwp:53.055 | Rsquare:307.952
WPEM 19-th iteration
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Under the central field approximation, the effective charge of CuII is:
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 40%|ββββββββββββββββββ | 20/50 [00:00<00:00, 42.56it/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 50%|ββββββββββββββββββββββ | 25/50 [00:00<00:00, 42.52it/s]
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 25.782
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5544429415618155
The energies of electrons are:
[[['CuII', '2p3/2', 933.941, [2, 1, 1.5]], ['CuII', '2p1/2', 953.962, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.457], ['CuII', '2p3/2', 943.486], ['CuII', '2p1/2', 962.341]]]
Rp:46.844 | Rwp:53.072 | Rsquare:308.171
WPEM 20-th iteration
Under the central field approximation, the effective charge of CuII is: 25.781
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.555613074431947
The energies of electrons are:
[[['CuII', '2p3/2', 933.944, [2, 1, 1.5]], ['CuII', '2p1/2', 953.962, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.456], ['CuII', '2p3/2', 943.486], ['CuII', '2p1/2', 962.338]]]
Rp:46.860 | Rwp:53.088 | Rsquare:308.365
WPEM 21-th iteration
Under the central field approximation, the effective charge of CuII is: 25.781
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5567901839116616
The energies of electrons are:
[[['CuII', '2p3/2', 933.946, [2, 1, 1.5]], ['CuII', '2p1/2', 953.964, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.455], ['CuII', '2p3/2', 943.485], ['CuII', '2p1/2', 962.336]]]
Rp:46.877 | Rwp:53.104 | Rsquare:308.561
WPEM 22-th iteration
Under the central field approximation, the effective charge of CuII is: 25.781
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.557969499145315
The energies of electrons are:
[[['CuII', '2p3/2', 933.948, [2, 1, 1.5]], ['CuII', '2p1/2', 953.966, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.454], ['CuII', '2p3/2', 943.485], ['CuII', '2p1/2', 962.333]]]
Rp:46.893 | Rwp:53.119 | Rsquare:308.747
WPEM 23-th iteration
Under the central field approximation, the effective charge of CuII is: 25.78
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5591467458468962
The energies of electrons are:
[[['CuII', '2p3/2', 933.951, [2, 1, 1.5]], ['CuII', '2p1/2', 953.966, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.453], ['CuII', '2p3/2', 943.485], ['CuII', '2p1/2', 962.331]]]
Rp:46.907 | Rwp:53.131 | Rsquare:308.908
WPEM 24-th iteration
Under the central field approximation, the effective charge of CuII is: 25.78
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5603181176256709
The energies of electrons are:
[[['CuII', '2p3/2', 933.953, [2, 1, 1.5]], ['CuII', '2p1/2', 953.967, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.452], ['CuII', '2p3/2', 943.484], ['CuII', '2p1/2', 962.328]]]
Rp:46.921 | Rwp:53.144 | Rsquare:309.075
WPEM 25-th iteration
Under the central field approximation, the effective charge of CuII is: 25.78
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5614811413142897
The energies of electrons are:
[[['CuII', '2p3/2', 933.954, [2, 1, 1.5]], ['CuII', '2p1/2', 953.969, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.451], ['CuII', '2p3/2', 943.484], ['CuII', '2p1/2', 962.326]]]
Rp:46.935 | Rwp:53.156 | Rsquare:309.232
WPEM 26-th iteration
Under the central field approximation, the effective charge of CuII is: 25.779
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.562633440628492
The energies of electrons are:
[[['CuII', '2p3/2', 933.957, [2, 1, 1.5]], ['CuII', '2p1/2', 953.969, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.451], ['CuII', '2p3/2', 943.483], ['CuII', '2p1/2', 962.324]]]
Rp:46.946 | Rwp:53.167 | Rsquare:309.365
WPEM 27-th iteration
Under the central field approximation, the effective charge of CuII is: 25.779
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5637727599829994
The energies of electrons are:
[[['CuII', '2p3/2', 933.959, [2, 1, 1.5]], ['CuII', '2p1/2', 953.971, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.45], ['CuII', '2p3/2', 943.482], ['CuII', '2p1/2', 962.322]]]
Rp:46.959 | Rwp:53.177 | Rsquare:309.506
WPEM 28-th iteration
Under the central field approximation, the effective charge of CuII is: 25.779
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5648979422231769
The energies of electrons are:
[[['CuII', '2p3/2', 933.96, [2, 1, 1.5]], ['CuII', '2p1/2', 953.972, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.45], ['CuII', '2p3/2', 943.482], ['CuII', '2p1/2', 962.32]]]
Rp:46.970 | Rwp:53.188 | Rsquare:309.638
WPEM 29-th iteration
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Under the central field approximation, the effective charge of CuII is:
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 60%|ββββββββββββββββββββββββββ | 30/50 [00:00<00:00, 42.60it/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 70%|ββββββββββββββββββββββββββββββ | 35/50 [00:00<00:00, 42.74it/s]
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 25.778
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5660076798457581
The energies of electrons are:
[[['CuII', '2p3/2', 933.963, [2, 1, 1.5]], ['CuII', '2p1/2', 953.972, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.449], ['CuII', '2p3/2', 943.481], ['CuII', '2p1/2', 962.318]]]
Rp:46.980 | Rwp:53.196 | Rsquare:309.749
WPEM 30-th iteration
Under the central field approximation, the effective charge of CuII is: 25.778
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5671005785860104
The energies of electrons are:
[[['CuII', '2p3/2', 933.965, [2, 1, 1.5]], ['CuII', '2p1/2', 953.973, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.449], ['CuII', '2p3/2', 943.48], ['CuII', '2p1/2', 962.316]]]
Rp:46.991 | Rwp:53.205 | Rsquare:309.867
WPEM 31-th iteration
Under the central field approximation, the effective charge of CuII is: 25.778
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5681762572904128
The energies of electrons are:
[[['CuII', '2p3/2', 933.966, [2, 1, 1.5]], ['CuII', '2p1/2', 953.975, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.448], ['CuII', '2p3/2', 943.479], ['CuII', '2p1/2', 962.315]]]
Rp:47.001 | Rwp:53.213 | Rsquare:309.979
WPEM 32-th iteration
Under the central field approximation, the effective charge of CuII is: 25.778
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5692340206264659
The energies of electrons are:
[[['CuII', '2p3/2', 933.968, [2, 1, 1.5]], ['CuII', '2p1/2', 953.976, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.448], ['CuII', '2p3/2', 943.478], ['CuII', '2p1/2', 962.313]]]
Rp:47.010 | Rwp:53.221 | Rsquare:310.086
WPEM 33-th iteration
Under the central field approximation, the effective charge of CuII is: 25.777
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5702732984093672
The energies of electrons are:
[[['CuII', '2p3/2', 933.971, [2, 1, 1.5]], ['CuII', '2p1/2', 953.976, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.447], ['CuII', '2p3/2', 943.478], ['CuII', '2p1/2', 962.312]]]
Rp:47.018 | Rwp:53.227 | Rsquare:310.171
WPEM 34-th iteration
Under the central field approximation, the effective charge of CuII is: 25.777
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5712933580372739
The energies of electrons are:
[[['CuII', '2p3/2', 933.972, [2, 1, 1.5]], ['CuII', '2p1/2', 953.977, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.447], ['CuII', '2p3/2', 943.477], ['CuII', '2p1/2', 962.31]]]
Rp:47.026 | Rwp:53.234 | Rsquare:310.266
WPEM 35-th iteration
Under the central field approximation, the effective charge of CuII is: 25.777
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.572294379994188
The energies of electrons are:
[[['CuII', '2p3/2', 933.973, [2, 1, 1.5]], ['CuII', '2p1/2', 953.978, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.447], ['CuII', '2p3/2', 943.476], ['CuII', '2p1/2', 962.309]]]
Rp:47.035 | Rwp:53.240 | Rsquare:310.356
WPEM 36-th iteration
Under the central field approximation, the effective charge of CuII is: 25.777
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5732761313904181
The energies of electrons are:
[[['CuII', '2p3/2', 933.974, [2, 1, 1.5]], ['CuII', '2p1/2', 953.98, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.446], ['CuII', '2p3/2', 943.475], ['CuII', '2p1/2', 962.307]]]
Rp:47.042 | Rwp:53.247 | Rsquare:310.442
WPEM 37-th iteration
Under the central field approximation, the effective charge of CuII is: 25.776
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5742384328292118
The energies of electrons are:
[[['CuII', '2p3/2', 933.977, [2, 1, 1.5]], ['CuII', '2p1/2', 953.979, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.446], ['CuII', '2p3/2', 943.474], ['CuII', '2p1/2', 962.306]]]
Rp:47.048 | Rwp:53.251 | Rsquare:310.507
WPEM 38-th iteration
Under the central field approximation, the effective charge of CuII is: 25.776
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5751808651457964
The energies of electrons are:
[[['CuII', '2p3/2', 933.978, [2, 1, 1.5]], ['CuII', '2p1/2', 953.98, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.446], ['CuII', '2p3/2', 943.473], ['CuII', '2p1/2', 962.305]]]
Rp:47.055 | Rwp:53.256 | Rsquare:310.584
WPEM 39-th iteration
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 80%|βββββββββββββββββββββββββββββββββββ | 40/50 [00:00<00:00, 41.60it/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 90%|βββββββββββββββββββββββββββββββββββββββ | 45/50 [00:01<00:00, 41.77it/s]
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Under the central field approximation, the effective charge of CuII is: 25.776
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5761039142795297
The energies of electrons are:
[[['CuII', '2p3/2', 933.979, [2, 1, 1.5]], ['CuII', '2p1/2', 953.981, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.446], ['CuII', '2p3/2', 943.472], ['CuII', '2p1/2', 962.304]]]
Rp:47.063 | Rwp:53.262 | Rsquare:310.657
WPEM 40-th iteration
Under the central field approximation, the effective charge of CuII is: 25.776
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.577007586734658
The energies of electrons are:
[[['CuII', '2p3/2', 933.98, [2, 1, 1.5]], ['CuII', '2p1/2', 953.982, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.446], ['CuII', '2p3/2', 943.472], ['CuII', '2p1/2', 962.303]]]
Rp:47.070 | Rwp:53.266 | Rsquare:310.726
WPEM 41-th iteration
Under the central field approximation, the effective charge of CuII is: 25.775
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5778919101049942
The energies of electrons are:
[[['CuII', '2p3/2', 933.983, [2, 1, 1.5]], ['CuII', '2p1/2', 953.982, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.445], ['CuII', '2p3/2', 943.471], ['CuII', '2p1/2', 962.302]]]
Rp:47.075 | Rwp:53.269 | Rsquare:310.775
WPEM 42-th iteration
Under the central field approximation, the effective charge of CuII is: 25.775
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5787566161284525
The energies of electrons are:
[[['CuII', '2p3/2', 933.984, [2, 1, 1.5]], ['CuII', '2p1/2', 953.983, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.445], ['CuII', '2p3/2', 943.47], ['CuII', '2p1/2', 962.301]]]
Rp:47.082 | Rwp:53.274 | Rsquare:310.838
WPEM 43-th iteration
Under the central field approximation, the effective charge of CuII is: 25.775
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5796023832221879
The energies of electrons are:
[[['CuII', '2p3/2', 933.985, [2, 1, 1.5]], ['CuII', '2p1/2', 953.984, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.445], ['CuII', '2p3/2', 943.469], ['CuII', '2p1/2', 962.3]]]
Rp:47.088 | Rwp:53.278 | Rsquare:310.897
WPEM 44-th iteration
Under the central field approximation, the effective charge of CuII is: 25.775
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.580429346649011
The energies of electrons are:
[[['CuII', '2p3/2', 933.986, [2, 1, 1.5]], ['CuII', '2p1/2', 953.985, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.445], ['CuII', '2p3/2', 943.468], ['CuII', '2p1/2', 962.299]]]
Rp:47.094 | Rwp:53.282 | Rsquare:310.953
WPEM 45-th iteration
Under the central field approximation, the effective charge of CuII is: 25.775
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5812376463631543
The energies of electrons are:
[[['CuII', '2p3/2', 933.986, [2, 1, 1.5]], ['CuII', '2p1/2', 953.986, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.445], ['CuII', '2p3/2', 943.468], ['CuII', '2p1/2', 962.298]]]
Rp:47.100 | Rwp:53.286 | Rsquare:311.006
WPEM 46-th iteration
Under the central field approximation, the effective charge of CuII is: 25.774
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5820274758618512
The energies of electrons are:
[[['CuII', '2p3/2', 933.989, [2, 1, 1.5]], ['CuII', '2p1/2', 953.985, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.445], ['CuII', '2p3/2', 943.467], ['CuII', '2p1/2', 962.298]]]
Rp:47.104 | Rwp:53.287 | Rsquare:311.041
WPEM 47-th iteration
Under the central field approximation, the effective charge of CuII is: 25.774
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5827986841757195
The energies of electrons are:
[[['CuII', '2p3/2', 933.99, [2, 1, 1.5]], ['CuII', '2p1/2', 953.986, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.445], ['CuII', '2p3/2', 943.466], ['CuII', '2p1/2', 962.297]]]
Rp:47.110 | Rwp:53.291 | Rsquare:311.089
WPEM 48-th iteration
Under the central field approximation, the effective charge of CuII is: 25.774
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5835520752315267
The energies of electrons are:
[[['CuII', '2p3/2', 933.99, [2, 1, 1.5]], ['CuII', '2p1/2', 953.987, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.445], ['CuII', '2p3/2', 943.465], ['CuII', '2p1/2', 962.296]]]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>100%|βββββββββββββββββββββββββββββββββββββββββββ| 50/50 [00:01<00:00, 42.14it/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>100%|βββββββββββββββββββββββββββββββββββββββββββ| 50/50 [00:01<00:00, 42.20it/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Rp:47.115 | Rwp:53.294 | Rsquare:311.135
WPEM 49-th iteration
Under the central field approximation, the effective charge of CuII is: 25.774
The Integrated Energy ratio for satellite peak of [('CuII', '2p3/2'), ('CuII', '2p1/2')] is 0.5842878717303636
The energies of electrons are:
[[['CuII', '2p3/2', 933.991, [2, 1, 1.5]], ['CuII', '2p1/2', 953.987, [2, 1, 0.5]]]]
The energies of satellite peak are:
[[['CuII', '2p3/2', 941.444], ['CuII', '2p3/2', 943.465], ['CuII', '2p1/2', 962.296]]]
Rp:47.120 | Rwp:53.297 | Rsquare:311.179
After update the background : Rp = 47.075 | Rwp = 53.216 | Rsquare = 310.640
</pre></div>
</div>
<img alt="../../_images/e771332a0c9b055fc96971b62ad709146904438581e58c52ce40bb694f5637b4.png" src="../../_images/e771332a0c9b055fc96971b62ad709146904438581e58c52ce40bb694f5637b4.png" />
<img alt="../../_images/1790b28cbec61f61dc4307fca2564753bcf459a701a8345baefcbb07126d19b1.png" src="../../_images/1790b28cbec61f61dc4307fca2564753bcf459a701a8345baefcbb07126d19b1.png" />
<img alt="../../_images/2af622ccdec2bd40c06a663dbcef632af0718e6e48228cffd81521607078c23a.png" src="../../_images/2af622ccdec2bd40c06a663dbcef632af0718e6e48228cffd81521607078c23a.png" />
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>50-th iterations, reach the maximum number of iteration steps.
Rp: 47.075
Rwp: 53.216
WPEM-XPS program running time : 0 hours 0 minute 5 second
</pre></div>
</div>
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>'0 hours 0 minute 5 second '
</pre></div>
</div>
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span><Figure size 640x480 with 0 Axes>
</pre></div>
</div>
</div>
</div>
<blockquote>
<div><p><strong>The results are saved in the <code class="docutils literal notranslate"><span class="pre">XPSFittingProfile</span></code> folder.</strong></p>
</div></blockquote>
</section>
</section>
<script type="text/x-thebe-config">
{
requestKernel: true,
binderOptions: {
repo: "binder-examples/jupyter-stacks-datascience",
ref: "master",
},
codeMirrorConfig: {
theme: "abcdef",
mode: "python"
},
kernelOptions: {
name: "python3",
path: "./tutorials/XPS"
},
predefinedOutput: true
}
</script>
<script>kernelName = 'python3'</script>
</article>
<footer class="prev-next-footer d-print-none">
<div class="prev-next-area">
<a class="left-prev"
href="../EXAFS/7th.html"
title="previous page">
<i class="fa-solid fa-angle-left"></i>
<div class="prev-next-info">
<p class="prev-next-subtitle">previous</p>
<p class="prev-next-title">The tutorial 7th</p>
</div>
</a>
</div>
</footer>
</div>
<div class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">
<div class="sidebar-secondary-item">
<div class="page-toc tocsection onthispage">
<i class="fa-solid fa-list"></i> Contents
</div>
<nav class="bd-toc-nav page-toc">
<ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#coding">coding</a></li>
</ul>
</nav></div>
</div></div>
</div>
<footer class="bd-footer-content">
<div class="bd-footer-content__inner container">
<div class="footer-item">
<p class="component-author">
By Bin CAO
</p>
</div>
<div class="footer-item">
<p class="copyright">
Β© Copyright 2023.
<br/>
</p>
</div>
<div class="footer-item">
</div>
<div class="footer-item">
</div>
</div>
</footer>
</main>
</div>
</div>
<!-- Scripts loaded after <body> so the DOM is not blocked -->
<script src="../../_static/scripts/bootstrap.js?digest=dfe6caa3a7d634c4db9b"></script>
<script src="../../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b"></script>
<footer class="bd-footer">
</footer>
</body>
</html> |