Skip to content

Commit fa89f97

Browse files
committed
Remove rebond parameter from view_in_pymol
1 parent e46cc1f commit fa89f97

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

spdkit/__init__.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,11 @@ def to_pmg_periodic_site(atom: Atom, lattice):
144144
# fbe586a0 ends here
145145

146146
# [[file:../spdkit-python.note::ec59e65f][ec59e65f]]
147-
def view_in_pymol(mol: Molecule, rebond=False, format="pdb"):
147+
def view_in_pymol(mol: Molecule, format="mol2"):
148148
"""View molecule object using pymol."""
149149
import subprocess, tempfile
150150
import time
151151

152-
if rebond:
153-
# rebuild connectivity without periodic images
154-
lat = mol.unbuild_crystal()
155-
mol.rebond()
156-
if lat:
157-
mol.set_lattice(lat)
158-
159152
with tempfile.NamedTemporaryFile(mode="w", suffix=f".{format}") as f:
160153
molfile = f.name
161154
title = mol.title

0 commit comments

Comments
 (0)