-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly handle supercell selection (#371)
When dealing with the displayed structure, a user often interacts with the supercell, but not the unit cell. As the result, clicking on the "virtual" atoms leads to an error, since the selected index is out of bounds w.r.t. to the real structure. This PR fixes the issue and introduces the correct handling of the selection. Additionally, we also add automatic tests to make sure the selection works as expected. Co-authored-by: Aliaksandr Yakutovich <[email protected]>
- Loading branch information
1 parent
da5f992
commit 0861b83
Showing
4 changed files
with
196 additions
and
118 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.