def patch_dcm_ds_is(dcm):
    for elem in dcm:
        if elem.VM == 1:
            if elem.VR in ('DS', 'IS'):
                if elem.value == '':
                    continue
                if elem.VR == 'DS':
                    elem.VR = 'FD'
                    elem.value = float(elem.value)
                else:
                    elem.VR = 'SL'
                    elem.value = int(elem.value)
        else:
            if elem.VR in ('DS', 'IS'):
                if elem.value == '':
                    continue
                if elem.VR == 'DS':
                    elem.VR = 'FD'
                    elem.value = [float(val) for val in elem.value]
                else:
                    elem.VR = 'SL'
                    elem.value = [int(val) for val in elem.value]
Delete an exchange
dataset/ETHPy150Open moloney/dcmstack/src/dcmstack/dcmmeta.py/patch_dcm_ds_is--crossover with--dataset/ETHPy150Open veegee/amqpy/amqpy/channel.py/Channel.exchange_delete