Skip to content

Commit

Permalink
Merge pull request #18 from superbobry/master
Browse files Browse the repository at this point in the history
Fixed ``NameError`` in fit_model_and_calc_local_idr
  • Loading branch information
nboley committed May 6, 2016
2 parents 9f16239 + c4d7440 commit 0264788
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions idr/idr.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ def fit_model_and_calc_local_idr(r1, r2,
fix_mu=False, fix_sigma=False):
# in theory we would try to find good starting point here,
# but for now just set it to somethign reasonable
if type(starting_point) == type(None):
starting_point = (DEFAULT_MU, DEFAULT_SIGMA,
DEFAULT_RHO, DEFAULT_MIX_PARAM)
if starting_point is None:
starting_point = (idr.DEFAULT_MU, idr.DEFAULT_SIGMA,
idr.DEFAULT_RHO, idr.DEFAULT_MIX_PARAM)

idr.log("Initial parameter values: [%s]" % " ".join(
"%.2f" % x for x in starting_point))
Expand Down

0 comments on commit 0264788

Please sign in to comment.