A Basic Symmetry Module
Project description
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
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
Built Distribution
File details
Details for the file bsym-1.2.0.macosx-11.2-x86_64.tar.gz
.
File metadata
- Download URL: bsym-1.2.0.macosx-11.2-x86_64.tar.gz
- Upload date:
- Size: 30.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 723e6afd75f7151f916bbe6e0ddc1f03c9ef43dea36eb933a0bf66e98a49bd9e |
|
MD5 | b87787219ec485e6f868fddb0d5836c3 |
|
BLAKE2b-256 | bf59f8555e5a806a0926c887e06d4b81a75d3eacb2bdeed62c14b91b6b9d8535 |
File details
Details for the file bsym-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: bsym-1.2.0-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42562c4901aef4843ef66791749b581a87370eb43c7a68d21333077baea984da |
|
MD5 | 7d276dba93bb45dca6e2497156bb3706 |
|
BLAKE2b-256 | 90224d42dc809ac0b8b78f13a9e075cf2289c5c6303b8e748d84a11bccb2e0dd |