You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (self._infer_CO_bonds_within_glycan(candidate).sum() ==1)
180
171
]
181
172
# If there are multiple such bonds, we can't infer which to drop
182
173
iflen(bonds_b) ==1:
183
-
b_bond=bonds_b.pop()
174
+
[b_bond]=bonds_b
184
175
self.atom_exists_mask[b_bond] =False
185
176
logger.info(
186
177
f"Bond {i} right: Dropping latter atom in bond {self.atom_residue_index[atom_b]}{self.atom_ref_name[atom_b]} -> {self.atom_residue_index[b_bond]}{self.atom_ref_name[b_bond]}"
187
178
)
188
179
continue# Only identify one leaving atom per bond
189
180
190
181
# Repeat the above for atom_a if we didn't find anything for atom B
if (self._infer_CO_bonds_within_glycan(candidate).sum() ==1)
206
192
]
207
193
# If there are multiple such bonds, we can't infer which to drop
208
194
iflen(bonds_a) ==1:
209
-
a_bond=bonds_a.pop()
195
+
[a_bond]=bonds_a
210
196
self.atom_exists_mask[a_bond] =False
211
197
logger.info(
212
198
f"Bond {i} left: Dropping latter atom in bond {self.atom_residue_index[atom_a]}{self.atom_ref_element[atom_a]} -> {self.atom_residue_index[a_bond]}{self.atom_ref_element[a_bond]}"
0 commit comments