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.0b6.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

bsym-1.0b6-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bsym-1.0b6.tar.gz
Algorithm Hash digest
SHA256 2d0c0d18046a363d207e1f13f63360f841ef11de0a13dc5c9f974b009092133f
MD5 967526fa7bf07ca5b49ef25f9e8c5b2d
BLAKE2b-256 f0686b26b9edea09073bd85ff9cfbb609890975bf4f1933ad39639f2aad7ef62

See more details on using hashes here.

File details

Details for the file bsym-1.0b6-py3-none-any.whl.

File metadata

  • Download URL: bsym-1.0b6-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bsym-1.0b6-py3-none-any.whl
Algorithm Hash digest
SHA256 a76c3bbe21178f873cc59cf8c1baa48fcc6f256f6b5b505bf546069f8c2e7275
MD5 bf5eea6b7bbc6189573564cc622ce497
BLAKE2b-256 04525fcd518ff467290d767fac806f3580143096e29b79288a7097d60f9210e0

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