Esempio n. 1
0
 def _evaluate(self, context, container):  # pylint: disable=unused-argument
     if not context.modeling.instance:
         raise CannotEvaluateFunctionException()
     the_input = context.modeling.instance.inputs.get(
         self.input_property_name,
         context.modeling.model.inputs.get(self.input_property_name))
     return the_input.value if the_input is not None else None
Esempio n. 2
0
 def _evaluate(self, context, container):  # pylint: disable=no-self-use,unused-argument
     raise CannotEvaluateFunctionException()
Esempio n. 3
0
 def _evaluate(self, context, container):
     raise CannotEvaluateFunctionException()