We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5557b3 commit 1e7e0a0Copy full SHA for 1e7e0a0
1 file changed
src/modality_emulator.py
@@ -61,7 +61,7 @@ def generate_dicom(self) -> Dataset:
61
logger.error("No dataset provided for DICOM generation")
62
return ds
63
64
- img_path = f"{SAMPLE_IMAGES_PATH}/L{self.view}.jpg"
+ img_path = f"{SAMPLE_IMAGES_PATH}/L{self.view.replace('ID', '')}.jpg"
65
img = Image.open(img_path).convert("L")
66
if self.laterality == "R":
67
img = img.transpose(Image.Transpose.FLIP_LEFT_RIGHT)
0 commit comments