add basic dicom diff support
This commit is contained in:
+2
-2
@@ -285,7 +285,7 @@ def series_split_by_tag(request, series_id: int, dicom_tag:str):
|
||||
print(image)
|
||||
ds = image.get_dicom_data()
|
||||
|
||||
print("2a", ds[dicom_tag])
|
||||
#print("2a", ds[dicom_tag])
|
||||
|
||||
if dicom_tag in ds:
|
||||
val = ds[dicom_tag].value
|
||||
@@ -295,7 +295,7 @@ def series_split_by_tag(request, series_id: int, dicom_tag:str):
|
||||
else:
|
||||
image_map[val].append(image)
|
||||
else:
|
||||
return [f"{dicom_tag} not found"]
|
||||
return [f"{dicom_tag} not found {image}"]
|
||||
|
||||
new_series = []
|
||||
case = series.case.all()
|
||||
|
||||
Reference in New Issue
Block a user