def __getitem__(self, item): if isinstance(item, str): item = [item] item += self.grid.vars return dm.BinnedData(grid=self.grid, data=self.data[item])
def binwise(self, *args, **kwargs): return dm.BinnedData(data=self, *args, **kwargs)