From 05ea23a35ffaf03dc70e9dcbdbf302ac69765603 Mon Sep 17 00:00:00 2001 From: "Haoyu (Daniel)" Date: Thu, 9 May 2024 11:39:05 +0800 Subject: [PATCH] reverse compare order for readability --- pymatgen/core/composition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymatgen/core/composition.py b/pymatgen/core/composition.py index e11ef1a067e..0c83e068a40 100644 --- a/pymatgen/core/composition.py +++ b/pymatgen/core/composition.py @@ -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