.
This commit is contained in:
+1
-1
@@ -134,7 +134,7 @@ def print_dicom(dataset, indent=0):
|
||||
|
||||
for data_element in dataset:
|
||||
if data_element.VR == "SQ": # a sequence
|
||||
l.append(f"({indent_string}{data_element.name}")
|
||||
l.append(f"{indent_string}{data_element.name}")
|
||||
for sequence_item in data_element.value:
|
||||
l.append(print_dicom(sequence_item, indent + 1))
|
||||
l.append(next_indent_string + "---------")
|
||||
|
||||
@@ -26,7 +26,7 @@ This series is not associated with any cases.
|
||||
</div>
|
||||
{% for image in series.images.all %}
|
||||
{{image.image.url}}, pos: {{image.position}}, {{image.upload_filename}} [{{image.image.size|filesizeformat}}]<br />
|
||||
{{image.get_dicom_info|safe}}<br/>
|
||||
{% comment %} {{image.get_dicom_info|safe}}<br/> {% endcomment %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user