Crystallographic space group library in Python
Project description
Xcore is a crystallographic space group library written in Python.
Usage
>>> from xcore import UnitCell, SpaceGroup >>> spgr = SpaceGroup("Pnma") >>> spgr.info() Space group Pnma Number 62 Schoenflies D2h^16 Hall -P 2ac 2n H-M symbol Pnma Laue group mmm Point group mmm Orthorhombic Centrosymmetric Order 8 Order P 8 # +(0.0 0.0 0.0), Inversion Flag = 0 x,y,z -x+1/2,-y,z+1/2 x+1/2,-y+1/2,-z+1/2 -x,y+1/2,-z # +(0.0 0.0 0.0), Inversion Flag = 1 -x,-y,-z x+1/2,y,-z+1/2 -x+1/2,y+1/2,z+1/2 x,-y+1/2,z
or:
>>> cell = UnitCell((19.9020, 10.1561, 24.6892, 105.88), "P21/c", name="SSO", composition="Si80 O163") >>> cell.info() Cell SSO (Si80 O163) a 19.9020 al 90.00 b 10.1561 be 105.88 c 24.6892 ga 90.00 Vol. 4799.90 Spgr P121/c1
Installation
pip install xcore
Requirements
Python2.7
Numpy
Pandas
Inspired by (and built on) sginfo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xcore-0.7.1.tar.gz
(135.7 kB
view hashes)
Built Distributions
xcore-0.7.1-py2.7-win-amd64.egg
(309.4 kB
view hashes)
xcore-0.7.1-cp27-cp27m-win_amd64.whl
(216.2 kB
view hashes)
Close
Hashes for xcore-0.7.1-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c64258d830b454ed01b8d0944c912199b17b39a0c31370a85102cf93685a5139 |
|
MD5 | 47a56a8cf2e8aefa3eb182d19e59c108 |
|
BLAKE2b-256 | cffa879fb8999cad89833bcbc33fe4cbf386e900c6d865b4a4a02ec36af512a9 |