Skip to content

Commit e352311

Browse files
committed
Ensure not_in_site is string and not filter
1 parent e21f059 commit e352311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

burnman/utils/chemistry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def process_solution_chemistry(solution_model):
402402

403403
# Loop over species after site
404404
if len(site_split) != 1:
405-
not_in_site = str(filter(None, site_split[1]))
405+
not_in_site = site_split[1].strip()
406406
not_in_site = not_in_site.replace(mult, "", 1)
407407
for enamenumber in re.findall("[A-Z][^A-Z]*", not_in_site):
408408
sp = list(filter(None, re.split(r"(\d+)", enamenumber)))

0 commit comments

Comments
 (0)