Skip to content

Commit 55ba75b

Browse files
authored
Merge pull request #60 from ZviBaratz/fix
Fixed private tag exclusion from the to_dict() method, resolves #59.
2 parents f4479d8 + 3857326 commit 55ba75b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/release_notes.rst

+7-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Release Notes
55
-----
66
* Chaned license to MIT.
77
* Removed NiBabel from requirements.
8-
* Made pandas an optional requirement.
8+
* Made pandas an optional requirement.
99
* Added new :class:`~dicom_parser.image.Image` attributes and properties:
1010

1111
* :func:`~dicom_parser.image.Image.affine`
@@ -16,14 +16,18 @@ Release Notes
1616
* :func:`~dicom_parser.image.Image.rotation_matrix`
1717
* :func:`~dicom_parser.image.Image.slice_normal`
1818
* :func:`~dicom_parser.image.Image.spatial_resolution`
19-
19+
2020
* :func:`~dicom_parser.image.Image.data` now also applies rescaling as (and
2121
if) defined by the `Rescale Slope`_ and `Rescale Intercept`_ header fields.
2222
See:
23-
23+
2424
* :func:`~dicom_parser.image.Image.rescale_data`
2525
* :func:`~dicom_parser.image.Image.fix_data`
2626

27+
* Fixed private tag exclusion in the :class:`~dicom_parser.header.Header`
28+
class' :func:`~dicom_parser.header.Header.to_dict` method (see
29+
`#59 <https://github.com/ZviBaratz/dicom_parser/issues/59>`_).
30+
2731
1.1.1
2832
-----
2933
* Added Codacity and CodeFactor integrations to improve code quality and

src/dicom_parser/header.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def to_dict(self, parsed: bool = True) -> dict:
472472
Header information
473473
"""
474474
return {
475-
data_element.keyword: self.get(data_element.keyword, parsed=parsed)
475+
data_element.keyword: self.get(data_element.tag, parsed=parsed)
476476
for data_element in self.data_elements
477477
}
478478

0 commit comments

Comments
 (0)