File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -193,10 +193,10 @@ def __eq__(self, other: object) -> bool:
193
193
return all (abs (amt - other [el ]) <= type (self ).amount_tolerance for el , amt in self .items ())
194
194
195
195
def __ge__ (self , other : object ) -> bool :
196
- """Composition greater than or equal to. We consider compositions A >= B
197
- if all elements in B are in A and the amount of each element in A is
198
- greater than or equal to the amount of the element in B within
199
- Composition.amount_tolerance .
196
+ """Composition greater than or equal to. We sort the elements in the compositions in order of
197
+ electronegativity. The amount of the most electropositive element that is not equal within a certain
198
+ tolerance factor is used to make a comparison. Note that an element not present in a Composition has an implied
199
+ amount of 0 .
200
200
201
201
Should ONLY be used for defining a sort order (the behavior is probably not what you'd expect).
202
202
"""
You can’t perform that action at this time.
0 commit comments