Skip to content

Refactor get_BZ and implement BZ class#106

Merged
t-reents merged 1 commit intomaterialscloud-org:mainfrom
t-reents:imp/move_bz_to_class
Jan 14, 2025
Merged

Refactor get_BZ and implement BZ class#106
t-reents merged 1 commit intomaterialscloud-org:mainfrom
t-reents:imp/move_bz_to_class

Conversation

@t-reents
Copy link
Collaborator

This PR addresses #104. The get_BZ method is deprecated and a new BZ class is introduced to represent a Brillouin zone.

The data that was returned in the previous version can be accessed via properties, as well as the delaunay and the hull. This is to ensure that the user doesn't manipulate the BZ representation, so that the reciprocal vectors of a BZ instance are always consistent with the other properties.

@t-reents t-reents linked an issue Nov 11, 2024 that may be closed by this pull request
4 tasks
The previous `get_BZ` function was refactored and a class was added to represent a BZ. The faces, triangles, hull and delaunaycan be accessed as properties. This is to avoid that the values are changed by the users. Moreover, a new method was added to check if a point is within the BZ.
@t-reents t-reents force-pushed the imp/move_bz_to_class branch from 0028e8f to b056ae2 Compare December 4, 2024 12:17
Copy link
Collaborator

@giovannipizzi giovannipizzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@t-reents t-reents merged commit fcb27bf into materialscloud-org:main Jan 14, 2025
@t-reents t-reents mentioned this pull request Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible improvements to expose internal functionality of BZ sublibrary

2 participants