Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2024
1 parent 5020a97 commit aa87567
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions dicom_validator/spec_reader/part3_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
for specific Storage SOP Classes.
The information is taken from PS3.3 in docbook format as provided by ACR NEMA.
"""

import logging
from itertools import groupby

Expand Down
1 change: 1 addition & 0 deletions dicom_validator/spec_reader/part4_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Storage SOP Classes.
The information is taken from PS3.4 in docbook format as provided by ACR NEMA.
"""

from dicom_validator.spec_reader.spec_reader import (
SpecReader,
SpecReaderLookupError,
Expand Down
7 changes: 4 additions & 3 deletions dicom_validator/spec_reader/part6_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
The information is taken from DICOM dictionary (PS3.6) in docbook format
as provided by ACR NEMA.
"""

from dicom_validator.spec_reader.spec_reader import SpecReader, SpecReaderParseError


Expand Down Expand Up @@ -119,7 +120,7 @@ def _get_uids(self):
# spaces inside the UIDs
# we remove them hoping this is the only such problem
uid_value = self.cleaned_value(uid_attributes[0])
self._uids.setdefault(uid_type, {})[
uid_value
] = self.cleaned_value(uid_attributes[1])
self._uids.setdefault(uid_type, {})[uid_value] = (
self.cleaned_value(uid_attributes[1])
)
return self._uids

0 comments on commit aa87567

Please sign in to comment.