We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 745091a commit 3755c35Copy full SHA for 3755c35
src/boltz/data/write/pdb.py
@@ -151,7 +151,11 @@ def to_pdb(
151
atom_index += 1
152
153
# Dump CONECT records.
154
- for bonds in [structure.bonds, structure.connections]:
+ all_bonds = structure.bonds
155
+ if hasattr(structure, "connections"):
156
+ all_bonds = all_bonds + structure.connections
157
+
158
+ for bonds in all_bonds:
159
for bond in bonds:
160
atom1 = structure.atoms[bond["atom_1"]]
161
atom2 = structure.atoms[bond["atom_2"]]
0 commit comments