Repository navigation
Pass all init parameters in replicate and deprecate hermitianization option - #1130
Merged
Merged
Conversation
…option replicate did not pass distinguish_symbol_index and lang, so the new instance used their defaults. hermitianize_dynamical_matrix of Phonopy is deprecated: the dynamical matrix is always Hermitianized, and get_dynamical_matrix keeps the option. Removed in v5.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1130 +/- ##
=======================================
Coverage 87.37% 87.37%
=======================================
Files 247 247
Lines 42545 42569 +24
=======================================
+ Hits 37172 37196 +24
Misses 5373 5373 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Phonopy.replicate(and the methods using it) constructed the newinstance without
distinguish_symbol_indexandlang, so these tooktheir default values. For example, with
distinguish_symbol_index=True,atoms labeled with different symbols of the same element became
equivalent in the replica. Both are passed now.
hermitianize_dynamical_matrixofPhonopy, which was not passedeither, is deprecated instead and will be removed in v5. The dynamical
matrix is always Hermitianized;
get_dynamical_matrix(..., hermitianize=False)remains for the dynamical matrix without it. Thetest of the non-Hermitianized dynamical matrix now uses
get_dynamical_matrixdirectly.The missing
distinguish_symbol_indexwas reported by @rpinho in #1120.