diff --git a/bionetgen/atomizer/sbml2bngl.py b/bionetgen/atomizer/sbml2bngl.py index 7e0f7c7e..5c7d2639 100755 --- a/bionetgen/atomizer/sbml2bngl.py +++ b/bionetgen/atomizer/sbml2bngl.py @@ -643,7 +643,7 @@ def find_all_symbols(self, math, reactionID): for key, val in replace_dict.items(): form = re.sub(rf"\b{re.escape(key)}\b", val, form) # Let's also pool this in used_symbols - for sym in self.all_syms.keys(): + for sym in self.all_syms: if sym not in self.used_symbols: self.used_symbols.append(sym) # Sympy doesn't allow and/not/or to be used