diff --git a/python/.gitignore b/python/.gitignore new file mode 100644 index 0000000000..27ffc2f17f --- /dev/null +++ b/python/.gitignore @@ -0,0 +1,2 @@ +*.pyc +build diff --git a/python/lammps.py b/python/lammps.py index cb818841f2..114468e36e 100644 --- a/python/lammps.py +++ b/python/lammps.py @@ -177,7 +177,7 @@ class lammps: # double was allocated by library interface function def extract_fix(self,id,style,type,i=0,j=0): - id = ide.encode() + id = id.encode() if style == 0: self.lib.lammps_extract_fix.restype = POINTER(c_double) ptr = self.lib.lammps_extract_fix(self.lmp,id,style,type,i,j)