Commit 9752ca35 by peastman

Removed some unused code

parent 14e64d7d
......@@ -46,8 +46,6 @@ import os
import os.path
import math
from pkg_resources import resource_filename
try:
from urllib.request import urlopen
from io import StringIO
......@@ -390,7 +388,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 +734,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 +892,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