Skip to content

Commit

Permalink
Fix missing indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
erikogabrielsson committed Jan 12, 2024
1 parent 6ff2b28 commit 4b1c61f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 19 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.18.1] - 2023-11-12

### Fixed

- Missing indentation in `Patient` and `Equipment` metadata classes.

## [0.18.0] - 2023-11-12

### Added
Expand Down Expand Up @@ -288,7 +294,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Initial release of wsidicom

[Unreleased]: https://github.com/imi-bigpicture/wsidicom/compare/0.18.0..HEAD
[Unreleased]: https://github.com/imi-bigpicture/wsidicom/compare/0.18.1..HEAD
[0.18.1]: https://github.com/imi-bigpicture/wsidicom/compare/v0.18.1..v0.18.1
[0.18.0]: https://github.com/imi-bigpicture/wsidicom/compare/v0.17.0..v0.18.0
[0.17.0]: https://github.com/imi-bigpicture/wsidicom/compare/v0.16.0..v0.17.0
[0.16.0]: https://github.com/imi-bigpicture/wsidicom/compare/v0.15.2..v0.16.0
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "wsidicom"
version = "0.18.0"
version = "0.18.1"
description = "Tools for handling DICOM based whole scan images"
authors = ["Erik O Gabrielsson <[email protected]>"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion wsidicom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@
from wsidicom.web import WsiDicomWebClient
from wsidicom.wsidicom import WsiDicom

__version__ = "0.18.0"
__version__ = "0.18.1"
11 changes: 5 additions & 6 deletions wsidicom/metadata/equipment.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ class Equipment:
device_serial_number: Optional[str] = None
software_versions: Optional[Sequence[str]] = None


def remove_confidential(self) -> "Equipment":
return replace(
self,
device_serial_number=None,
)
def remove_confidential(self) -> "Equipment":
return replace(
self,
device_serial_number=None,
)
21 changes: 11 additions & 10 deletions wsidicom/metadata/patient.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,14 @@ class Patient:
species_description: Optional[Union[str, Code]] = None
de_identification: Optional[PatientDeIdentification] = None


def remove_confidential(self) -> "Patient":
return replace(
self,
name=None,
identifier=None,
birth_date=None,
sex=None,
de_identification=replace(self.de_identification, identity_removed=True),
)
def remove_confidential(self) -> "Patient":
return replace(
self,
name=None,
identifier=None,
birth_date=None,
sex=None,
de_identification=replace(self.de_identification, identity_removed=True)
if self.de_identification
else None,
)

0 comments on commit 4b1c61f

Please sign in to comment.