From acdddcfe9cc7a525c200903a0a55649c75c89681 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 24 Jul 2018 23:25:29 +0200 Subject: [PATCH] has_dependency only for validator --- tiramisu/option/baseoption.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiramisu/option/baseoption.py b/tiramisu/option/baseoption.py index ffdb935..3cd2a9b 100644 --- a/tiramisu/option/baseoption.py +++ b/tiramisu/option/baseoption.py @@ -165,7 +165,8 @@ class Base(object): self._has_calc_context = True elif isinstance(param, ParamOption): param.option._add_dependency(self) - self._has_dependency = True + if type_ == 'validator': + self._has_dependency = True is_multi = self.impl_is_dynoptiondescription() or self.impl_is_multi() func_args, func_kwargs, func_positional, func_keyword = self._get_function_args(calculator) calculator_args, calculator_kwargs = self._get_parameters_args(calculator_params, add_value)