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): ...@@ -336,7 +336,7 @@ class Modeller(object):
# while ensuring ions are not placed too close to each other. # while ensuring ions are not placed too close to each other.
modeller = Modeller(self.topology, self.positions) modeller = Modeller(self.topology, self.positions)
replaceableList = list(replaceableMols) replaceableList = list(replaceableMols.keys())
numAddedIons = 0 numAddedIons = 0
numTrials = 10 # Attempts to add ions N times before quitting numTrials = 10 # Attempts to add ions N times before quitting
toReplace = [] # list of molecules to be replaced 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