Skip to content

Commit

Permalink
PIXI-126: Fix string concatenation TypeError in the `splitter_of_mice…
Browse files Browse the repository at this point in the history
…` package.
  • Loading branch information
andylassiter committed Feb 15, 2024
1 parent 881c4a0 commit 823469c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- [PIXI-126] - Fix string concatenation TypeError in the `splitter_of_mice` package.

## [0.1.1] - 2024-01-31

### Fixed
Expand All @@ -23,3 +27,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Initial release of the PIXI Mice Image Splitter and Docker image.


[PIXI-126]: https://radiologics.atlassian.net/browse/PIXI-126
4 changes: 2 additions & 2 deletions splitter_of_mice/splitter_of_mice/image_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,9 +840,9 @@ def save_cut(self, index, path, zip=False):
split_ds.PatientComments = metadata['PatientComments']

if 'SeriesDescription' in split_ds and split_ds.SeriesDescription:
split_ds.SeriesDescription += ' split ' + patient_id
split_ds.SeriesDescription += f' split {patient_id}'
else:
split_ds.SeriesDescription = 'split ' + patient_id
split_ds.SeriesDescription = f'split {patient_id}'

if split_ds.Modality == 'PT' and 'RadiopharmaceuticalInformationSequence' in split_ds:
if 'RadiopharmaceuticalStartTime' in metadata:
Expand Down

0 comments on commit 823469c

Please sign in to comment.