Skip to content

Commit

Permalink
Update structgen.py
Browse files Browse the repository at this point in the history
caveats for more unforseen instances of core3D building
  • Loading branch information
rolan701 authored Nov 18, 2024
1 parent 1556416 commit 66d7dd5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion molSimplify/Scripts/structgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -2322,6 +2322,7 @@ def mcomplex(args: Namespace, ligs: List[str], ligoc: List[int]
batslist: List[List[int]] = []
bats: List[int] = []
ffoption_list = [] # for each ligand, keeps track of what the forcefield option is.
copied = False # for determinining if core3D needs to be copied or not
# load bond data
MLbonds = loaddata('/Data/ML.dat')
# calculate occurrences, denticities etc for all ligands
Expand Down Expand Up @@ -2732,9 +2733,14 @@ def mcomplex(args: Namespace, ligs: List[str], ligoc: List[int]


# combine molecules
if len(core3D.atoms) == 1:
if len(core3D.atoms) == 1 and copied == False:
core3D_copy = mol3D()
core3D_copy.copymol3D(core3D)
copied = True
elif copied == False:
core3D_copy = mol3D()
core3D_copy.copymol3D(core3D)
copied = True
core3D_copy = core3D_copy.roland_combine(lig3D_copy, catoms)


Expand Down

0 comments on commit 66d7dd5

Please sign in to comment.