Skip to main content

package for x-ray diffraction data evaluation

Project description

xrayutilities is a collection of scripts used to analyze x-ray diffraction data. It consists of a python package and several routines coded in C. It especially useful for the reciprocal space conversion of diffraction data taken with linear and area detectors.

Copyright (C) 2009-2013 Dominik Kriegner <dominik.kriegner@gmail.com>

Copyright (C) 2009-2013 Eugen Wintersberger <eugen.wintersberger@desy.de>

Contents

  • examples: directory with example scripts and configurations

  • python: directory with the sources for the python package

  • setup.py: distutils install script used for the package installation

  • xrayutilities.pdf: pdf-file with documentation of the package

Installation

Installing xrayutilities 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 use –without-openmp option for the installation

$> python setup.py --without-openmp install --prefix=<install_path>

For the installation the following requirements need to be installed on your system

  • Python

  • C-compiler (preferential with OpenMP support)

  • HDF5

  • pytables

  • scipy

  • numpy

  • matplotlib (optionally)

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)).

On Microsoft Windows with python(x,y) it is furthermore necessary to manually specify the C compiler used for building the extension modules using

$> python setup.py build -c mingw32

before the installation can be performed as described above.

Python-2.7 and Python-3.X compatibility

The current developement focues Python-3.X and we ask all users to update to Python-3 if possible, however, xrayutilies 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

$> git clone git://git.code.sf.net/p/xrayutilities/code xrayutilities

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

Documention for xrayutilities is found in the xrayutilities.pdf file or on the webpage http://xrayutilities.sourceforge.net

The API-documentation can also be browsed by

$> pydoc -p PORT

in any web-browser, after the installation is finished.

To build the PDF documentation from the docu-sources use:

python setup.py build_doc -b latex cd build/sphinx/latex; make

You will need sphinx and pdflatex including latex-recommended, latex-extra and fonts-recommended.

Or generate a texinfo file using

python setup.py build_doc -b texinfo cd build/sphinx/texinfo; make

PACKAGING

create a tarball for redistribution of xrayutilities without the use of git

$> python setup.py sdist

creates a tarball in the directory dist, which contains everything needed for the installation of xrayutilities

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.1.0.tar.gz (11.5 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.1.0.win-amd64-py3.3.exe (3.8 MB view details)

Uploaded Source

xrayutilities-1.1.0.win-amd64-py2.7.exe (3.8 MB view details)

Uploaded Source

xrayutilities-1.1.0.win32-py3.3.exe (3.7 MB view details)

Uploaded Source

xrayutilities-1.1.0.win32-py2.7.exe (3.7 MB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: xrayutilities-1.1.0.tar.gz
  • Upload date:
  • Size: 11.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xrayutilities-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4aba89b3044a6a83ef29c020813534fb9df880fb61a36bc187cc4cf7136ba9af
MD5 22efb3afc2e28940ebb4b211b154b0f7
BLAKE2b-256 b42161bd37b761ef80fe65107e7286320cc4ab262a889594fc974427b7ea9611

See more details on using hashes here.

File details

Details for the file xrayutilities-1.1.0.win-amd64-py3.3.exe.

File metadata

File hashes

Hashes for xrayutilities-1.1.0.win-amd64-py3.3.exe
Algorithm Hash digest
SHA256 07aae76be799e94d3fa057d24195161bf2f490bc4d30da2cd11530468cfa7233
MD5 df19bfb2969c2f187dfec386f0d393a2
BLAKE2b-256 9335380ed4660f0c69b963a78ceefd6a00c8aaf3016c084909dcceb7f00d4d08

See more details on using hashes here.

File details

Details for the file xrayutilities-1.1.0.win-amd64-py2.7.exe.

File metadata

File hashes

Hashes for xrayutilities-1.1.0.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 5be99f96b077cf6792cb3deaf2c9c7a8d2cbaacdc11951b8be307e76a7bce252
MD5 6466b0cb711ad6d51fc2a05d0fa8b071
BLAKE2b-256 e93069ced4d9cb79fd3d7c9c51c99e87e372d0e867f66f6c52850e5a6416b197

See more details on using hashes here.

File details

Details for the file xrayutilities-1.1.0.win32-py3.3.exe.

File metadata

File hashes

Hashes for xrayutilities-1.1.0.win32-py3.3.exe
Algorithm Hash digest
SHA256 f2aa62f1a440a5f618f79fe693f1f623b314fe530d596c09bb6ec4d90f0ac3a2
MD5 2360ac659ef4659bf01c5617ac5b9311
BLAKE2b-256 805055eceaf5323517e2a101be7ce68822a7e7a0a8e7a6e1bc13d62146262569

See more details on using hashes here.

File details

Details for the file xrayutilities-1.1.0.win32-py2.7.exe.

File metadata

File hashes

Hashes for xrayutilities-1.1.0.win32-py2.7.exe
Algorithm Hash digest
SHA256 71d506300a67e698f514431499f798c887beb4838e9088b59496e5399cafb3cc
MD5 3ee82866c0955265264e6821edb7f2fa
BLAKE2b-256 1fd1299a076b86317ce932341c5003a8a5dc9954c24492ef57fd1b7c5926b55f

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