Commit c3fdcc9a authored by Luke Campagnola's avatar Luke Campagnola
Browse files

Minor fix in list parameter

parent 9dbdeaa1
......@@ -539,8 +539,8 @@ class ListParameter(Parameter):
self.forward, self.reverse = self.mapping(limits)
Parameter.setLimits(self, limits)
#print self.name(), self.value(), limits
if len(self.reverse) > 0 and self.value() not in self.reverse[0]:
#print self.name(), self.value(), limits, self.reverse
if len(self.reverse[0]) > 0 and self.value() not in self.reverse[0]:
self.setValue(self.reverse[0][0])
#def addItem(self, name, value=None):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment