X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=gdcmPython%2Fdemo%2FtestAll.py;fp=gdcmPython%2Fdemo%2FtestAll.py;h=0000000000000000000000000000000000000000;hb=04f3bbda36168ed865e04de8b94d2c60206f962a;hp=f210f8db9a41ad7be482aae3f73385e487c2a2a1;hpb=8c76d020058e21a1bf32f2320177bc6c8dab2309;p=gdcm.git diff --git a/gdcmPython/demo/testAll.py b/gdcmPython/demo/testAll.py deleted file mode 100644 index f210f8db..00000000 --- a/gdcmPython/demo/testAll.py +++ /dev/null @@ -1,38 +0,0 @@ -import glob, os -import sys -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__': - # AllFiles = glob.glob(os.path.join(GDCM_TEST_DATA_PATH,"*.dcm")) - for file in AllFiles: - fileName = os.path.join(GDCM_TEST_DATA_PATH, file) - print "############## file :", fileName - toRead = gdcmHeader(fileName) - ValDict = toRead.GetEntry() - for key in ValDict.keys(): - print " [%s] = [%s]" %(key, ValDict[key])