def save(self, path): """ Saves an instance of the class using `amitgroup.io.save`. Parameters ---------- path : str Output path to HDF5 file. """ io.save(path, self.save_to_dict())
def save(self, path): d = self.save_to_dict() d['name'] = self.name io.save(path, d)