Skip to main content

A Basic Symmetry Module

Project description

PyPI version DOI Build Status Test Coverage Documentation Status

bsym is a basic Python symmetry module. It consists of core classes that describe configuration vector spaces, their symmetry operations, and specific configurations of objects within these spaces. The module also contains an interface for working with `pymatgen <http://pymatgen.org>`__ Structure objects, to allow simple generation of disordered symmetry-inequivalent structures from a symmetric parent crystal structure.

Examples are provided in a Jupyter notebook here.
API documentation is here.
Source code is available as a git repository at https://github.com/bjmorgan/bsym.

Installation

pip install bsym

Or download the latest release from GitHub, and install

cd bsym
python setup.py install

Or clone the latest development version

git clone git@github.com:bjmorgan/bsym.git

and install the same way.

cd bsym
python setup.py install

Tests

Automated testing of the latest commit happens here.

Manual tests can be run using

python -m unittest discover

The code has been tested with Python versions 3.5 and above.

Documentation

An overview of the capabilities of bsym along with example code is contained in a Jupyter notebook in the repository examples directory examples/bsym_examples.ipynb.

API documentation is available here.

I want to generate a set of symmetry-inequivalent crystal structures

bsym can enumerate symmetry-inequivalent crystal structures generated by partial substitutions, starting from a parent structure described by a pymatgen Structure object.
Example code is in the example notebook.
Also refer to the `bsym.interface.pymatgen.unique_structure_substitutions <http://bsym.readthedocs.io/en/latest/api/interface/pymatgen.html#bsym.interface.pymatgen.unique_structure_substitutions>`__ documentation.

Citing bsym

This code can be cited as:

Morgan, Benjamin J. (2017, July 5). bsym - a Basic Symmetry Module. Zenodo. http://doi.org/10.5281/zenodo.823127

BibTeX

@misc{morgan_benjamin_j_2017_823127,
  author       = {Morgan, Benjamin J.},
  title        = {bsym - a Basic Symmetry Module},
  month        = jul,
  year         = 2017,
  doi          = {10.5281/zenodo.823127},
  url          = {https://doi.org/10.5281/zenodo.823127}
}

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

bsym-1.0b5.tar.gz (10.3 kB view details)

Uploaded Source

File details

Details for the file bsym-1.0b5.tar.gz.

File metadata

  • Download URL: bsym-1.0b5.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bsym-1.0b5.tar.gz
Algorithm Hash digest
SHA256 fa937f5f9aa0ed0943a161c7005b545075f8ca44d176ef13e6feb3bc7ada9934
MD5 4fa5dd7e9c2ed3c9205f91e100a280cf
BLAKE2b-256 f4e3485354c0aee985ee703c157e8dd4c27994fec43cd741da93da5bb7209cc2

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