start new dicom diff
This commit is contained in:
+5
-1
@@ -117,7 +117,7 @@ import plotly.express as px
|
||||
from django.core.cache import cache
|
||||
from django.conf import settings
|
||||
|
||||
from helpers.images import image_as_base64, print_dicom
|
||||
from helpers.images import compare_dicom_datasets, image_as_base64, print_dicom
|
||||
|
||||
import logging
|
||||
from copy import deepcopy
|
||||
@@ -1063,9 +1063,13 @@ def image_diff(request):
|
||||
s = print_dicom(second_ds, join=False)
|
||||
|
||||
diff = difflib.HtmlDiff().make_table(f, s)
|
||||
|
||||
#dict_diff = compare_dicom_datasets(first_ds, second_ds)
|
||||
|
||||
return HttpResponse(diff)
|
||||
|
||||
#return HttpResponse(f"<pre>{dict_diff}</pre><br/>{diff}")
|
||||
|
||||
|
||||
return HttpResponse("Fail")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user