GPCR-ModSim / qfepweb

Development of the web interface to QligFEP.
GNU Lesser General Public License v2.1
2 stars 1 forks source link

added stop when only 2 ligands in charge group; added exit while loop… #17

Closed JenkeScheen closed 3 years ago

JenkeScheen commented 3 years ago

Attempt at fixing issues in #13.

1) added a check that is pretty much the same as the one bfore it (that checks if there is only 1§ ligand in the group). splicing ligcol.index gave me an index error though, so I decided to stick with H.add_edge(lig['Name'][0], lig['Name'][1]) (seems more intuitive anyway) 2) the while loop in 2. Close Cycles now uses a boolean added_edge that signals whether in this iteration an edge has been added. If after the for loop no edge has been added, exit the while loop to prevent it from hanging.