79430501

Date: 2025-02-11 15:35:28
Score: 3.5
Natty:
Report link

thanks for the quick answer! This what I have now: Collecting dcm-pics in a pydicom-fileset and write it down

    from os.path import isdir, join
    from pydicom.fileset import FileSet
    
    path2dcm = r"D:\Eigene Dokumente\DICOM-Bench\WenigerScans\vDICOM"
    instanceList =[]
    
    def ListFolderEntries (path):
        for entry in listdir(path):
            npath = (join(path,entry))
            if isdir(npath):
                ListFolderEntries(npath)
                
            else:
                instanceList.append(npath)  
            
    #walk through folders recursively
    #and collect the dcm-pics
    ListFolderEntries (path2dcm)
    
    for Inst in instanceList:
        myFS.add(Inst)
    #perhaps add her the series Desicription?
    
    myFS.write() #creates the file structure and a DICOMDIR

this is what i get in Micro-Dicom

How to modify the DICOMDIR that series description will be displayed? Thanks!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: HackJack