Skip to main content

A Basic Symmetry Module

Project description

PyPI version DOI status 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 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

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

Citing bsym

This code can be cited as:

Morgan, Benjamin J. (2017). bsym - a Basic Symmetry Module. The Journal of Open Source Software. http://doi.org/10.21105/joss.00370

BibTeX

@article{Morgan_JOSS2017b,
  doi = {10.21105/joss.00370},
  url = {https://doi.org/10.21105/joss.00370},
  year  = {2017},
  month = {aug},
  publisher = {The Open Journal},
  volume = {2},
  number = {16},
  author = {Benjamin J. Morgan},
  title = {bsym: A basic symmetry module},
  journal = {The Journal of Open Source Software}
}

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.2.0.macosx-11.2-x86_64.tar.gz (30.5 kB view hashes)

Uploaded Source

Built Distribution

bsym-1.2.0-py3-none-any.whl (18.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page