Commit 61127ce0 by peastman

Merge pull request #124 from peastman/unused

Removed some unused code
parents 14e64d7d 59e3c3cc
......@@ -390,7 +390,6 @@ class PDBFixer(object):
# Create the new residue and add existing heavy atoms.
newResidue = newTopology.addResidue(residue.name, newChain, residue.id)
addResiduesAfter = (residue == chainResidues[-1] and (chain.index, indexInChain+1) in self.missingResidues)
for atom in residue.atoms():
if not heavyAtomsOnly or (atom.element is not None and atom.element != hydrogen):
if atom.name == 'OXT' and (chain.index, indexInChain+1) in self.missingResidues:
......@@ -737,11 +736,6 @@ class PDBFixer(object):
>>> fixer.addMissingHydrogens(7.0)
"""
# First find residues based on our table of standard substitutions.
index_to_old_name = dict((r.index, r.name) for r in self.topology.residues())
index_to_new_residues = {}
# Retrieve all residues that match the specified chain_id.
# NOTE: Multiple chains may have the same chainid, but must have unique resSeq entries.
resSeq_to_residue = dict() # resSeq_to_residue[resid] is the residue in the requested chain corresponding to residue identifier 'resid'
......@@ -900,7 +894,6 @@ class PDBFixer(object):
# Create a System for energy minimizing it.
res = list(newTopology.residues())
forcefield = self._createForceField(newTopology, False)
system = forcefield.createSystem(newTopology)
......
......@@ -13,10 +13,8 @@ from .pdbfixer import PDBFixer, proteinResidues, dnaResidues, rnaResidues, _gues
from . import uiserver
try:
from urllib.request import urlopen
from io import StringIO
except:
from urllib2 import urlopen
from cStringIO import StringIO
def loadHtmlFile(name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment