package for x-ray diffraction data evaluation
Project description
xrayutilities
[![Build Status Travis CI](https://travis-ci.org/dkriegner/xrayutilities.svg?branch=master)](https://travis-ci.org/dkriegner/xrayutilities) [![Build Status AppVeyor](https://ci.appveyor.com/api/projects/status/t8cb5jj0atklxay3/branch/master?svg=true)](https://ci.appveyor.com/project/dkriegner/xrayutilities)
xrayutilities is a collection of scripts used to analyze and simulate x-ray diffraction data. It consists of a Python package and several routines coded in C. For analysis the package is especially useful for the reciprocal space conversion of diffraction data taken with linear and area detectors. For simulations code for X-ray reflectivity, kinematical and dynamical diffraction simulation of crystal truncation rods as well as fundamental parameters powder diffraction is included.
Copyright (C) 2009-2018 Dominik Kriegner <dominik.kriegner@gmail.com>
Copyright (C) 2009-2013 Eugen Wintersberger <eugen.wintersberger@desy.de>
Mailing list and issue tracker
To get in touch with us or report an issue please use the mailing list (https://sourceforge.net/p/xrayutilities/mailman/xrayutilities-users/) or the Github issue tracker (https://github.com/dkriegner/xrayutilities/issues). When you want to follow announcements of major changes or new releases its recommended to [sign up for the mailing list](https://sourceforge.net/projects/xrayutilities/lists/xrayutilities-users)
Contents
examples: directory with example scripts and configurations
xrayutilities: directory with the sources for the Python package
tests: directory with the unittest scripts
setup.py: distutils install script used for the package installation
xrayutilities.pdf: pdf-file with documentation of the package
Installation (pip)
Using the python package manager pip you can install xrayutilities by executing
pip install xrayutilities
or for a user installation (without admin access) use
pip install –user xrayutilities
If installation using above’s command fails due to missing OpenMP libraries, use
pip install –global-option=”–without-openmp” xrayutilities
Installation (source)
Installing xrayutilities from source is an easy process done by executing
python setup.py install
or
python setup.py install –prefix=<install_path>
in the source folder of xrayutilities on the command line/terminal. The first command installs in the systems default directories, whereas in the second command you can manually specify the installation path.
By default the setup.py script tries to use OpenMP. If you do not want to use OpenMP or do not have it available use the –without-openmp option for the installation:
python setup.py –without-openmp install –prefix=<install_path>
Requirements
The following requirements are needed for installing and using xrayutilities:
Python (version 2.7 or >= 3.2)
C-compiler (preferential with OpenMP support)
h5py
scipy (version >= 0.13.0)
numpy (version >= 1.8)
lmfit (optional)
matplotlib (optional)
python-lzma (optional)
When building from source you also might need:
python dev headers
setuptools
unittest2 (optional - only if you want to run the tests)
sphinx (optional - only when you want to build the documentation)
numpydoc (optional - only when you want to build the documentation)
refer to your operating system documentation to find out how to install those packages. On Microsoft Windows refer to the Documentation for the easiest way of the installation (Python(x,y) or WinPython).
Python-2.7 and Python-3.X compatibility
The current development focuses on Python-3.X and we ask all users to update to Python-3 if possible, however, xrayutilities can be used with Python-2.7 as well. Care was taken to make this possible from the same code-base.
The Python package configuration
The following steps should only be necessary for user local installation to ensure the Python module is found by the Python interpreter: In this case the module is installed under <prefix>/lib[64]/python?.?/site-packages on Unix systems and <prefix>/Lib/site-packages on Windows systems.
If you have installed the Python package in a directory unknown to your local Python distribution, you have to tell Python where to look for the Package. There are several ways how to do this:
add the directory where the package is installed to your PYTHONPATH environment variable.
add the path to sys.path in the .pythonrc file placed in your home directory
import sys sys.path.append(“path to the xrayutilities package”)
simply apply the previous method in every script where you want to use the xrayutilities package before importing the package
import sys sys.path.append(“path to the xrayutilities package”) import xrayutilities
Obtaining the source code
The sources are hosted on sourceforge in git repository. Use
to clone the git repository. If you would like to have commit rights contact one of the administrators.
Update
if you already installed xrayutilities you can update it by navigating into its source folder and obtain the new sources by
git pull
or download the new tarball from sourceforge (http://sf.net/projects/xrayutilities) if any code changed during the update you need to reinstall the Python package. To determine the path in which xrayutilities where installed previously use
- python -c “import xrayutilities as xu; print xu.__file__”
/usr/local/lib64/python2.7/site-packages/xrayutilities/__init__.pyc
if the output is e.g.: /usr/local/lib64/python2.7/site-packages/xrayutilities/__init__.py you previously installed xrayutilities in /usr/local, which should be used again as install path. Use
python setup.py install --prefix=<path to install directory>
to install the updated package.
Documentation
Documentation for xrayutilities is found in the xrayutilities.pdf file or on the webpage http://xrayutilities.sourceforge.io
The API-documentation can also be browsed by
pydoc -p PORT
in any web-browser, after the installation is finished.
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 Distributions
Hashes for xrayutilities-1.5.2.win-amd64-py3.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 365ce4b29ba7a30988fe0dbc4e40e0a12c2fe427d92229963c510bede5154005 |
|
MD5 | 76ae6faec6c597efa83db27794b96f73 |
|
BLAKE2b-256 | a38f38a13f790f5346fee96ca9f1f266441f6fed00952293f2734afaf26e52b8 |
Hashes for xrayutilities-1.5.2.win-amd64-py3.6.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f1355e05f324a12d64f81a875ee569e31500537a1fffba400f38026e6b5cf26 |
|
MD5 | 8a7fbf5cb5b3cc647d02658ea860f40f |
|
BLAKE2b-256 | 441201f3e2f475309a97256ab1792e892ae0502a51554decbcdb8a681ac395f5 |
Hashes for xrayutilities-1.5.2.win-amd64-py3.5.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dd73a60c30c8898260b71cca26cb98f3ae046bef55f238386a360024344e012 |
|
MD5 | 6a5ccdfb1a11cc4847df214d8348eca8 |
|
BLAKE2b-256 | e4b7e46f2c6edf67b2a3a6924a57c647faabc3f891b7bc8d320cd2669f353ae0 |
Hashes for xrayutilities-1.5.2.win-amd64-py2.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c79a2c6d6a2f7780ad7f025feeb41714766214003759f8e65d101163bf1f77d |
|
MD5 | e13c5079622a8833cf2f567df4cb2789 |
|
BLAKE2b-256 | 3fb6144b742c7bebbaf5ca5ae99bf71006024f7d72676640af8820659c93920f |
Hashes for xrayutilities-1.5.2.win32-py3.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1560176f91ec5bd7d8a2a073b29ab919def7f6ff10c031d10efaf6806b6a1cef |
|
MD5 | 8e9ecc561105126a82cf72207322318f |
|
BLAKE2b-256 | d6f885c600b57d4f911ce0675f149f632a27bd6fadc207e72802589c5843440b |
Hashes for xrayutilities-1.5.2.win32-py3.6.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | a94f7c99020e4ab2b13353b846bfa29e1f0ddaa3555c0063a38fac234b0cdeab |
|
MD5 | deb0783f831bf2314466da79774b52a5 |
|
BLAKE2b-256 | bbe374c12e423bde9dcc5a400573f0b261fbf70b618bde330bb9709c4001f2a5 |
Hashes for xrayutilities-1.5.2.win32-py3.5.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d16aefd1670a3f8fb847ee7c36d5140c7bc54d931b7c90a6680134bdaef8371 |
|
MD5 | 9c3f3dc24d744fc44768daef68649bc6 |
|
BLAKE2b-256 | 2e9b5d330e9be21053e4b9ed89fdcf7c78c5fc12779eedb073d42c569906b209 |
Hashes for xrayutilities-1.5.2.win32-py2.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 340194e7cf724615e0f6819ef0d2b43d4110985455e1171cc011e46a0c1dbcea |
|
MD5 | f0c5e42543e5038d83461e2cd0c72b6e |
|
BLAKE2b-256 | d7f1b47e51f71dc62f715d1b934ebc3bfc2bf8698154f82ad463eeaafc56bba9 |
Hashes for xrayutilities-1.5.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efc4b34a739acfcdfb27ed41731408f0b796181e1553bb6362a9eedcffdb1441 |
|
MD5 | 2743c6119fbf294c7cfcb0da39cbb833 |
|
BLAKE2b-256 | 487d979305d41c4b84c7da4ea830e2770f9f2fd4d6c8c596383c48992154d7c8 |
Hashes for xrayutilities-1.5.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a65ae63cc8db71a18aba04e3def13f6c06aa4120262b4cb2633bb830d86bfe |
|
MD5 | 1e94b60016a77cb0b4ab43fd50f3b88a |
|
BLAKE2b-256 | 777e991df89091ab5e241aa7a9de84f79006dc1c7b18241ae4b403bdea16b3a3 |
Hashes for xrayutilities-1.5.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e27fa357e8d47a793042c65713a5322217e0fe7b8ead549afd0642f4a815f1f4 |
|
MD5 | 72ae855cf399a1485d03045ade386c3b |
|
BLAKE2b-256 | a9760f66eaed696e5adfbc6fef537e9565cdf2a313139b077ee620bd1c258797 |
Hashes for xrayutilities-1.5.2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47f1f8a5268d761c1fcecb3788d4a631da5cd8bc58a790182d0b4868fc22f751 |
|
MD5 | 763f4bb3062f3af5b17632df5a8f1fa5 |
|
BLAKE2b-256 | 4b99b1e169bdbc37fc2d0c23a82df58dc2835d5bb7f83cf00fe5d294adb2b048 |
Hashes for xrayutilities-1.5.2-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49310ab02d8091e52d6d982d13eb3be6be5df856c9229b1f53c72238be664306 |
|
MD5 | c56b985fa97ecd9736b00e72de955927 |
|
BLAKE2b-256 | 23828bd63661760a9b83b132736ad85555c3a9afa3dd59f993addafdd79f3abe |
Hashes for xrayutilities-1.5.2-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24556da2e3155ff4ade4fd7be98fe583afbf4810efc68bdfd61d5e5bb4c39cd3 |
|
MD5 | 7f839a88ce3a3a64ea274b11ef3db6f8 |
|
BLAKE2b-256 | 511c039264471c0b5bd14e27677b915e8a1aab06145efdfcc7f68a2a996c4cf9 |
Hashes for xrayutilities-1.5.2-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e464da5da1aa98be4b7e75b47d98a3cbacdae822cedb95f9bf49d59db96b3145 |
|
MD5 | 0e4c262e837cd531bf575bde88d0369a |
|
BLAKE2b-256 | b4f8b13e1af073f0dd1e268b34595730d7e47fd18bc133628cfe1593d97e9354 |
Hashes for xrayutilities-1.5.2-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f938a1e6f916492d00a672608d1c0e476dcbec5b117e548d154fe382ffc2841 |
|
MD5 | 971a82099ae1da43242fbcdd025a4f82 |
|
BLAKE2b-256 | c257ac0b2a93b89b066ee8e65e528df5e92c05dd1ac804e02dfc329f16bc7cab |