Skip to content

bjmorgan/bsym

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6f9e1f4 · Apr 11, 2025
Apr 11, 2025
Apr 11, 2025
Apr 11, 2025
Apr 11, 2025
Jun 20, 2024
Jun 21, 2024
Sep 14, 2018
Apr 11, 2025
Aug 18, 2017
Apr 13, 2018
Aug 20, 2015
Apr 11, 2025
Mar 20, 2018
Jul 22, 2017
Aug 18, 2017
Aug 18, 2017
Nov 4, 2017
Apr 11, 2025
Apr 11, 2025

Repository files navigation

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

Usage examples are provided in the documentation API documentation is here.
Source code is available 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 provided in the codumentation.

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

About

A Basic Symmetry Module (Python)

Resources

License

Citation

Stars

Watchers

Forks

Packages

No packages published