Skip to content

Commit

Permalink
get rid of debug calls
Browse files Browse the repository at this point in the history
  • Loading branch information
saransh13 committed Aug 18, 2023
1 parent 09cc9f1 commit 555f3c1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions hexrd/wppf/WPPF.py
Original file line number Diff line number Diff line change
Expand Up @@ -2057,7 +2057,7 @@ def Refine(self):
"jac": "2-point",
}

fitter = lmfit.Minimizer(self.calcRwp, params, iter_cb=test_print)
fitter = lmfit.Minimizer(self.calcRwp, params)

self.res = fitter.least_squares(**fdict)

Expand Down Expand Up @@ -2964,9 +2964,3 @@ def join_regions(vector_list, global_index, global_shape):
"pvtch": "pseudo-voight (thompson, cox, hastings)",
"pvpink": "pseudo-voight (von dreele)",
}

def test_print(params, it, resid, *fcn_args, **fcn_kws):
val = []
for p in params:
val.append(params[p].value)
print(it, val, np.sum(resid**2))

0 comments on commit 555f3c1

Please sign in to comment.