X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fdemo%2FtestAll.py;fp=gdcmPython%2Fdemo%2FtestAll.py;h=0000000000000000000000000000000000000000;hb=7e60dba6f39cee3c99cdc92676893a8c9d618410;hp=e46fda0677af64fee587a02f840561b6cb6146b6;hpb=ec2e18e4b67fae08879a7428560e1c021ed11d6d;p=gdcm.git diff --git a/gdcmPython/demo/testAll.py b/gdcmPython/demo/testAll.py deleted file mode 100644 index e46fda06..00000000 --- a/gdcmPython/demo/testAll.py +++ /dev/null @@ -1,36 +0,0 @@ -from gdcmPython import * - -# Test each file of the Data directory - -AllFiles = [ - "CR-MONO1-10-chest.dcm", - "CT-MONO2-16-brain.dcm", - "CT-MONO2-16-ort.dcm", - "CT-MONO2-16-ankle.dcm", - "CT-MONO2-8-abdo.dcm", - "CT-MONO2-12-lomb-an2.acr2", - "CT-MONO2-16-chest.dcm", - "MR-MONO2-12-angio-an1.acr1", - "MR-MONO2-12-an2.acr2", - "MR-MONO2-16-head.dcm", - "MR-MONO2-12-shoulder.dcm", - "OT-PAL-8-face.dcm", - "OT-MONO2-8-a7.dcm", - "US-RGB-8-esopecho.dcm", - "US-RGB-8-epicard.dcm", - "MR-MONO2-8-16x-heart.dcm", - "NM-MONO2-16-13x-heart.dcm", - "US-MONO2-8-8x-execho.dcm", - "US-PAL-8-10x-echo.dcm", - "XA-MONO2-8-12x-catheter.dcm", - ] - -if __name__ == '__main__': - for file in AllFiles: - fileName = os.path.join(GDCM_DATA_PATH, file) - print "############## file :", fileName - toRead = gdcmHeader(fileName) - toRead.LoadElements() - ValDict = toRead.GetPubElVal() - for key in ValDict.keys(): - print " [%s] = [%s]" %(key, ValDict[key])