Пример #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
Пример #2
0
 def _evaluate(self, context, container):  # pylint: disable=no-self-use,unused-argument
     raise CannotEvaluateFunctionException()
Пример #3
0
 def _evaluate(self, context, container):
     raise CannotEvaluateFunctionException()