Skip to content

Commit e50560d

Browse files
Merge remote changes and fix CodeRabbit review issues
- Merge remote updates into local branch - Fix return type from Union[Tensor, np.ndarray] to torch.Tensor - Refactor exception classes with default messages (fix TRY003) - Update tests to match new exception format Signed-off-by: Hitendrasinh Rathod <[email protected]>
2 parents 885ae4b + 0daee66 commit e50560d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

monai/tests/test_clinical_preprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ def test_preprocess_dicom_series_integration(tmp_path):
158158
assert hasattr(result, "shape")
159159
result2 = preprocess_medical_image(str(test_file), modality)
160160
assert result2 is not None
161-
assert hasattr(result2, "shape")
161+
assert hasattr(result2, "shape")

monai/transforms/clinical_preprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,4 @@ def preprocess_dicom_series(path: str, modality: str) -> torch.Tensor:
150150
"get_mri_preprocessing_pipeline",
151151
"preprocess_dicom_series",
152152
"preprocess_medical_image",
153-
]
153+
]

0 commit comments

Comments
 (0)