Derivative structure enumerator for multilattice
Project description
dsenum
Derivative structure enumerator for multilattice
Installation
- Python>=3.8
Install in local:
git clone git@github.com:lan496/dsenum.git
cd dsenum
pip install -e .
For development:
git clone git@github.com:lan496/dsenum.git
cd dsenum
pip install -e ".[dev,docs]"
pre-commit install
Usage
import numpy as np
from pymatgen.core import Lattice, Structure
from pymatgen.core.periodic_table import DummySpecie
from dsenum import StructureEnumerator
latt = Lattice(np.array([[0, 1, 1], [1, 0, 1], [1, 1, 0]]))
coords = [[0, 0, 0]]
structure = Structure(latt, [DummySpecie('X')] * len(coords), coords)
num_type = 2
index = 4
dstructs = StructureEnumerator(structure, index, num_type).generate()
print(len(dstructs)) # -> 12
See examples/Sn_oxide.py
for more complicated use cases.
Official Implementation
References
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
dsenum-0.3.15.tar.gz
(65.8 kB
view details)
Built Distributions
File details
Details for the file dsenum-0.3.15.tar.gz
.
File metadata
- Download URL: dsenum-0.3.15.tar.gz
- Upload date:
- Size: 65.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9375f5fda7200165915147cf3c7f01165168cd062de8d912dfd76e110aa89ef5 |
|
MD5 | e82e4938a85a741154e8824d9ac334fa |
|
BLAKE2b-256 | 4211ed0b34f6cfdb6fb72e07e80d7de14671f59eefa3ec8c312abca6c959e1b2 |
File details
Details for the file dsenum-0.3.15-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: dsenum-0.3.15-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 70.8 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8fdf421cd9002ce279608b9296924e066920136223c712bb8251187c0c20f31 |
|
MD5 | cddb3eafc98d8428b79e1a45f69a3451 |
|
BLAKE2b-256 | aca9a42ef9c5868405f7cd32c66659386406429df9555085a1dd1c75883706c0 |
File details
Details for the file dsenum-0.3.15-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: dsenum-0.3.15-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 73.6 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6a0ed67a191e80f6586022adcc7fe7d35e66e850bb5e21e00246cb50f051d99 |
|
MD5 | 0e6f70d8885bb983014831ff38fefd4a |
|
BLAKE2b-256 | 0bcb3459e866dba39c344d7f44ca0761b8ac7ea2decd14356422750f072c8f62 |
File details
Details for the file dsenum-0.3.15-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: dsenum-0.3.15-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 73.3 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 473a6d4a04b73caa6bddb60b155702fa8d627c603c17f3e56fef11fa975916c4 |
|
MD5 | e78ad00e898ab5d3d6c2d4619e22a69a |
|
BLAKE2b-256 | 30754d1a7f7c194ebf41b4d6588011bac6dca03d86310cc88189ec29b9fe445c |