From c8020bdba08dcd5ea6b0e792355f4f7cb3e70f31 Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 14 Feb 2021 10:40:34 +0000 Subject: [PATCH] . --- helpers/images.py | 4 +++- longs/models.py | 2 ++ rad/settings.py | 4 ---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/helpers/images.py b/helpers/images.py index 2712b028..7ef67192 100644 --- a/helpers/images.py +++ b/helpers/images.py @@ -42,7 +42,9 @@ def pil_dicom_image(source, exif_orientation=True, **options): # return #source = BytesIO(source.read()) - ds = pydicom.read_file("filename") + print("start pdi") + + ds = pydicom.read_file(source) image = get_PIL_image(ds) diff --git a/longs/models.py b/longs/models.py index 40fd7934..72e7558d 100644 --- a/longs/models.py +++ b/longs/models.py @@ -231,6 +231,8 @@ class LongSeries(models.Model): return "No images", 0 img = findMiddle(images).image + thumbnailer = get_thumbnailer(img) + thumbnail = thumbnailer["exam-list"] try: thumbnailer = get_thumbnailer(img) thumbnail = thumbnailer["exam-list"] diff --git a/rad/settings.py b/rad/settings.py index 05c3238d..ae04f786 100644 --- a/rad/settings.py +++ b/rad/settings.py @@ -207,7 +207,3 @@ try: from .settings_local import * except ImportError: pass -<<<<<<< HEAD -======= - ->>>>>>> 5763aae287cbceee318f975495f7d9429517c88f