forked from lijiext/lammps
Use in syntax for key lookup for Python 3 compatibility
This commit is contained in:
parent
6a1f7e61f2
commit
93cc6f4a5d
|
@ -12,7 +12,7 @@ class LAMMPSLJCutPotential(object):
|
|||
'NULL': (0.0,1.0, 0.0, 0.0,0.0,0.0)}}
|
||||
|
||||
def map_coeff(self,name,type):
|
||||
if self.coeff.has_key(name):
|
||||
if name in self.coeff:
|
||||
self.pmap[type] = name
|
||||
else:
|
||||
raise Exception("cannot match atom type %s" % name)
|
||||
|
|
Loading…
Reference in New Issue