SOF-7915: implement primitive cell in the python interface#274
Open
pranabdas wants to merge 20 commits into
Open
SOF-7915: implement primitive cell in the python interface#274pranabdas wants to merge 20 commits into
pranabdas wants to merge 20 commits into
Conversation
pranabdas
commented
May 30, 2026
| Routines for calculating primitive cell vectors from conventional cell Bravais parameters. | ||
| Python equivalent of src/js/cell/primitive_cell.ts. | ||
|
|
||
| Following Setyawan, W., & Curtarolo, S. (2010). doi:10.1016/j.commatsci.2010.05.010 |
Member
Author
There was a problem hiding this comment.
This convention is different from Quantum ESPRESSO logic, however they are identical from the symmetry perspective, just the cell vectors' directions are different.
| ] | ||
|
|
||
|
|
||
| PRIMITIVE_CELLS = { |
| needs: run-py-linter | ||
| runs-on: ubuntu-24.04 | ||
| strategy: | ||
| fail-fast: false |
Member
There was a problem hiding this comment.
@VsevolodX - Do you know why https://github.com/Exabyte-io/made/actions/runs/26576640996/job/78304796772 had failed? Looks like a small discrepancy in comparing numbers. How can we avoid this in the future?
Member
Author
timurbazhirov
approved these changes
Jun 2, 2026
| from tests.py.unit.utils import assert_two_entities_deep_almost_equal | ||
|
|
||
|
|
||
| class TestPrimitiveCell: |
Member
There was a problem hiding this comment.
We can just have these at the top level, like other tests
timurbazhirov
approved these changes
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


src/py/mat3ra/made/cell/primitive_cell.pysimilar to JS interfacesrc/py/mat3ra/made/cell.py→src/py/mat3ra/made/cell/__init__.py