-
Notifications
You must be signed in to change notification settings - Fork 875
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add LRU cache to structure matcher (#4036)
* add LRU cache to _get_reduced_structure computations * pre-commit auto-fixes * make structure hashable via as_dict * make structure hash recursive as_dict, change structure test to check hashability * precommit * moved computation using lru_cache out of class method to avoid memory leakage issue * pre-commit auto-fixes * fix structure matcher caching, fix a few tests (mcsqs wrong file destination and missing pytest approx in TestBSPlot) * precommit * add suggested SiteOrderedIStructure from @kbuma * pre-commit auto-fixes * add cast in eq for SiteOrderedIStructure to make mypy happy * pre-commit auto-fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: esoteric-ephemera <aaron.kaplan.physics@gmail.com>
- Loading branch information
1 parent
54cdebc
commit 51ea7de
Showing
3 changed files
with
44 additions
and
8 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
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
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