source/dcm_transform.py
def change_tag_if_arg(dataset, tag, arg):
    """Change tag if arg is set"""
    if arg != '':
        try:
            dataset.data_element(tag).value = arg
        except Exception as exc:
            print(exc)
Change tag if arg is set
Change tag if arg is set
Change tag if arg is set
def change_tag_if_arg(dataset, tag, arg):
    if arg != '':
        try:
            dataset.data_element(tag).value = arg
        except Exception as exc:
            print(exc)
def change_tag_if_arg ( dataset , tag , arg ) : if arg != '' : try : dataset . data_element ( tag ) . value = arg except Exception as exc : print ( exc )
Change tag if arg is set
Change tag if arg is set
"""Change tag if arg is set"""
dataset
tag
arg