use preferred comparison method

This commit is contained in:
Axel Kohlmeyer
2024-07-24 08:57:47 -04:00
parent fbd37bd5e9
commit 732786d178

View File

@ -992,7 +992,7 @@ class lammps(object):
return None
dim = self.extract_pair_dimension(name)
if dim == None:
if dim is None:
return None
elif dim == 0:
self.lib.lammps_extract_pair.restype = POINTER(c_double)