diff --git a/helpers/images.py b/helpers/images.py index 9d93ed0c..cae0e9c4 100644 --- a/helpers/images.py +++ b/helpers/images.py @@ -9,6 +9,8 @@ import pydicom import sys import glob +import itertools + try: from .pydicom_PIL import get_PIL_image except: @@ -113,7 +115,7 @@ def get_dicom_order(path): #get_dicom_order("/home/ross/Downloads/DICOM HEAD/STD4/SER1/*.dcm") def pretty_print_dicom(dataset, indent=0): - l = print_dicom(dataset, indent) + l = list(itertools.chain(*print_dicom(dataset, indent))) print(l) return "\n
".join(l)