Skip to main content

Tools for the analysis of X-ray diffraction simulation output.

Project description

Mines Saint-Etienne

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

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

Groma harmonic 1 Groma harmonic 2

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lpa-output-0.9.1.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lpa_output-0.9.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file lpa-output-0.9.1.tar.gz.

File metadata

  • Download URL: lpa-output-0.9.1.tar.gz
  • Upload date:
  • Size: 16.8 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

Hashes for lpa-output-0.9.1.tar.gz
Algorithm Hash digest
SHA256 782583de2a3f09fa6660b659c3e09156b6e70c40411b2479d04ff60b4d4cfaed
MD5 dcf8cf4feada78f9af76f0920c721ae2
BLAKE2b-256 5ba4124c2c10b1dc482e6ebb3d630dd4c1c5168f1836685c44d63ceac70c7126

See more details on using hashes here.

File details

Details for the file lpa_output-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: lpa_output-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 16.7 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

Hashes for lpa_output-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f23169aab1e4d013997f74cffbb596ba8dc187e0e66ae214bb93c4e17ccee5f6
MD5 2418bffecb55794afbd606bb3e19c15c
BLAKE2b-256 46a32cbcd573f1501e33eb39bc3f93c95c7cd4efac463d2794ef30b3fc9923e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page