def SubmitLotsOfImages(): c=MakeClientConnection() directory=str() if(os.uname()[0]=='Linux'): directory='/mnt/windows/TestRead/' else: directory="C:\\TestRead\\StoreTest\\" images=os.listdir(directory) for image in images: ds=dicom.open(directory+image) ret=c.Store(ds) print ret
def OpenDataset(): ds=dicom.open("test_dicom_file") return ds