Skip to content

Commit

Permalink
Merge pull request #24 from neuro-ml/dev
Browse files Browse the repository at this point in the history
switch `elif` statements
  • Loading branch information
Arseniy Belkov authored Apr 22, 2023
2 parents b03dbac + 1ab127a commit 5eda612
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dicom_csv/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2.7'
__version__ = '0.2.8'
6 changes: 3 additions & 3 deletions dicom_csv/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ def extract_meta(instance: Dataset, read_pixel_array: bool = False) -> dict:
if isinstance(value, PERSON_CLASS):
result[attr] = str(value)

elif isinstance(value, (int, float, str)):
result[attr] = value

elif attr in SERIAL:
for pos, num in enumerate(value):
result[f'{attr}{pos}'] = num

elif isinstance(value, (int, float, str)):
result[attr] = value

return result


Expand Down

0 comments on commit 5eda612

Please sign in to comment.