|
Download _sources/tutorials/simulation/4th.md from caobin/PyXplore: direct link, hf CLI and curl.
- Browser
- Download file 907 Bytes
-
https://huggingface.co/datasets/caobin/PyXplore/resolve/main/_sources/tutorials/simulation/4th.md
- Command line
-
hf download hf://datasets/caobin/PyXplore/_sources/tutorials/simulation/4th.md
-
curl -L -o 4th.md https://huggingface.co/datasets/caobin/PyXplore/resolve/main/_sources/tutorials/simulation/4th.md
907 Bytes
| jupytext: | |
| formats: md:myst | |
| text_representation: | |
| extension: .md | |
| format_name: myst | |
| format_version: 0.13 | |
| jupytext_version: 1.11.5 | |
| kernelspec: | |
| display_name: Python 3 | |
| language: python | |
| name: python3 | |
| # The tutorial 4th | |
| Illustrates the simulation features built into the package for refinement purposes. | |
| > Note: For general-purpose diffraction simulation, please refer to the standalone toolkit | |
| ## coding | |
| > **1. Save your diffraction data to the root directory and rename the file to `intensity.csv`.** | |
| ```{code-cell} | |
| # import PyXplore package | |
| from PyXplore import WPEM | |
| import pandas as pd | |
| ``` | |
| > Save the `.cif` file in the root directory and generate its powder diffraction pattern. | |
| ```{code-cell} | |
| _,_,_ = WPEM.XRDSimulation(filepath='Mn2O3.cif',two_theta_range=(10, 120, 0.01),bacI=True,GrainSize=3,orientation=[-0.2, 0.3],thermo_vib=0.2,zero_shift=0.01) | |
| ``` | |