Merge a dataset (ds) into another dataset.

16 views
Skip to first unread message

Normand Robert

unread,
May 31, 2024, 5:14:03 PMMay 31
to pydicom
I am creating a version of findscu.py that can do multiple queries via an input CSV file but gives priority  to the dataset (ds)  initialized from a DICOM fille and via cmd line args which is the current behaviour.

Is there a more elegant way to merge datasets than this:

# Merge ds into dss
    for my_ds in dss:
        # print (my_ds)
        for d in ds.iterall():
            elem = ElementPath(d.keyword + '='+ d.value)
            my_ds=elem.update(my_ds)

Regards

Reply all
Reply to author
Forward
0 new messages