Commit 870b9e07 authored by kulvait's avatar kulvait

Upgraded readme and DICOM file.

parent 4fb16dbc
......@@ -5,3 +5,9 @@
```
pip install git+https://gitlab.stimulate.ovgu.de/vojtech.kulvait/denpy.git
```
## User upgrade
```
pip2 install --upgrade --user git+https://gitlab.stimulate.ovgu.de/vojtech.kulvait/denpy.git
```
......@@ -3,7 +3,7 @@
"""
(c) 2019
DEN and DICOM IO manipulation
DEN and DICOM IO manipulation
@author: Vojtech Kulvait
@author: Enno Schieferecke
......@@ -45,3 +45,11 @@ def getPtsIds(dicoms):
def getStudyDates(dicoms):
patientIDs = list(set([x.PatientID for x in dicoms if "StudyDate" in x.dir("StudyDate")]))
return patientIDs
def getSeriesDescriptions(dicoms):
IDs = list(set([x.SeriesDescription for x in dicoms if "SeriesDescription" in x.dir("SeriesDescription")]))
return IDs
def getInstanceUIDs(dicoms):
IDs = list(set([x.SeriesInstanceUID for x in dicoms if "SeriesDescription" in x.dir("SeriesDescription")]))
return IDs
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment