Commit b0b7548a authored by João Rodrigues's avatar João Rodrigues
Browse files

Ensure we only get keys of the dictionary

parent ec1c8ebe
......@@ -336,7 +336,7 @@ class Modeller(object):
# while ensuring ions are not placed too close to each other.
modeller = Modeller(self.topology, self.positions)
replaceableList = list(replaceableMols)
replaceableList = list(replaceableMols.keys())
numAddedIons = 0
numTrials = 10 # Attempts to add ions N times before quitting
toReplace = [] # list of molecules to be replaced
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment