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