Upload 224 files
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +4 -0
- _images/07a15745c6aff3461fc516acad9ce399c4a64731d4a272a67ccafa84695c1b77.png +3 -0
- _images/0b58998ae7da7745fd267485168fd0ece51a94fae597333c80783818f2e0a50c.png +3 -0
- _images/11049e0b7d8aafa36de7c37dfe510fdeca704dcf18e8ccc5a933a5e75f64b536.png +3 -0
- _images/16171239acea6bfcc15d02295c612fc20ca8c05252e8d4be1da7c0185068dd57.png +3 -0
- _images/1790b28cbec61f61dc4307fca2564753bcf459a701a8345baefcbb07126d19b1.png +3 -0
- _images/1822dbaded7ddbb4011058fe3eb87fb8c1b0241807db01fdb1edfda79d9c3776.png +3 -0
- _images/184c812586bfa204ac97b12bb043e22e7d0d447cb007c93138aadd2df9d196ac.png +3 -0
- _images/190307293664ee80df15ed5b3a02370514e177dd9b071a827e3f4f0697d46f73.png +3 -0
- _images/198d89c1fe0df80d28e64e7923407a7eb6146420ede030df63e4b1aedb412ff3.png +3 -0
- _images/2349a84c851b39ab1defb4a22a91d64c6b6be3ca5ac1cb5e09339f5f1ab4f7da.png +3 -0
- _images/23d9c635b98fe46659fb8811232e58dee1e996ab779c61be4eb3f9a226d9ede1.png +3 -0
- _images/2af622ccdec2bd40c06a663dbcef632af0718e6e48228cffd81521607078c23a.png +3 -0
- _images/2cb49ef4b8b9a858a1a81b076fe09541932a4afc096dbc111d46a8d2a674837c.png +3 -0
- _images/350eacfe86d4933fdfbbf4cdaede6f5202c37847400afaa29fc6b266efe8ff9e.png +3 -0
- _images/3eaa898aef9ba24a0e01139d007f9079ba2a5c6bf7e8f9e58cb2cddaa8371af7.png +3 -0
- _images/3f9788e3891be9e2c2a01f1802df05126c2975204c7b744dfcc710e71b151bb8.png +3 -0
- _images/4634815317a4ca0fdf0ef513b3352aa97cadb6c67d8dfc8ed5d25453629152c0.png +3 -0
- _images/58824b6960fff256e798bbe1b8c3831661ef1bef2de5f090c5afd7d5ea2f3d5e.png +3 -0
- _images/60c6db4eaa2cab53d24386ec1b18c1a9bea706b82bb6b2710ff4247625087ac7.png +3 -0
- _images/640c050d7a8b0947512e661730a6f6b55abd12f65bc00a6743257f3c2b3d73c7.png +3 -0
- _images/6fe8b2536c2676bf80ea13168e69ad6459ebba1839a932afca28015fb415b034.png +3 -0
- _images/71c85b5daec8a90059dbf2f5589b75579eaba24753816838cff228188dab8aa6.png +3 -0
- _images/75f1d073f3053cc85f0d230d73b75af79ff881f31ea9fc9796d091f4dfb4ea7c.png +3 -0
- _images/7680f47f49a9945e5fbc83739b94877a360767ec80cfeb6f5d5dadaec0c20a62.png +3 -0
- _images/775928bcfdc02036451df7b0bec83cb51ef9e3dc96a7c68f96ebb63ff7f2f43a.png +3 -0
- _images/8a813805cc7ebe3826e0ddc0f60f87ee242453014a346ea0e063cb3c4ef21efd.png +3 -0
- _images/9a72e2a8dccbcf64abfeb8a2eab9fa988629866dce60f476adac1acee635b9c7.png +3 -0
- _images/a1c5e02b0a43f465db118e21b6e91036a67d7f6a53cd71425b2b36d8fc314392.png +3 -0
- _images/a6584bddb6d21fbca1a7ebf77fa2722fae6ff7f8bb01397a52a7cb0d23d80ce6.png +3 -0
- _images/a7d040a67d12e14e2a70047ab928c73da14f75827fb366f931965173a18ff060.png +3 -0
- _images/a91d26804a1cfc50a4e3b9639e666b5dff2976389100e03f692b7fc6543373d5.png +3 -0
- _images/aef21596334ce6f490a2526bc5fad55f09e54a82db7a9cd1be5d6bbd153f14ff.png +3 -0
- _images/b5a72fd26a03dfd34e3bfd3e93d7b3596685ab907d7206dc7e705bfced3c28c6.png +3 -0
- _images/bd82c740555d0962c82da60bb973052160e8eb6ac62a5b2e7291124e8db988d0.png +3 -0
- _images/c7e44c3fc7740e5a79ce2cc3e1ebc2e12bd13be156fb85f6656a54c8aa94bb1e.png +3 -0
- _images/d0140e8788bf50ee84a5949d208a9c8f5738506a8d1fac12dc089967d739a6b6.png +3 -0
- _images/d787df8081dcd8cf12cefc99637d7a8d3e1b3204bf8edf07912ac1c716a7771d.png +3 -0
- _images/dbd9c98931627aa94f2069845881a0af95176ac30003dd4c430e879b7ca9568b.png +3 -0
- _images/e771332a0c9b055fc96971b62ad709146904438581e58c52ce40bb694f5637b4.png +3 -0
- _images/e9cf87a46b39dd7eacdbf48da1e434b299dd03916c167b0b3befb74334a06440.png +3 -0
- _images/f4c785d068420e70ec2042397c3ff5b8b873c44328118d7a3929f902fefb3a10.png +3 -0
- _sources/.DS_Store +0 -0
- _sources/intro.md +37 -0
- _sources/parameter.md +141 -0
- _sources/resultsFiles.md +136 -0
- _sources/tutorials/.DS_Store +0 -0
- _sources/tutorials/EXAFS/7th.md +39 -0
- _sources/tutorials/XPS/8th.md +71 -0
- _sources/tutorials/amorphous/3rd.md +85 -0
.gitattributes
CHANGED
|
@@ -57,3 +57,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
_static/vendor/fontawesome/6.5.2/webfonts/fa-brands-400.ttf filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
_static/vendor/fontawesome/6.5.2/webfonts/fa-brands-400.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
_static/vendor/fontawesome/6.5.2/webfonts/fa-solid-900.ttf filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
_static/vendor/fontawesome/6.5.2/webfonts/fa-solid-900.woff2 filter=lfs diff=lfs merge=lfs -text
|
_images/07a15745c6aff3461fc516acad9ce399c4a64731d4a272a67ccafa84695c1b77.png
ADDED
|
Git LFS Details
|
_images/0b58998ae7da7745fd267485168fd0ece51a94fae597333c80783818f2e0a50c.png
ADDED
|
Git LFS Details
|
_images/11049e0b7d8aafa36de7c37dfe510fdeca704dcf18e8ccc5a933a5e75f64b536.png
ADDED
|
Git LFS Details
|
_images/16171239acea6bfcc15d02295c612fc20ca8c05252e8d4be1da7c0185068dd57.png
ADDED
|
Git LFS Details
|
_images/1790b28cbec61f61dc4307fca2564753bcf459a701a8345baefcbb07126d19b1.png
ADDED
|
Git LFS Details
|
_images/1822dbaded7ddbb4011058fe3eb87fb8c1b0241807db01fdb1edfda79d9c3776.png
ADDED
|
Git LFS Details
|
_images/184c812586bfa204ac97b12bb043e22e7d0d447cb007c93138aadd2df9d196ac.png
ADDED
|
Git LFS Details
|
_images/190307293664ee80df15ed5b3a02370514e177dd9b071a827e3f4f0697d46f73.png
ADDED
|
Git LFS Details
|
_images/198d89c1fe0df80d28e64e7923407a7eb6146420ede030df63e4b1aedb412ff3.png
ADDED
|
Git LFS Details
|
_images/2349a84c851b39ab1defb4a22a91d64c6b6be3ca5ac1cb5e09339f5f1ab4f7da.png
ADDED
|
Git LFS Details
|
_images/23d9c635b98fe46659fb8811232e58dee1e996ab779c61be4eb3f9a226d9ede1.png
ADDED
|
Git LFS Details
|
_images/2af622ccdec2bd40c06a663dbcef632af0718e6e48228cffd81521607078c23a.png
ADDED
|
Git LFS Details
|
_images/2cb49ef4b8b9a858a1a81b076fe09541932a4afc096dbc111d46a8d2a674837c.png
ADDED
|
Git LFS Details
|
_images/350eacfe86d4933fdfbbf4cdaede6f5202c37847400afaa29fc6b266efe8ff9e.png
ADDED
|
Git LFS Details
|
_images/3eaa898aef9ba24a0e01139d007f9079ba2a5c6bf7e8f9e58cb2cddaa8371af7.png
ADDED
|
Git LFS Details
|
_images/3f9788e3891be9e2c2a01f1802df05126c2975204c7b744dfcc710e71b151bb8.png
ADDED
|
Git LFS Details
|
_images/4634815317a4ca0fdf0ef513b3352aa97cadb6c67d8dfc8ed5d25453629152c0.png
ADDED
|
Git LFS Details
|
_images/58824b6960fff256e798bbe1b8c3831661ef1bef2de5f090c5afd7d5ea2f3d5e.png
ADDED
|
Git LFS Details
|
_images/60c6db4eaa2cab53d24386ec1b18c1a9bea706b82bb6b2710ff4247625087ac7.png
ADDED
|
Git LFS Details
|
_images/640c050d7a8b0947512e661730a6f6b55abd12f65bc00a6743257f3c2b3d73c7.png
ADDED
|
Git LFS Details
|
_images/6fe8b2536c2676bf80ea13168e69ad6459ebba1839a932afca28015fb415b034.png
ADDED
|
Git LFS Details
|
_images/71c85b5daec8a90059dbf2f5589b75579eaba24753816838cff228188dab8aa6.png
ADDED
|
Git LFS Details
|
_images/75f1d073f3053cc85f0d230d73b75af79ff881f31ea9fc9796d091f4dfb4ea7c.png
ADDED
|
Git LFS Details
|
_images/7680f47f49a9945e5fbc83739b94877a360767ec80cfeb6f5d5dadaec0c20a62.png
ADDED
|
Git LFS Details
|
_images/775928bcfdc02036451df7b0bec83cb51ef9e3dc96a7c68f96ebb63ff7f2f43a.png
ADDED
|
Git LFS Details
|
_images/8a813805cc7ebe3826e0ddc0f60f87ee242453014a346ea0e063cb3c4ef21efd.png
ADDED
|
Git LFS Details
|
_images/9a72e2a8dccbcf64abfeb8a2eab9fa988629866dce60f476adac1acee635b9c7.png
ADDED
|
Git LFS Details
|
_images/a1c5e02b0a43f465db118e21b6e91036a67d7f6a53cd71425b2b36d8fc314392.png
ADDED
|
Git LFS Details
|
_images/a6584bddb6d21fbca1a7ebf77fa2722fae6ff7f8bb01397a52a7cb0d23d80ce6.png
ADDED
|
Git LFS Details
|
_images/a7d040a67d12e14e2a70047ab928c73da14f75827fb366f931965173a18ff060.png
ADDED
|
Git LFS Details
|
_images/a91d26804a1cfc50a4e3b9639e666b5dff2976389100e03f692b7fc6543373d5.png
ADDED
|
Git LFS Details
|
_images/aef21596334ce6f490a2526bc5fad55f09e54a82db7a9cd1be5d6bbd153f14ff.png
ADDED
|
Git LFS Details
|
_images/b5a72fd26a03dfd34e3bfd3e93d7b3596685ab907d7206dc7e705bfced3c28c6.png
ADDED
|
Git LFS Details
|
_images/bd82c740555d0962c82da60bb973052160e8eb6ac62a5b2e7291124e8db988d0.png
ADDED
|
Git LFS Details
|
_images/c7e44c3fc7740e5a79ce2cc3e1ebc2e12bd13be156fb85f6656a54c8aa94bb1e.png
ADDED
|
Git LFS Details
|
_images/d0140e8788bf50ee84a5949d208a9c8f5738506a8d1fac12dc089967d739a6b6.png
ADDED
|
Git LFS Details
|
_images/d787df8081dcd8cf12cefc99637d7a8d3e1b3204bf8edf07912ac1c716a7771d.png
ADDED
|
Git LFS Details
|
_images/dbd9c98931627aa94f2069845881a0af95176ac30003dd4c430e879b7ca9568b.png
ADDED
|
Git LFS Details
|
_images/e771332a0c9b055fc96971b62ad709146904438581e58c52ce40bb694f5637b4.png
ADDED
|
Git LFS Details
|
_images/e9cf87a46b39dd7eacdbf48da1e434b299dd03916c167b0b3befb74334a06440.png
ADDED
|
Git LFS Details
|
_images/f4c785d068420e70ec2042397c3ff5b8b873c44328118d7a3929f902fefb3a10.png
ADDED
|
Git LFS Details
|
_sources/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
_sources/intro.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Welcome to PyXplore
|
| 2 |
+
|
| 3 |
+
**PyXplore** is a modern, extensible toolkit designed for the high-throughput analysis and modeling of X-ray based data, including XRD (X-ray Diffraction), XPS (X-ray Photoelectron Spectroscopy), and EXAFS (Extended X-ray Absorption Fine Structure).
|
| 4 |
+
|
| 5 |
+
This project empowers materials scientists and researchers to extract structural information, fit spectral profiles, simulate atomic arrangements, and visualize results — all in a reproducible, notebook-driven environment.
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
## 🔍 Key Features
|
| 10 |
+
|
| 11 |
+
- ✅ **Peak Decomposition & Profile Fitting**: Based on WPEM (Whole Pattern fitting of powder X-ray diffraction by Expectation Maximum)
|
| 12 |
+
- 🔬 **X-ray Spectrum Support**: XRD, XPS, and EXAFS workflows integrated
|
| 13 |
+
- 🧪 **Amorphous & Crystalline Materials**: Suitable for mixed-phase materials and complex disordered states
|
| 14 |
+
- 🧬 **Atomic Structure Simulation**: Support for solid solution models and local distortion
|
| 15 |
+
- 📊 **Interactive Visualization**: Publication-quality plots, contour maps, and data exports
|
| 16 |
+
- 📚 **Notebook-Based Tutorials**: Learn by doing with built-in step-by-step guides
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
## 📂 Documentation Overview
|
| 21 |
+
|
| 22 |
+
This documentation is organized as a Book, with the following structure:
|
| 23 |
+
|
| 24 |
+
- `parameter.md`: Overview of configuration options and input parameters
|
| 25 |
+
- `ResultsFiles.md`: Output file types and their interpretations
|
| 26 |
+
- `Tutorials/`: A complete collection of interactive notebooks for each use case
|
| 27 |
+
- `references.bib`: Citation file for relevant academic work
|
| 28 |
+
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
## 🚀 Get Started
|
| 32 |
+
|
| 33 |
+
To begin, navigate to the [Tutorials](Tutorials/index.md) section or explore the [parameter configuration](parameter.md) options.
|
| 34 |
+
|
| 35 |
+
For any issues or contributions, feel free to open a GitHub issue or submit a pull request.
|
| 36 |
+
|
| 37 |
+
Happy exploring with **PyXplore**!
|
_sources/parameter.md
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# Parameters and Functions Documentation
|
| 3 |
+
|
| 4 |
+
## Module: WPEM
|
| 5 |
+
WPEM is the main call interface for diffraction refinement and analysis software, including various functions and subroutines for XRD analysis, background fitting, amorphous fitting, and more.
|
| 6 |
+
|
| 7 |
+
### Author
|
| 8 |
+
- **Bin CAO**
|
| 9 |
+
Email: [bincao4-c@my.cityu.edu.hk](mailto:bincao4-c@my.cityu.edu.hk)
|
| 10 |
+
GitHub: [https://github.com/Bin-Cao/PyWPEM](https://github.com/Bin-Cao/PyWPEM)
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
## Functions Overview
|
| 15 |
+
|
| 16 |
+
### 1. `WPEMsolver`
|
| 17 |
+
**From:** `EMBraggOpt.EMBraggSolver`
|
| 18 |
+
Solver for XRD profile refinement and analysis.
|
| 19 |
+
|
| 20 |
+
### 2. `TwiceFilter`, `convert_file`, `read_xrdml`
|
| 21 |
+
**From:** `Background.BacDeduct`
|
| 22 |
+
- **`TwiceFilter`**: Applies filtering techniques for background adjustments.
|
| 23 |
+
- **`convert_file`**: Converts XRD data files to the required format.
|
| 24 |
+
- **`read_xrdml`**: Reads `.xrdml` files for diffraction data.
|
| 25 |
+
|
| 26 |
+
### 3. `Amorphous_fitting`
|
| 27 |
+
**From:** `Amorphous.fitting.AmorphousFitting`
|
| 28 |
+
Fitting routine for amorphous phase diffraction data.
|
| 29 |
+
|
| 30 |
+
### 4. `RadialDistribution`
|
| 31 |
+
**From:** `Amorphous.QuantitativeCalculation.AmorphousRDF`
|
| 32 |
+
Calculates the radial distribution function (RDF) for amorphous materials.
|
| 33 |
+
|
| 34 |
+
### 5. `Decomposedpeaks`
|
| 35 |
+
**From:** `DecomposePlot.plot`
|
| 36 |
+
Decomposes diffraction peaks for detailed analysis.
|
| 37 |
+
|
| 38 |
+
### 6. `XRD_profile`
|
| 39 |
+
**From:** `XRDSimulation.Simulation`
|
| 40 |
+
Simulates XRD profiles for given crystal structures.
|
| 41 |
+
|
| 42 |
+
### 7. `profile`
|
| 43 |
+
**From:** `Extinction.XRDpre`
|
| 44 |
+
Generates XRD profiles with customizable parameters.
|
| 45 |
+
|
| 46 |
+
### 8. `BgolearnOpt`
|
| 47 |
+
**From:** `StructureOpt.SiteOpt`
|
| 48 |
+
Performs optimization for substitutional search and refinement.
|
| 49 |
+
|
| 50 |
+
### 9. `XPSsolver`
|
| 51 |
+
**From:** `WPEMXPS.XPSEM`
|
| 52 |
+
Solver for X-ray Photoelectron Spectroscopy (XPS) data refinement.
|
| 53 |
+
|
| 54 |
+
### 10. `EXAFS`
|
| 55 |
+
**From:** `WPEMXAS.EXAFS`
|
| 56 |
+
Performs Extended X-ray Absorption Fine Structure (EXAFS) analysis.
|
| 57 |
+
|
| 58 |
+
### 11. `CrystalGraph`
|
| 59 |
+
**From:** `GraphStructure.graph`
|
| 60 |
+
Generates crystal graphs for structural analysis.
|
| 61 |
+
|
| 62 |
+
---
|
| 63 |
+
|
| 64 |
+
## Executable Information
|
| 65 |
+
|
| 66 |
+
### Execution Information
|
| 67 |
+
- **Software Name**: WPEM (Diffraction Refinement Software)
|
| 68 |
+
- **Author**: Bin Cao, Advanced Materials Thrust, Hong Kong University of Science and Technology (Guangzhou) | Department of physics, City University of Hong Kong
|
| 69 |
+
- **URL**: [https://github.com/Bin-Cao/WPEM](https://github.com/Bin-Cao/WPEM)
|
| 70 |
+
- **Execution Time**: Dynamically generated at runtime.
|
| 71 |
+
|
| 72 |
+
---
|
| 73 |
+
|
| 74 |
+
## Key Functions
|
| 75 |
+
|
| 76 |
+
### `XRDfit`
|
| 77 |
+
#### Parameters:
|
| 78 |
+
- **`wavelength`**: List of diffraction wavelengths.
|
| 79 |
+
- **`Var`**: Statistical variance of the background.
|
| 80 |
+
- **`Lattice_constants`**: Initial lattice constants for refinement.
|
| 81 |
+
- **`no_bac_intensity_file`**, **`original_file`**, **`bacground_file`**: Input data files.
|
| 82 |
+
- **`two_theta_range`**: Range of diffraction angles to analyze.
|
| 83 |
+
- **`density_list`**: Densities of crystals (optional).
|
| 84 |
+
- **`MODEL`**: Mode of analysis (`'REFINEMENT'` or `'ANALYSIS'`).
|
| 85 |
+
|
| 86 |
+
#### Returns:
|
| 87 |
+
- Refined lattice constants, R-factor values, and runtime details.
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
### `BackgroundFit`
|
| 92 |
+
#### Parameters:
|
| 93 |
+
- **`intensity_csv`**: Input XRD data file.
|
| 94 |
+
- **`LFctg`, `lowAngleRange`, `bac_num`, `bac_split`**: Background filter parameters.
|
| 95 |
+
- **`window_length`, `polyorder`, `mode`**: Polynomial fitting settings.
|
| 96 |
+
|
| 97 |
+
#### Returns:
|
| 98 |
+
- Background distribution statistics.
|
| 99 |
+
|
| 100 |
+
---
|
| 101 |
+
|
| 102 |
+
### `FileTypeCovert`
|
| 103 |
+
#### Parameters:
|
| 104 |
+
- **`file_name`**: Source file name.
|
| 105 |
+
- **`file_type`**: Format of the input file (`'dat'` or `'xrdml'`).
|
| 106 |
+
|
| 107 |
+
#### Returns:
|
| 108 |
+
- Converted data.
|
| 109 |
+
|
| 110 |
+
---
|
| 111 |
+
|
| 112 |
+
### `Amorphous_fit`
|
| 113 |
+
#### Parameters:
|
| 114 |
+
- **`mix_component`**: Number of amorphous peaks.
|
| 115 |
+
- **`amor_file`**: Amorphous data file.
|
| 116 |
+
- **`ang_range`**: Angle range for refinement.
|
| 117 |
+
|
| 118 |
+
#### Returns:
|
| 119 |
+
- Amorphous fit results.
|
| 120 |
+
|
| 121 |
+
---
|
| 122 |
+
|
| 123 |
+
### `CryGraph`
|
| 124 |
+
#### Parameters:
|
| 125 |
+
- **`folder_path`**: Path to save CIF files.
|
| 126 |
+
- **`BK_boundary_condition`**: Whether to apply Bon Kaman boundary conditions.
|
| 127 |
+
|
| 128 |
+
#### Returns:
|
| 129 |
+
- Crystal structure graphs.
|
| 130 |
+
|
| 131 |
+
---
|
| 132 |
+
|
| 133 |
+
### Additional Functions
|
| 134 |
+
- **`AmorphousRDFun`**: Computes radial distribution function for amorphous phases.
|
| 135 |
+
- **`Plot_Components`**: Visualizes decomposed XRD components.
|
| 136 |
+
- **`XRDSimulation`**: Simulates XRD patterns for given CIF files.
|
| 137 |
+
- **`CIFpreprocess`**: Processes CIF files for XRD analysis.
|
| 138 |
+
- **`SubstitutionalSearch`**: Conducts substitutional optimization searches.
|
| 139 |
+
- **`XPSfit`**: Fits XPS data for electron binding energy analysis.
|
| 140 |
+
- **`EXAFSfit`**: Performs EXAFS analysis for structural and bonding studies.
|
| 141 |
+
|
_sources/resultsFiles.md
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# Results Files Documentation
|
| 3 |
+
|
| 4 |
+
This page provides an overview of the output files generated by the **WPEM** software for diffraction refinement, background fitting, amorphous component analysis, solid solution modeling, and simulation tasks.
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
## General Information
|
| 9 |
+
|
| 10 |
+
All results are saved in the **working directory** (`work_dir`), which can be specified by the user during execution. If not specified, outputs default to the current directory.
|
| 11 |
+
|
| 12 |
+
### File Naming Conventions
|
| 13 |
+
|
| 14 |
+
* **Prefix**: Indicates the task type (e.g., `XRD`, `Background`, `Amorphous`, etc.).
|
| 15 |
+
* **Suffix**: Usually includes a timestamp to prevent file overwriting.
|
| 16 |
+
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
## Output Files by Function
|
| 20 |
+
|
| 21 |
+
### 1. **Background Fitting**
|
| 22 |
+
|
| 23 |
+
**Folder**: `ConvertedDocuments`
|
| 24 |
+
|
| 25 |
+
* `bac.csv`: Fitted background intensities.
|
| 26 |
+
* `no_bac_intensity.csv`: Diffraction signals after background removal.
|
| 27 |
+
* `bac_points.csv`: Selected background points.
|
| 28 |
+
* `intensity_fft.csv`: Diffraction signals processed by Fast Fourier Transform.
|
| 29 |
+
* `de_backgroundfittingcurve.png`: Plot of the original data, fitted background, and background-subtracted signals.
|
| 30 |
+
* `backgroundfittingcurve.png`: Visualization showing the raw data, selected background points, and the fitted background curve.
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
### 2. **XRD Refinement**
|
| 35 |
+
|
| 36 |
+
**Folder**: `WPEMFittingResults`
|
| 37 |
+
|
| 38 |
+
* `CrystalSystem0_WPEMout_<time>.csv`: Refined crystal information, including:
|
| 39 |
+
|
| 40 |
+
* `code`: Indicates Kα1 or Kα2 origin.
|
| 41 |
+
* `H`, `K`, `L`: Miller indices.
|
| 42 |
+
* `wi`, `Ai`, `L_gamma_i`, `G_sigma2_i`: Peak shape parameters (refer to the WPEM paper for details).
|
| 43 |
+
* `mu_i`: Peak positions.
|
| 44 |
+
* `intensity`: Peak intensities.
|
| 45 |
+
* `system0`, `system1`, etc.: Refers to different phases.
|
| 46 |
+
* `hkl0_<time>.csv`: Diffraction indices for each peak in phase 0.
|
| 47 |
+
* `WPEMfittingProfile_<time>.csv`: WPEM-generated fitting profile.
|
| 48 |
+
* `WPEMPeakParas_<time>.csv`: Peak location and shape parameters, with profile fitting quality metrics.
|
| 49 |
+
* `ResidualWPEM_fittingresult_<time>.png`: Plot comparing fitted results with experimental data.
|
| 50 |
+
|
| 51 |
+
---
|
| 52 |
+
|
| 53 |
+
### 3. **Amorphous Fitting**
|
| 54 |
+
|
| 55 |
+
**Folder**: `DecomposedComponents`
|
| 56 |
+
|
| 57 |
+
* `Amorphous.csv`: Extracted amorphous signals.
|
| 58 |
+
* `M_Amorphous_componentsX.csv`: Identified amorphous peak components (X = index).
|
| 59 |
+
* `upbackground.csv`: Updated background after amorphous subtraction.
|
| 60 |
+
* `Decomposed_peaks.png`: Visualization of decomposed crystalline and amorphous components.
|
| 61 |
+
|
| 62 |
+
---
|
| 63 |
+
|
| 64 |
+
### 4. **CIF Parsing**
|
| 65 |
+
|
| 66 |
+
**Folder**: `output_xrd`
|
| 67 |
+
|
| 68 |
+
* `NAMEHKL.csv`: Calculated diffraction indices, angles, and theoretical intensities.
|
| 69 |
+
* `NAME_Extinction_peak.csv`: List of extinction peaks caused by geometrical and systematic extinction.
|
| 70 |
+
|
| 71 |
+
---
|
| 72 |
+
|
| 73 |
+
### 5. **Solid Solution Modeling**
|
| 74 |
+
|
| 75 |
+
**Folder**: `WPEMSitOpt`
|
| 76 |
+
|
| 77 |
+
* `substitutional.png`: Fitting result of the optimized solid solution structure.
|
| 78 |
+
* `DecompositionPlot.png`: Overlay of decomposed peaks and experimental data.
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
### 6. **XRD Simulation**
|
| 83 |
+
|
| 84 |
+
**Function**: `XRDSimulation`
|
| 85 |
+
|
| 86 |
+
* `Simulated_XRDPattern.csv`: Simulated XRD pattern based on the provided CIF file.
|
| 87 |
+
* `SimulatedPeaks.csv`: Simulated peak positions and intensities.
|
| 88 |
+
* `SimulationPlot.png`: Visualization of the simulated XRD pattern.
|
| 89 |
+
|
| 90 |
+
---
|
| 91 |
+
|
| 92 |
+
### 7. **CIF Preprocessing**
|
| 93 |
+
|
| 94 |
+
**Function**: `CIFpreprocess`
|
| 95 |
+
|
| 96 |
+
* `Processed_CIF_LatticeConstants.csv`: Extracted lattice constants from CIF.
|
| 97 |
+
* `Processed_CIF_Structure.csv`: Atomic positions and unit cell parameters.
|
| 98 |
+
* `ProcessedCIFPlot.png`: Visualization of the crystal structure.
|
| 99 |
+
|
| 100 |
+
---
|
| 101 |
+
|
| 102 |
+
### 8. **Substitutional Search**
|
| 103 |
+
|
| 104 |
+
**Function**: `SubstitutionalSearch`
|
| 105 |
+
|
| 106 |
+
* `SubstitutionalSearchResults.csv`: Possible substitutional configurations and their likelihoods.
|
| 107 |
+
|
| 108 |
+
---
|
| 109 |
+
|
| 110 |
+
### 9. **XPS Analysis**
|
| 111 |
+
|
| 112 |
+
**Folder**: `XPSFittingProfile`
|
| 113 |
+
|
| 114 |
+
* `XPSfittingProfile_<time>.csv`: Fitted XPS spectrum data.
|
| 115 |
+
* `XPSPeakParas_<time>.csv`: Peak parameters including binding energies, areas, shapes, and fitting quality.
|
| 116 |
+
* `WPEM_fittingresult.png`: Decomposed results of individual photoelectron peaks.
|
| 117 |
+
|
| 118 |
+
---
|
| 119 |
+
|
| 120 |
+
### 10. **EXAFS Analysis**
|
| 121 |
+
|
| 122 |
+
**Folder**: `XAFS` / `WXAFS`
|
| 123 |
+
|
| 124 |
+
* `FFT_EXAFS_unknown.png`: Radial distribution function representing local atomic structure.
|
| 125 |
+
* `interactive_plot.html`: Interactive 2D wavelet transform visualization.
|
| 126 |
+
|
| 127 |
+
---
|
| 128 |
+
|
| 129 |
+
## Notes
|
| 130 |
+
|
| 131 |
+
* All files are saved with descriptive names based on their function and timestamp.
|
| 132 |
+
* Figures are generated in `.png` format for easy interpretation.
|
| 133 |
+
* CSV files are widely compatible with data analysis tools such as Excel, Python, and MATLAB.
|
| 134 |
+
|
| 135 |
+
For further reference and source code, please visit the [WPEM GitHub Repository](https://github.com/Bin-Cao/PyWPEM).
|
| 136 |
+
|
_sources/tutorials/.DS_Store
ADDED
|
Binary file (8.2 kB). View file
|
|
|
_sources/tutorials/EXAFS/7th.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
jupytext:
|
| 3 |
+
formats: md:myst
|
| 4 |
+
text_representation:
|
| 5 |
+
extension: .md
|
| 6 |
+
format_name: myst
|
| 7 |
+
format_version: 0.13
|
| 8 |
+
jupytext_version: 1.11.5
|
| 9 |
+
kernelspec:
|
| 10 |
+
display_name: Python 3
|
| 11 |
+
language: python
|
| 12 |
+
name: python3
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# The tutorial 7th
|
| 16 |
+
Explains how PyXplore analyzes extended X-ray absorption fine structure (EXAFS) data.
|
| 17 |
+
|
| 18 |
+
## coding
|
| 19 |
+
|
| 20 |
+
> **1. Save your XAS data to the root directory and rename the file to `absorb.csv`.**
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
```{code-cell}
|
| 29 |
+
# import PyXplore package
|
| 30 |
+
from PyXplore import WPEM
|
| 31 |
+
import pandas as pd
|
| 32 |
+
|
| 33 |
+
WPEM.EXAFS('absorb.csv',de_bac = True).fit(first_cutoff_energy=22100,second_cutoff_energy=22400)
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
> **The result is saved in the `XAFS/EXAFS` folder.**
|
| 39 |
+
|
_sources/tutorials/XPS/8th.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
jupytext:
|
| 3 |
+
formats: md:myst
|
| 4 |
+
text_representation:
|
| 5 |
+
extension: .md
|
| 6 |
+
format_name: myst
|
| 7 |
+
format_version: 0.13
|
| 8 |
+
jupytext_version: 1.11.5
|
| 9 |
+
kernelspec:
|
| 10 |
+
display_name: Python 3
|
| 11 |
+
language: python
|
| 12 |
+
name: python3
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# The tutorial 8th
|
| 16 |
+
|
| 17 |
+
Describes how PyXplore processes X-ray photoelectron spectroscopy (XPS) data.
|
| 18 |
+
|
| 19 |
+
## coding
|
| 20 |
+
|
| 21 |
+
> **1. Save your XPS data to the root directory and rename the file to `int.csv`.**
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
```{code-cell}
|
| 27 |
+
# import PyXplore package
|
| 28 |
+
from PyXplore import WPEM
|
| 29 |
+
import pandas as pd
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
> **2. Parse your diffraction data (`bing energy`, intensity) and perform background processing.**
|
| 33 |
+
|
| 34 |
+
```{code-cell}
|
| 35 |
+
intensity_csv = pd.read_csv(r'int.csv',header=None )
|
| 36 |
+
var = WPEM.BackgroundFit(intensity_csv,segement=[[910,931],[948,952],[958,959],[966,970]],bac_num=120,Model='XPS',noise = 0.05,bac_var_type='multivariate gaussian')
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
> **3. After running the code, a new folder named `ConvertedDocuments` will be created in the root directory. This folder contains the background information.**
|
| 40 |
+
|
| 41 |
+
> **Copy the two important files — `bac.csv` and `no_bac_intensity.csv` — from `ConvertedDocuments` into the root directory, as they are required for the next steps.**
|
| 42 |
+
|
| 43 |
+
```{seealso}
|
| 44 |
+
A key difference with XPS is that the initial binding energy needs to be queried and input using two parameters: `AtomIdentifier` and `satellitePeaks`.**
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
```{code-cell}
|
| 50 |
+
|
| 51 |
+
AtomIdentifier = [['CuII','2p3/2',933.7,],['CuII','2p1/2',954,],]
|
| 52 |
+
satellitePeaks = [['CuII', '2p3/2',941.6,],['CuII','2p3/2',943.4],['CuII','2p1/2',962.5,],]
|
| 53 |
+
# The file name of non-background data
|
| 54 |
+
no_bac_intensity_file = "no_bac_intensity.csv"
|
| 55 |
+
# The file name of raw/original data
|
| 56 |
+
original_file = "int.csv"
|
| 57 |
+
# The file name of background data
|
| 58 |
+
bacground_file = "bac.csv"
|
| 59 |
+
|
| 60 |
+
# Execute the model
|
| 61 |
+
WPEM.XPSfit(
|
| 62 |
+
var, AtomIdentifier, satellitePeaks,no_bac_intensity_file, original_file, bacground_file,
|
| 63 |
+
bta = 0.80,iter_max = 50,
|
| 64 |
+
)
|
| 65 |
+
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
> **The results are saved in the `XPSFittingProfile` folder.**
|
| 71 |
+
|
_sources/tutorials/amorphous/3rd.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
jupytext:
|
| 3 |
+
formats: md:myst
|
| 4 |
+
text_representation:
|
| 5 |
+
extension: .md
|
| 6 |
+
format_name: myst
|
| 7 |
+
format_version: 0.13
|
| 8 |
+
jupytext_version: 1.11.5
|
| 9 |
+
kernelspec:
|
| 10 |
+
display_name: Python 3
|
| 11 |
+
language: python
|
| 12 |
+
name: python3
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# The tutorial 3rd
|
| 16 |
+
|
| 17 |
+
Provides a tutorial on analyzing amorphous signals.
|
| 18 |
+
|
| 19 |
+
## coding
|
| 20 |
+
|
| 21 |
+
> **1. Save your diffraction data to the root directory and rename the file to `intensity.csv`.**
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
```{code-cell}
|
| 28 |
+
# import PyXplore package
|
| 29 |
+
from PyXplore import WPEM
|
| 30 |
+
import pandas as pd
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
> **2. Parse your diffraction data (`2θ`, intensity) and perform background processing.**
|
| 34 |
+
|
| 35 |
+
```{code-cell}
|
| 36 |
+
intensity_csv = pd.read_csv(r'intensity.csv',header=None )
|
| 37 |
+
var = WPEM.BackgroundFit(intensity_csv,lowAngleRange=3.8,poly_n=12,bac_split=8,bac_num=100)
|
| 38 |
+
```
|
| 39 |
+
> **3. After running the code, a new folder named `ConvertedDocuments` will be created in the root directory. This folder contains the background information.**
|
| 40 |
+
|
| 41 |
+
> **Copy the two important files — `bac.csv` and `no_bac_intensity.csv` — from `ConvertedDocuments` into the root directory, as they are required for the next steps.**
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
> **Parse the `.cif` file as demonstrated in the crystal fitting section, and generate the `peak0.csv` file.**
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
```{code-cell}
|
| 52 |
+
# The wavelength is set according to the actual light source
|
| 53 |
+
wavelength = [1.03]
|
| 54 |
+
# The file name of non-background data (2theta-intensity data)
|
| 55 |
+
no_bac_intensity_file = "no_bac_intensity.csv"
|
| 56 |
+
# The file name of raw/original data (2theta-intensity data)
|
| 57 |
+
original_file = "intensity.csv"
|
| 58 |
+
# The file name of background data (2theta-intensity data)
|
| 59 |
+
bacground_file = "bac.csv"
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
# Input the initial lattice constants {a, b, c, α, β, γ}, whose values need to be assumed at initialization.
|
| 63 |
+
Lattice_constants = [[17.53,17.53,6.47,90,90,120],]
|
| 64 |
+
|
| 65 |
+
# Execute the model
|
| 66 |
+
|
| 67 |
+
WPEM.XRDfit(
|
| 68 |
+
wavelength, var, Lattice_constants,no_bac_intensity_file, original_file, bacground_file,
|
| 69 |
+
subset_number=3,low_bound=6,up_bound=16,bta = 0.78,iter_max = 50, asy_C = 0,InitializationEpoch=0,
|
| 70 |
+
)
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
> After coverage, the amorphous components (referred to as "holes") are derived. You can visualize each amorphous hole using the provided plotting functions. The results are saved in the `DecomposedComponents` folder.
|
| 76 |
+
|
| 77 |
+
```{code-cell}
|
| 78 |
+
WPEM.Plot_Components(lowboundary = 4, upboundary = 19, wavelength = wavelength, Macromolecule = True,phase = 1)
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
```{seealso}
|
| 83 |
+
For demonstration purposes, the code uses `iter_max = 5` to reduce computational cost. However, for practical applications, it is recommended to set `iter_max` to at least 50 for more reliable results.
|
| 84 |
+
```
|
| 85 |
+
|