From bd489346a98e85c629adf7dce05ffe458d95eb1c Mon Sep 17 00:00:00 2001 From: gwen Date: Fri, 10 May 2013 16:02:27 +0200 Subject: [PATCH] docstrings --- tiramisu/autolib.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tiramisu/autolib.py b/tiramisu/autolib.py index 60927af..a2714fd 100644 --- a/tiramisu/autolib.py +++ b/tiramisu/autolib.py @@ -31,9 +31,6 @@ from tiramisu.i18n import _ def carry_out_calculation(name, config, callback, callback_params): - # FIXME we have to know the exact status of the config - # not to disrupt it - # config.freeze() #callback, callback_params = option.getcallback() #if callback_params is None: # callback_params = {} @@ -113,4 +110,11 @@ def carry_out_calculation(name, config, callback, callback_params): def calculate(name, callback, params, tcparams): + """wrapper that launches the callback, that is a function + that carries out a calculation for an option's value + + :param callback: callback name + :param params: in the callback's arity, the unnamed parameters + :params tcparams: in the callback's arity, the named parameters + """ return callback(*params, **tcparams)