@@ -53,7 +53,7 @@ def are_equal(self, sp1, sp2) -> bool:
53
53
definition in Site and PeriodicSite.
54
54
55
55
Returns:
56
- bool: Whether species are considered equal.
56
+ bool: True if species are considered equal.
57
57
"""
58
58
return False
59
59
@@ -122,7 +122,7 @@ def are_equal(self, sp1, sp2) -> bool:
122
122
definition in Site and PeriodicSite.
123
123
124
124
Returns:
125
- bool: Whether species are equal.
125
+ bool: True if species are equal.
126
126
"""
127
127
return sp1 == sp2
128
128
@@ -151,7 +151,7 @@ def are_equal(self, sp1, sp2) -> bool:
151
151
definition in Site and PeriodicSite.
152
152
153
153
Returns:
154
- bool: Whether species are equal.
154
+ bool: True if species are equal.
155
155
"""
156
156
for s1 in sp1 :
157
157
spin1 = getattr (s1 , "spin" , 0 ) or 0
@@ -188,7 +188,7 @@ def are_equal(self, sp1, sp2) -> bool:
188
188
definition in Site and PeriodicSite.
189
189
190
190
Returns:
191
- bool: Whether species are the same based on element and amounts.
191
+ bool: True if species are the same based on element and amounts.
192
192
"""
193
193
comp1 = Composition (sp1 )
194
194
comp2 = Composition (sp2 )
@@ -1051,7 +1051,7 @@ def fit_anonymous(
1051
1051
If True, skip to get a primitive structure and perform Niggli reduction for struct1 and struct2
1052
1052
1053
1053
Returns:
1054
- bool: Whether a species mapping can map struct1 to struct2
1054
+ bool: True if a species mapping can map struct1 to struct2
1055
1055
"""
1056
1056
struct1 , struct2 = self ._process_species ([struct1 , struct2 ])
1057
1057
struct1 , struct2 , fu , s1_supercell = self ._preprocess (struct1 , struct2 , niggli , skip_structure_reduction )
0 commit comments