Skip to main content

Shared utilities for diffpy packages.

Project description


General purpose shared utilities for the diffpy libraries.

The diffpy.utils package provides functions for extracting array data from variously formatted text files and wx GUI utilities used by the PDFgui program. The package also includes an interpolation function based on the Whittaker-Shannon formula that can be used to resample a PDF or other profile function over a new grid.

For more information about the diffpy.utils library, see the users manual at


The diffpy.utils package requires Python 2.7 and the following software:

  • setuptools - tools for installing Python packages
  • NumPy - library for scientific computing with Python

The functions in diffpy.utils.wx module require

  • wxPython - GUI toolkit for the Python language

We recommend to use Anaconda Python as it allows to install the software dependencies together with diffpy.utils. For other Python distributions it is necessary to install the required software separately. As an example, on Ubuntu Linux the required software can be installed with

sudo apt-get install python-setuptools python-numpy


The preferred method is to use Anaconda Python and install from the “diffpy” channel of Anaconda packages

conda config --add channels diffpy
conda install diffpy.utils

Another option is to use easy_install to download and install the latest release from Python Package Index

easy_install diffpy.utils

If you prefer to install from sources, obtain the source archive and run

python install

You may need to use sudo with system Python as it attempts to install to standard system directories. If sudo is not available, check the usage info from python install --help for options to install to user-writable locations. The installation integrity can be verified by changing to the HOME directory and running

python -m


diffpy.utils is an open-source software developed as a part of the DiffPy-CMI complex modeling initiative at the Brookhaven National Laboratory. The diffpy.utils sources are hosted at

Feel free to fork the project and contribute. To install diffpy.utils in a development mode, with its sources being directly used by Python rather than copied to a package directory, use

python develop --user


For more information on diffpy.utils please visit the project web-page

or email Prof. Simon Billinge at

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
diffpy.utils-1.2.2.tar.gz (14.8 kB) Copy SHA256 hash SHA256 Source None Jun 12, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page