def __add__(self, other): '''do not provide closure for BaseMelodyDataset class A + B will no longer ∈ BaseMelodyDataset because it has a virtual loadGT() function''' x = ConcatDataset([self, other]) x.pathPairs = self.pathPairs + other.pathPairs return x