def save_path(self, path): with open(path, 'wb') as f: np.savez( f, ndim=len(self._axes) + 1, mean=self.mean, std=self.std, )