docstrings
This commit is contained in:
parent
c91e7eff97
commit
bd489346a9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user