def __init__(self, **kw): # Explicitly call the AbstractDataSource constructor because # the ArrayDataSource ctor wants a data array AbstractDataSource.__init__(self, **kw) self.recalculate()
def __init__(self, data=array([]), sort_order="none", **kw): AbstractDataSource.__init__(self, **kw) self.set_data(data, sort_order) return