Skip to content

Commit a71b0b8

Browse files
author
Rob
committed
Wrapped dictionary .values() call in list
1 parent 4edfa96 commit a71b0b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/diffpy/srfit/fitbase/fitrecipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def addContribution(self, con, weight = 1.0):
179179

180180
def setWeight(self, con, weight):
181181
"""Set the weight of a FitContribution."""
182-
idx = self._contributions.values().index(con)
182+
idx = list(self._contributions.values()).index(con)
183183
self._weights[idx] = weight
184184
return
185185

0 commit comments

Comments
 (0)