Coder Social home page Coder Social logo

hakonanes / diffpy.structure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diffpy/diffpy.structure

0.0 1.0 0.0 2.09 MB

Crystal structure container and parsers for structure formats.

License: Other

Python 99.94% Batchfile 0.03% Shell 0.03%

diffpy.structure's Introduction

image

image

diffpy.structure

storage and manipulation of crystal structure data

The diffpy.structure package provides objects for storing atomic coordinates, displacement parameters and other crystal structure data. diffpy.structure supports import and export of structure data in several structure formats such as CIF, PDB, and xyz. It provides conversion between fractional and absolute Cartesian coordinates, functions for symmetry expansion of atom sites in the asymmetric unit and generation of symmetry constraints for atom positions and displacement parameters. diffpy.structure includes definitions of all space groups in over 500 symmetry settings.

To learn more about diffpy.structure library see the user manual at http://diffpy.github.io/diffpy.structure.

REQUIREMENTS

The diffpy.structure package requires Python 3.5 or later or 2.7 and the following software:

  • setuptools - software distribution tools for Python
  • NumPy - numerical mathematics and fast array operations for Python

We recommend to use Anaconda Python as it allows to install all software dependencies together with diffpy.structure. 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 aptitude install python3-setuptools python3-numpy

diffpy.structure also uses the PyCifRW library, which is automatically deployed during the installation process.

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

diffpy.structure is also included in the "diffpy-cmi" collection of packages for structure analysis :

conda install diffpy-cmi

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

easy_install diffpy.structure

If you prefer to install from sources, navigate to the source archive directory and run :

python setup.py install

You may need to use sudo with system Python so it is allowed to copy files to 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.structure.tests.run

DEVELOPMENT

diffpy.structure is an open-source software developed as a part of the DiffPy-CMI complex modeling initiative at the Brookhaven National Laboratory. The diffpy.structure sources are hosted at https://github.com/diffpy/diffpy.structure.

Feel free to fork the project and contribute. To install diffpy.structure in a development mode, where the sources are directly used by Python rather than copied to a system directory, use :

python setup.py develop --user

ACKNOWLEDGEMENT

Space group codes in spacegroupmod.py and mmlibspacegroups.py originate from the pymmlib project, http://pymmlib.sourceforge.net.

CONTACTS

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

http://www.diffpy.org/

or email Prof. Simon Billinge at [email protected].

diffpy.structure's People

Contributors

benfrandsen avatar bryndin avatar cfarrow avatar chiahaoliu avatar dragonyanglong avatar gzz0707 avatar jbrkeith avatar linhe avatar pavoljuhas avatar xiaohaoyang avatar yrshang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.