.
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -207,7 +207,3 @@ try:
|
||||
from .settings_local import *
|
||||
except ImportError:
|
||||
pass
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
>>>>>>> 5763aae287cbceee318f975495f7d9429517c88f
|
||||
|
||||
Reference in New Issue
Block a user