Skip to content

Commit

Permalink
reverse compare order for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed May 9, 2024
1 parent cae7aed commit 05ea23a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymatgen/core/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def __ge__(self, other: object) -> bool:

try:
return all(
other[el] - self[el] < Composition.amount_tolerance for el in set(self.elements + other.elements)
self[el] - other[el] >= Composition.amount_tolerance for el in set(self.elements + other.elements)
)

# If any Element is in only one of the two Compositions
Expand Down

0 comments on commit 05ea23a

Please sign in to comment.