Fixed FutureWarning for comparison against none

This commit is contained in:
Andreas Aigner
2016-06-11 09:46:33 +02:00
parent bd2956bf36
commit 37e8e54f41

View File

@ -313,7 +313,7 @@ def particleGran(file,atoms,names,n_values):
f = open(file,"w")
# if no atoms are present
if atoms == None:
if atoms is None:
atoms = []
# find indices of scalars and vectors