don't display contrast if none

This commit is contained in:
Ross
2023-08-08 08:55:55 +01:00
parent f3c8fb5847
commit 4aa4db5d01
+1 -1
View File
@@ -528,7 +528,7 @@ class Series(SeriesBase):
# instances.append(image.get_image_dicom_json(image_index))
description = f"{self.examination} ({self.plane})"
if self.contrast:
if self.contrast and self.contrast is not None:
description = f"{description} / {self.contrast}"
series_json["SeriesDescription"] = description
series_json["instances"] = instances