Skip to content

Commit

Permalink
Patched empty element string issue
Browse files Browse the repository at this point in the history
  • Loading branch information
João Rodrigues committed Jun 24, 2010
1 parent b67806d commit 29f48e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bio/PDB/Atom.py
Expand Up @@ -65,7 +65,7 @@ def __init__(self, name, coord, bfactor, occupancy, altloc, fullname, serial_num
self.serial_number=serial_number
# Dictionary that keeps addictional properties
self.xtra={}
if element is None :
if not element:
import warnings
from PDBExceptions import PDBConstructionWarning
warnings.warn("Atom object (name=%s) without element" % name,
Expand All @@ -77,7 +77,7 @@ def __init__(self, name, coord, bfactor, occupancy, altloc, fullname, serial_num
self.element=element

# Added by Joao for C.O.M. purposes
self.mass = IUPACData.atom_weigths[element]
# self.mass = IUPACData.atom_weigths[element]

# Special methods

Expand Down

0 comments on commit 29f48e8

Please sign in to comment.