Skip to main content

package for x-ray diffraction data evaluation

Project description

xrayutilities

Build Status Travis CI Build Status AppVeyor

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-2020 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

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)
  • setuptools (to provide the pkg_resources module)
  • lmfit (optional)
  • matplotlib (optional)
  • python-lzma (optional)

When building from source you also might need:

  • python dev headers
  • 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 /lib[64]/python?.?/site-packages on Unix systems and /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

git clone https://github.com/dkriegner/xrayutilities.git

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


Download files

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

Source Distribution

xrayutilities-1.5.4.tar.gz (14.8 MB view details)

Uploaded Source

Built Distributions

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

xrayutilities-1.5.4-cp37-cp37m-win_amd64.whl (3.8 MB view details)

Uploaded CPython 3.7mWindows x86-64

xrayutilities-1.5.4-cp37-cp37m-win32.whl (3.8 MB view details)

Uploaded CPython 3.7mWindows x86

xrayutilities-1.5.4-cp36-cp36m-win_amd64.whl (3.8 MB view details)

Uploaded CPython 3.6mWindows x86-64

xrayutilities-1.5.4-cp36-cp36m-win32.whl (3.8 MB view details)

Uploaded CPython 3.6mWindows x86

xrayutilities-1.5.4-cp35-cp35m-win_amd64.whl (3.8 MB view details)

Uploaded CPython 3.5mWindows x86-64

xrayutilities-1.5.4-cp35-cp35m-win32.whl (3.8 MB view details)

Uploaded CPython 3.5mWindows x86

xrayutilities-1.5.4-cp27-cp27m-win_amd64.whl (3.8 MB view details)

Uploaded CPython 2.7mWindows x86-64

xrayutilities-1.5.4-cp27-cp27m-win32.whl (3.8 MB view details)

Uploaded CPython 2.7mWindows x86

File details

Details for the file xrayutilities-1.5.4.tar.gz.

File metadata

  • Download URL: xrayutilities-1.5.4.tar.gz
  • Upload date:
  • Size: 14.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10

File hashes

Hashes for xrayutilities-1.5.4.tar.gz
Algorithm Hash digest
SHA256 492632a501d983230c506eeacd9c35166a62fcdd1be792d9eb1bb04f48d3a576
MD5 046508e6e17366b1cc22a713834b613a
BLAKE2b-256 258b0fad7371f1c0a76ef2486b7f2703acd046416fa841d035311b31a70132f2

See more details on using hashes here.

File details

Details for the file xrayutilities-1.5.4-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: xrayutilities-1.5.4-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10

File hashes

Hashes for xrayutilities-1.5.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 bd5addf81ae1c4d4083a8e06fb6fadd7e399f18ffaafba3cff3736a712b32471
MD5 a4b11313a59d9b6db80635feed03485c
BLAKE2b-256 442d2a53584218d38e1af6f016315442e21f3b837917b60f0e0b31e68342e24e

See more details on using hashes here.

File details

Details for the file xrayutilities-1.5.4-cp37-cp37m-win32.whl.

File metadata

  • Download URL: xrayutilities-1.5.4-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10

File hashes

Hashes for xrayutilities-1.5.4-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 3e7687d826337fec1392efc3a28182c1c67ce2cce88078665dc1bd4a973132bf
MD5 25e66424819c2eea2e0fa95ff11b9dee
BLAKE2b-256 caf244c04ccdb342897b7b7e52e477c30da05a56d435aa13fa37555f25b67527

See more details on using hashes here.

File details

Details for the file xrayutilities-1.5.4-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: xrayutilities-1.5.4-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10

File hashes

Hashes for xrayutilities-1.5.4-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 b598d26acb08cd109a6047bbd141dab544bdd1c879e97c90b671dd6226be3945
MD5 9545f62040abb2cafdd774dcca1f84ed
BLAKE2b-256 9650cb22ff5d3ff5540d19235516e90b163ebf057a0f5ee82e91a40d16edefba

See more details on using hashes here.

File details

Details for the file xrayutilities-1.5.4-cp36-cp36m-win32.whl.

File metadata

  • Download URL: xrayutilities-1.5.4-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10

File hashes

Hashes for xrayutilities-1.5.4-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 7e4f4d0a7a67418fb47151d104367c8ca52df50b70e60d08b435d03c1e2a3052
MD5 6940744dd7f8848662382d5a8ea880e7
BLAKE2b-256 338765b462f9e9ee44c5890af6cdeb010ffbb65421e776d82b99c0876aee8c04

See more details on using hashes here.

File details

Details for the file xrayutilities-1.5.4-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: xrayutilities-1.5.4-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10

File hashes

Hashes for xrayutilities-1.5.4-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 5a65a6bcdf0a7b7a586b5260ae08077bf5410d29870113484757ecb61bc3e262
MD5 a554540ee0306e575d6481af0b32ab7e
BLAKE2b-256 b64d7748bd040720785cf851105b7acdee200c1b0b7b8376ad5ebb196da74ffb

See more details on using hashes here.

File details

Details for the file xrayutilities-1.5.4-cp35-cp35m-win32.whl.

File metadata

  • Download URL: xrayutilities-1.5.4-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10

File hashes

Hashes for xrayutilities-1.5.4-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 0f23af09979b2dc6dc1bdac047e760e45986505716f642a1d928f61f84bbc683
MD5 72a561d05186e940d8f60d4a4845dee9
BLAKE2b-256 15a69e62f5f1a2940760de2c7fbfee11f1ecc568e3c736f1d27b5306ff6322dd

See more details on using hashes here.

File details

Details for the file xrayutilities-1.5.4-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: xrayutilities-1.5.4-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10

File hashes

Hashes for xrayutilities-1.5.4-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 f95b8206a9319d836ba6e7cd52e90f3483fb6532e0caefa996278d51a9f288cd
MD5 4fb2ed57050639a6b4c131a880197ec4
BLAKE2b-256 39c82c7675559dcd2f4bd5555fa8308c50d7d537c8f0942ce0bcc007d1683b9a

See more details on using hashes here.

File details

Details for the file xrayutilities-1.5.4-cp27-cp27m-win32.whl.

File metadata

  • Download URL: xrayutilities-1.5.4-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10

File hashes

Hashes for xrayutilities-1.5.4-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 90e14564bfcc06a4efe7cb3e4bec2c57593f8e821eb036f8a794b995a2d2bfb5
MD5 06571596fbd8023c93bfcb560688670b
BLAKE2b-256 d0ea101a5f5b6c2550ec3693cd651e61bc27b0008f266bb00d3369b9283d7f05

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