Skip to content

Commit 1e7e0a0

Browse files
committed
Fix implant displaced image path issue
We use the same sample image for ID views so remove this suffix from image path.
1 parent a5557b3 commit 1e7e0a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modality_emulator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def generate_dicom(self) -> Dataset:
6161
logger.error("No dataset provided for DICOM generation")
6262
return ds
6363

64-
img_path = f"{SAMPLE_IMAGES_PATH}/L{self.view}.jpg"
64+
img_path = f"{SAMPLE_IMAGES_PATH}/L{self.view.replace('ID', '')}.jpg"
6565
img = Image.open(img_path).convert("L")
6666
if self.laterality == "R":
6767
img = img.transpose(Image.Transpose.FLIP_LEFT_RIGHT)

0 commit comments

Comments
 (0)