Tools for the analysis of X-ray diffraction simulation output.
Project description
Line Profile Analysis - Output
This project is related to the analysis of crystals containing dislocations by X-ray diffraction. It was developed and used for a study conducted during a research internship at the laboratory of material and structural sciences of the École Nationale Supérieure des Mines de Saint-Étienne. This repository contains the distribution of one of the three published python packages that have been proposed to conduct line profile analyses based on simulation results:
lpa-input
(line profile analysis input generator)lpa-xrd
(line profile analysis x-ray diffraction simulation program)lpa-output
(line profile analysis output analyzer)
The repository lpa-workspace
contains the parameters and the scripts for the generation of the data used in the study. You can then easily replicate the results obtained or use it as inspiration to take the code in hand and conduct your own calculations. The software is placed in the public domain and you can use it as you wish. However, users are encouraged to contribute to the development and report issues.
Features
The package lpa.output
can be used to:
- average the simulation output files
- export figures presenting the Fourier amplitudes for each harmonic
- fit different model for the calculation of the dislocation density and the outer cut-off radius
- export files and graphics containing information on fits
Installation
The package is indexed on PyPI and installable directly via pip:
pip install -U lpa-output
Examples
Simulation output plot
Fits data
harmonic Lmax[nm] rho[m-2] Re[nm] error
1 11.1 4.988005e+14 2.858696e+03 4.069797e-13
1 14.8 4.979192e+14 2.890819e+03 5.930914e-13
1 18.5 4.965587e+14 2.940338e+03 1.819189e-12
1 22.2 4.947938e+14 3.005100e+03 4.697750e-12
1 25.9 4.929201e+14 3.074824e+03 8.668341e-12
1 29.6 4.916342e+14 3.123224e+03 1.011788e-11
1 33.3 4.919718e+14 3.110586e+03 8.914320e-12
1 37.0 4.964844e+14 2.949933e+03 5.894697e-11
1 40.7 5.113804e+14 2.497500e+03 6.995298e-10
2 11.1 4.933120e+14 6.907357e+02 2.384938e-11
2 14.8 4.909804e+14 7.093047e+02 5.555701e-11
2 18.5 4.990565e+14 6.490353e+02 8.397701e-10
Fits plot
Abbreviations
Some abbreviations are used:
- GUW: Groma Ungár Wilkens model
- WS: Wilkens simplified model
- WC: Wilkens complete model
User guide
The directory tests/
contains several examples of package module usage. The docstrings are carefully written and it is recommended to refer to the documentation with the help()
command.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lpa-output-0.9.0.tar.gz
.
File metadata
- Download URL: lpa-output-0.9.0.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e3c50f2a0ad0607e3fc8fe2dec6b48709ae3dc87b8328e163aca5cb5c6cb3ca |
|
MD5 | 4355dd94e92a1da68940b00961e70f39 |
|
BLAKE2b-256 | b5427e88649e1fdb9739e20814e5b57cedacf2c6dbd3ed84019fba961456214f |
File details
Details for the file lpa_output-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: lpa_output-0.9.0-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5587f4fd10f8f167e63340202c416d5a5a92fc2ef9655d196835b38932a80197 |
|
MD5 | 411d540ad0aa2526451adc021d898c29 |
|
BLAKE2b-256 | a7c17ecca0f3b839256bfc3e02ee9278761372e1630442fc47e2a1b7b0fc05a0 |