Why hash
of pymatgen.analysis.reaction_calculator.BalancedReaction
is hardcoded as int 7
?
#3673
Answered
by
janosh
DanielYang59
asked this question in
Q&A
-
I noticed the following definition while working with pymatgen/pymatgen/analysis/reaction_calculator.py Lines 173 to 174 in a5a4887 This would make |
Beta Was this translation helpful? Give feedback.
Answered by
janosh
Mar 6, 2024
Replies: 1 comment 2 replies
-
beats me. i assume there's no good reason for this particular value. we could probably change it to def __hash__(self) -> int:
return hash((self.reactants_coeffs, self.products_coeffs)) or remove it altogether |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
DanielYang59
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
beats me. i assume there's no good reason for this particular value. we could probably change it to
or remove it altogether