From 04e78ade1da965ec041fa9ff7f61f75e797f1e6d Mon Sep 17 00:00:00 2001 From: Wirawan Purwanto Date: Mon, 24 Feb 2014 16:06:40 -0500 Subject: [PATCH] * Added extra debugging statements. --- math/fitting/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/math/fitting/__init__.py b/math/fitting/__init__.py index 47a6ca0..268bd0a 100644 --- a/math/fitting/__init__.py +++ b/math/fitting/__init__.py @@ -266,12 +266,16 @@ def fit_func(Funct, Data=None, Guess=None, Params=None, if use_lmfit: if Params == None: + if debug >= 10: + print "No input Params given; creating unconstrained params" # Creates a default list of Parameters for use later assert Guess != False Params = Parameters() for (g,pn) in zip(Guess, param_names): Params.add(pn, value=g) else: + if debug >= 10: + print "Input Params specified; use them" if Guess == None or Guess == False: # copy the Params' values to Guess Guess = [ Params[pn].value for pn in param_names ]