From 6bb097f6720853409a9a5c1a3f21af12462e471f Mon Sep 17 00:00:00 2001 From: spo Date: Mon, 26 Oct 2015 14:23:12 +0300 Subject: [PATCH] roots use tools --- src/PythonAPI/model/roots.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/PythonAPI/model/roots.py b/src/PythonAPI/model/roots.py index b5d05f559..798f4dac3 100644 --- a/src/PythonAPI/model/roots.py +++ b/src/PythonAPI/model/roots.py @@ -5,7 +5,7 @@ Copyright (C) 2014-20xx CEA/DEN, EDF R&D import ModelAPI -from .tools import get_value, convert_to_underscore +from model import tools class Feature(ModelAPI.ModelAPI_Feature): @@ -46,7 +46,7 @@ class Interface(): if name.startswith("get"): possible_names = [ "_" + name[3:], - "_" + convert_to_underscore(name[3:]), + "_" + tools.convert_to_underscore(name[3:]), ] for possible_name in possible_names: if hasattr(self, possible_name): @@ -63,6 +63,10 @@ class Interface(): """Return ModelAPI_Feature.""" return self._feature + def _fill_attribute(self, attribute, value, *args): + """Fill ModelAPI_Attribute* with value.""" + tools.fill_attribute(attribute, value, *args) + def setRealInput(self, inputid, value): self._feature.data().real(inputid).setValue(value) -- 2.39.2