Skip to content

Commit f513c16

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 11dce12 commit f513c16

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

monai/tests/test_clinical_preprocessing.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
# See the License for the specific language governing permissions and
1010
# limitations under the License.
1111

12-
import tempfile
13-
from pathlib import Path
1412

1513
import numpy as np
1614
import pytest
@@ -95,14 +93,14 @@ def test_preprocess_dicom_series_integration(tmp_path):
9593
# Create a dummy NIfTI file for testing
9694
dummy_data = np.random.randn(64, 64, 64).astype(np.float32)
9795
test_file = tmp_path / "test.nii.gz"
98-
96+
9997
write_nifti(dummy_data, test_file)
100-
98+
10199
# Test with each modality
102100
for modality in ["CT", "MRI"]:
103101
try:
104102
result = preprocess_dicom_series(str(test_file), modality)
105103
assert result is not None
106104
assert hasattr(result, "shape")
107105
except Exception as e:
108-
pytest.fail(f"Failed to preprocess with modality {modality}: {e}")
106+
pytest.fail(f"Failed to preprocess with modality {modality}: {e}")

monai/transforms/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,4 +759,4 @@
759759
stack,
760760
unravel_index,
761761
where,
762-
)
762+
)

monai/transforms/clinical_preprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ def preprocess_dicom_series(path: str, modality: str) -> Any:
109109
"get_ct_preprocessing_pipeline",
110110
"get_mri_preprocessing_pipeline",
111111
"preprocess_dicom_series",
112-
]
112+
]

0 commit comments

Comments
 (0)