From 9a7caebf57492be61ffc5ecdde94c1e8139130ac Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 26 Oct 2019 05:14:55 -0400 Subject: [PATCH] fix c-syntax in python error. --- python/lammps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/lammps.py b/python/lammps.py index bcf24a3fb1..9a73688f65 100644 --- a/python/lammps.py +++ b/python/lammps.py @@ -394,9 +394,9 @@ class lammps(object): self.lib.lammps_extract_compute.restype = POINTER(c_double) ptr = self.lib.lammps_extract_compute(self.lmp,id,style,type) return ptr[0] - else if style == 1: + elif style == 1: return None - else if style == 2: + elif style == 2: self.lib.lammps_extract_compute.restype = POINTER(c_int) return ptr[0] if type == 1: