was missing in last commit

This commit is contained in:
Martin Diehl 2015-09-24 10:01:15 +00:00
parent fdee3e4fce
commit 948aa0c544
1 changed files with 2 additions and 3 deletions

View File

@ -6,8 +6,7 @@ import numpy as np
from optparse import OptionParser, Option from optparse import OptionParser, Option
# ----------------------------- # -----------------------------
def croak(self, def croak(what,
what,
newline = True): newline = True):
# ----------------------------- # -----------------------------
sys.stderr.write(('\n'.join(map(str,what)) if not hasattr(what, "strip") sys.stderr.write(('\n'.join(map(str,what)) if not hasattr(what, "strip")
@ -397,4 +396,4 @@ def curve_fit_bound(f, xdata, ydata, p0=None, sigma=None, bounds=None, **kw):
if return_full: if return_full:
return popt, pcov, infodict, errmsg, ier return popt, pcov, infodict, errmsg, ier
else: else:
return popt, pcov return popt, pcov