hwt/synthesizer/param.py
def set(self, val):
        """
        set value of this param
        """
        assert not self.__isReadOnly, \
            ("This parameter(%s) was locked"
             " and now it can not be changed" % self.name)
        assert self.replacedWith is None, \
            ("This param was replaced with new one and this "
             "should not exists")

        val = toHVal(val)
        self.defVal = val
        self._val = val.staticEval()
        self._dtype = self._val._dtype
def set(self, val):
        assert not self.__isReadOnly, \
            ("This parameter(%s) was locked"
             " and now it can not be changed" % self.name)
        assert self.replacedWith is None, \
            ("This param was replaced with new one and this "
             "should not exists")

        val = toHVal(val)
        self.defVal = val
        self._val = val.staticEval()
        self._dtype = self._val._dtype
def set ( self , val ) : assert not self . __isReadOnly , ( "This parameter(%s) was locked" " and now it can not be changed" % self . name ) assert self . replacedWith is None , ( "This param was replaced with new one and this " "should not exists" ) val = toHVal ( val ) self . defVal = val self . _val = val . staticEval ( ) self . _dtype = self . _val . _dtype
set value of this param
set value of this param