Skip to main content

Shared utilities for diffpy packages.

Project description

https://travis-ci.org/diffpy/diffpy.utils.svg?branch=master https://codecov.io/gh/diffpy/diffpy.utils/branch/master/graph/badge.svg

diffpy.utils

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 http://diffpy.github.io/diffpy.utils.

REQUIREMENTS

The diffpy.utils package requires Python 3.7 or later or 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

INSTALLATION

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 setup.py 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 setup.py 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.tests.run

DEVELOPMENT

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 https://github.com/diffpy/diffpy.utils.

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 setup.py develop --user

CONTACTS

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

http://www.diffpy.org/

or email Prof. Simon Billinge at sb2896@columbia.edu.

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

diffpy.utils-3.1.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

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

diffpy.utils-3.1.0-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file diffpy.utils-3.1.0.tar.gz.

File metadata

  • Download URL: diffpy.utils-3.1.0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for diffpy.utils-3.1.0.tar.gz
Algorithm Hash digest
SHA256 6ec3ebaff1046176c18d094b91544d8e9f87e6b4237ea2957b9d97900289519e
MD5 98eebf7b8e51e489fbb6d331317edd03
BLAKE2b-256 75d3ff9fb7a6511aae8e04d0bf394e3b0980641c99464b6a84810e208e5509b7

See more details on using hashes here.

File details

Details for the file diffpy.utils-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: diffpy.utils-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for diffpy.utils-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ceddf278c2e45c41ba78d3d7723853bb58c5c5a35878986b24f913f79bec00f
MD5 76e587ef6e519f1a625dcbe28ed39b2c
BLAKE2b-256 661ddc19ddaaa96be06a7d93b9d949f5aaed370ba8e1b5a855aee068758ab9c3

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