X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2F__init__.py;h=8a73b05ba4637b4c804b0f0ca876d3e38343a54a;hb=c38654db595b51f0295f607c51172dae56d1d65d;hp=7d6390e70f892dcbc3bb862a1355b81caa2f21d9;hpb=bafdfafe6c1b30607035fc4018c0405169b348e8;p=gdcm.git diff --git a/gdcmPython/__init__.py b/gdcmPython/__init__.py index 7d6390e7..8a73b05b 100644 --- a/gdcmPython/__init__.py +++ b/gdcmPython/__init__.py @@ -53,6 +53,7 @@ except KeyError: print "Path to dictionaries is mandatory. Exiting" sys.exit(1) os.environ["GDCM_DICT_PATH"] = Path +GDCM_DICT_PATH = os.environ["GDCM_DICT_PATH"] ### Set up the path to the data images for the demos. GDCM_DATA_PATH = BuildInstallOrPreinstallPath("Test", "test.acr") @@ -70,13 +71,21 @@ except ImportError,e: raise ImportError, "gdcm extension not imported." ### Expose only the necessary stuff -gdcmDictSet = gdcm.gdcmDictSet -gdcmHeader = gdcm.gdcmHeader -gdcmHeaderHelper = gdcm.gdcmHeaderHelper -gdcmFile = gdcm.gdcmFile +gdcmGlobal = gdcm.gdcmGlobal +gdcmDictSet = gdcm.gdcmDictSet +gdcmDicomDir = gdcm.gdcmDicomDir +gdcmHeader = gdcm.gdcmHeader +gdcmHeaderHelper = gdcm.gdcmHeaderHelper +gdcmFile = gdcm.gdcmFile -def GetPubDictTagNames(): - return gdcm.cvar.gdcmGlob.GetDicts().GetPubDictTagNames() +gdcmDicomDirMeta = gdcm.gdcmDicomDirMeta +gdcmDicomDirPatient = gdcm.gdcmDicomDirPatient +gdcmDicomDirStudy = gdcm.gdcmDicomDirStudy +gdcmDicomDirSerie = gdcm.gdcmDicomDirSerie +gdcmDicomDirImage = gdcm.gdcmDicomDirImage -def GetPubDictTagNamesByCategory(): - return gdcm.cvar.gdcmGlob.GetDicts().GetPubDictTagNamesByCategory() +def GetPubDictEntryNames(): + return gdcm.cvar.gdcmGlob.GetDicts().GetPubDictEntryNames() + +def GetPubDictEntryNamesByCategory(): + return gdcm.cvar.gdcmGlob.GetDicts().GetPubDictEntryNamesByCategory()