add todict to calc_value

This commit is contained in:
2021-01-30 17:06:56 +01:00
parent 84a67b20d0
commit c6cda5ce92
242 changed files with 218 additions and 83 deletions

View File

@ -32,7 +32,7 @@ from .annotator import CONVERT_OPTION
from .objspace import RootRougailObject
FUNC_TO_DICT = []
FUNC_TO_DICT = ['calc_value']
class Root(): # pylint: disable=R0903
@ -220,7 +220,7 @@ class Common:
f"'expected': ParamValue('{child.expected}')")
if child.inverse:
kwargs += ", 'reverse_condition': ParamValue(True)"
return f"Calculation(calc_value, Params(ParamValue('{child.name}'), kwargs={{{kwargs}}}))"
return f"Calculation(func.calc_value, Params(ParamValue('{child.name}'), kwargs={{{kwargs}}}))"
def populate_informations(self):
"""Populate Tiramisu's informations