Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion rmgpy/molecule/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
from .atomtype import AtomType, atomTypes, getAtomType
import rmgpy.constants as constants

import numpy

#: This dictionary is used to shortcut lookups of a molecule's SMILES string from its chemical formula.
_known_smiles_molecules = {
'N2': 'N#N',
Expand Down Expand Up @@ -107,7 +109,7 @@ class Atom(Vertex):
e.g. ``atom.symbol`` instead of ``atom.element.symbol``.
"""

def __init__(self, element=None, radicalElectrons=0, spinMultiplicity=1, charge=0, label='', lonePairs=0, coords=None):
def __init__(self, element=None, radicalElectrons=0, spinMultiplicity=1, charge=0, label='', lonePairs=0, coords=numpy.array([])):
Vertex.__init__(self)
if isinstance(element, str):
self.element = elements.__dict__[element]
Expand Down