summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-04-07 11:47:24 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-04-07 11:47:24 +0200
commit26e2bd1f6b008549186ce89726ec55c5024f24dc (patch)
tree41d7102c62235b2248d2cfcb07864ab518e321c9 /bin
parent83549eb94e055d02002bf6c46a25d0ad0aed24c7 (diff)
simplify argfunction handling
Diffstat (limited to 'bin')
-rwxr-xr-xbin/merge.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/merge.py b/bin/merge.py
index df0da87..f7dbf90 100755
--- a/bin/merge.py
+++ b/bin/merge.py
@@ -514,13 +514,13 @@ def arg_fguess_to_function(name, datatype, aggdata, arguments, argdata, yaxis):
pidx += 1
for fun in elem:
buf += " * %s" % fmap('local', *fun)
- aggdata['arg_function']['estimate'] = {
+ aggdata['function']['estimate_arg'] = {
'raw' : buf,
'params' : list(np.ones((pidx))),
'base' : [best_fit[arg] for arg in args]
}
fit_function(
- aggdata['arg_function']['estimate'], name, datatype, arguments,
+ aggdata['function']['estimate_arg'], name, datatype, arguments,
argdata, yaxis=yaxis)
def param_measures(name, paramdata, key, fun):
@@ -570,7 +570,6 @@ def keydata(name, val, argdata, paramdata, tracedata, key):
ret['std_arg'] = np.mean([np.std(argdata[x][key]) for x in argdata.keys() if x[0] == name])
ret['std_by_arg'] = {}
ret['arg_fit_guess'] = {}
- ret['arg_function'] = {}
return ret