Updates to Solver Wrappers.

bug fix in dependentProperty
This commit is contained in:
rowanc1
2014-03-19 13:33:45 -07:00
parent 7402782541
commit ecc7aaf9b0
3 changed files with 12 additions and 9 deletions
+2 -1
View File
@@ -136,7 +136,8 @@ def callHooks(match, mainFirst=False):
def dependentProperty(name, value, children, doc):
def fget(self): return getattr(self,name,value)
def fset(self, val):
if getattr(self,name,value) == val: return # it is the same!
if isScalar(val) and getattr(self,name,value) == val:
return # it is the same!
for child in children:
if hasattr(self, child):
delattr(self, child)