def replace_extension(self, dcmmeta_ext):
        self.remove_extension()
        self.nii_img.get_header().extensions.append(dcmmeta_ext)
        self.meta_ext = dcmmeta_ext
Replace the DcmMetaExtension.
dataset/ETHPy150Open moloney/dcmstack/src/dcmstack/dcmmeta.py/NiftiWrapper.replace_extension