Skip to content

Commit 4f724d7

Browse files
committed
Insert lambda into map in prcalcualtor.py
1 parent 312c34d commit 4f724d7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/diffpy/srfit/sas/prcalculator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ def __call__(self, r):
9292
self._invertor.y = iq
9393
self._invertor.err = diq
9494
c, c_cov = self._invertor.invert_optimize()
95-
calculate_pr = lambda x: self._invertor.pr(c, x)
96-
pr = map(calculate_pr, r)
97-
95+
pr = map(lambda x: self._invertor.pr(c, x), r)
9896
pr = numpy.array(pr)
9997
return self.scale.value * pr
10098

0 commit comments

Comments
 (0)