def setDataAttr(self): '''adds each possible data series as an attribute.''' for getNames, getData in [(self.getXDataNames, self.getXData), (self.getYDataNames, self.getYData)]: for name in getNames(): setattr(self, munge(name), getData(name))
def setDataAttr(self): '''adds each possible data series as an attribute.''' for name in getDataNames(): setattr(self, munge(name), getData(name))