spgrep
spgrep: On-the-fly generator of space-group irreducible representations - Published in JOSS (2023)
Science Score: 100.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 4 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
✓Committers with academic emails
1 of 4 committers (25.0%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
Keywords from Contributors
Repository
On-the-fly generator of space-group irreducible representations
Basic Info
- Host: GitHub
- Owner: spglib
- License: bsd-3-clause
- Language: Python
- Default Branch: develop
- Homepage: https://spglib.github.io/spgrep/
- Size: 18 MB
Statistics
- Stars: 53
- Watchers: 4
- Forks: 7
- Open Issues: 7
- Releases: 2
Topics
Metadata Files
README.md
Spgrep
Spgrep is a Python package of on-the-fly generator of space-group irreducible representations.
- Github: https://github.com/spglib/spgrep
- Document: https://spglib.github.io/spgrep
- PyPI: https://pypi.org/project/spgrep
Features
- Enumerate the following irreducible representations (irreps) of space groups from spglib's cell and kpoints:
- Linear irreps
- Physically irreps (irreps over real numbers)
- Projective irreps for spnior
- Projective irreducible co-representations for spinor
- Enumerate irreps of crystallographic point groups as well
- Find symmetry-adapted basis forming given irreps
- Minimal dependencies (numpy and spglib)
Usage
```python from spgrep import getspacegroupirreps from spgrep.representation import get_character
Rutile structure (https://materialsproject.org/materials/mp-2657/)
P4_2/mnm (No. 136)
a = 4.603 c = 2.969 x4f = 0.3046 lattice = [ [a, 0, 0], [0, a, 0], [0, 0, c], ] positions = [ [0, 0, 0], # Ti(2a) [0.5, 0.5, 0.5], # Ti(2a) [x4f, x4f, 0], # O(4f) [-x4f, -x4f, 0], # O(4f) [-x4f + 0.5, x4f + 0.5, 0.5], # O(4f) [x4f + 0.5, -x_4f + 0.5, 0.5], # O(4f) ] numbers = [0, 0, 1, 1, 1, 1]
kpoint = [0.5, 0, 0] # X point irreps, rotations, translations, mappinglittlegroup = getspacegroupirreps( lattice, positions, numbers, kpoint )
Symmetry operations by spglib
assert len(rotations) == 16 assert len(translations) == 16
At X point, the little co-group is isomorphic to mmm (order=8)
assert len(mappinglittlegroup) == 8 print(mappinglittlegroup) # [ 0, 1, 4, 5, 8, 9, 12, 13]
Two two-dimensional irreps
for irrep in irreps: print(get_character(irrep))
[2.+0.j 0.+0.j 0.+0.j 2.+0.j 0.+0.j 0.+0.j 0.+0.j 0.+0.j]
[2.+0.j 0.+0.j 0.+0.j -2.+0.j 0.+0.j 0.+0.j 0.+0.j 0.+0.j]
```
See example pages for more detailed use cases and API summary for summary of functionalities.
Installation
Spgrep works with Python3.8+ and can be installed via PyPI:
shell
pip install spgrep
or in local:
shell
conda create -n spgrep python=3.10 pip
conda activate spgrep
git clone git@github.com:spglib/spgrep.git
cd spgrep
pip install -e .
Change log
See the change log for recent changes.
How to contribute
We welcome any contributions to improve functionalities. Please open issues or create pull requests. See the development page for preparing an environment.
License
Spgrep is released under a BSD 3-clause license.
Owner
- Name: spglib
- Login: spglib
- Kind: organization
- Repositories: 5
- Profile: https://github.com/spglib
JOSS Publication
spgrep: On-the-fly generator of space-group irreducible representations
Authors
Department of Materials Science and Engineering, Kyoto University, Sakyo, Kyoto, Japan
Tags
computational materials science crystallography group theory representation theory irreducible representationCitation (CITATION.cff)
cff-version: "1.2.0"
authors:
- family-names: Shinohara
given-names: Kohei
orcid: "https://orcid.org/0000-0002-5907-2549"
- family-names: Togo
given-names: Atsushi
orcid: "https://orcid.org/0000-0001-8393-9766"
- family-names: Tanaka
given-names: Isao
orcid: "https://orcid.org/0000-0002-4616-118X"
contact:
- family-names: Shinohara
given-names: Kohei
orcid: "https://orcid.org/0000-0002-5907-2549"
doi: 10.5281/zenodo.7946899
message: If you use this software, please cite our article in the
Journal of Open Source Software.
preferred-citation:
authors:
- family-names: Shinohara
given-names: Kohei
orcid: "https://orcid.org/0000-0002-5907-2549"
- family-names: Togo
given-names: Atsushi
orcid: "https://orcid.org/0000-0001-8393-9766"
- family-names: Tanaka
given-names: Isao
orcid: "https://orcid.org/0000-0002-4616-118X"
date-published: 2023-05-23
doi: 10.21105/joss.05269
issn: 2475-9066
issue: 85
journal: Journal of Open Source Software
publisher:
name: Open Journals
start: 5269
title: "spgrep: On-the-fly generator of space-group irreducible
representations"
type: article
url: "https://joss.theoj.org/papers/10.21105/joss.05269"
volume: 8
title: "spgrep: On-the-fly generator of space-group irreducible
representations"
GitHub Events
Total
- Release event: 1
- Watch event: 7
- Delete event: 36
- Push event: 85
- Pull request event: 67
- Fork event: 2
- Create event: 35
Last Year
- Release event: 1
- Watch event: 7
- Delete event: 36
- Push event: 85
- Pull request event: 67
- Fork event: 2
- Create event: 35
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| lan496 | k****8@g****m | 168 |
| pre-commit-ci[bot] | 6****] | 102 |
| dependabot[bot] | 4****] | 46 |
| Daniel S. Katz | d****z@i****g | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 13
- Total pull requests: 248
- Average time to close issues: about 1 month
- Average time to close pull requests: 1 day
- Total issue authors: 4
- Total pull request authors: 4
- Average comments per issue: 3.08
- Average comments per pull request: 0.26
- Merged pull requests: 222
- Bot issues: 0
- Bot pull requests: 201
Past Year
- Issues: 0
- Pull requests: 74
- Average time to close issues: N/A
- Average time to close pull requests: about 11 hours
- Issue authors: 0
- Pull request authors: 3
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 68
- Bot issues: 0
- Bot pull requests: 54
Top Authors
Issue Authors
- hongyi-zhao (8)
- lan496 (3)
- ml-evs (1)
- ejmeitz (1)
Pull Request Authors
- pre-commit-ci[bot] (135)
- dependabot[bot] (71)
- lan496 (45)
- yardasol (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 877 last-month
- Total dependent packages: 2
- Total dependent repositories: 0
- Total versions: 14
- Total maintainers: 1
pypi.org: spgrep
On-the-fly generator of space-group irreducible representations
- Documentation: https://spgrep.readthedocs.io/
- License: BSD
-
Latest release: 0.3.11
published 8 months ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- peaceiris/actions-gh-pages v3 composite
- pypa/gh-action-pypi-publish release/v1 composite
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- openjournals/openjournals-draft-action master composite
- actions/cache v3 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- codecov/codecov-action v3 composite
- peaceiris/actions-gh-pages v3 composite