make intention clear

This commit is contained in:
Martin Diehl 2021-02-19 16:34:28 +01:00
parent ab9661d951
commit f5f993435b
1 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ class ConfigMaterial(Config):
"""
dup = self.copy()
for i,m in enumerate(dup['material']):
if ID and i not in ID: continue
if ID is not None and i not in ID: continue
for c in m['constituents']:
if constituent is not None and c not in constituent: continue
try:
@ -226,7 +226,7 @@ class ConfigMaterial(Config):
"""
dup = self.copy()
for i,m in enumerate(dup['material']):
if ID and i not in ID: continue
if ID is not None and i not in ID: continue
try:
m['homogenization'] = mapping[m['homogenization']]
except KeyError: