From dbc86e46916793ac868f5c5667f9975a856d7461 Mon Sep 17 00:00:00 2001 From: ytl0623 Date: Wed, 15 May 2024 20:22:52 +0800 Subject: [PATCH] Reformatted utils.py Signed-off-by: ytl0623 --- monai/transforms/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monai/transforms/utils.py b/monai/transforms/utils.py index b43fcd0d23..0fbc520979 100644 --- a/monai/transforms/utils.py +++ b/monai/transforms/utils.py @@ -423,7 +423,9 @@ def map_and_generate_sampling_centers( _shape = label.shape[1:] if _shape is None: - raise ValueError("label_spatial_shape or label with a known shape must be provided to infer the output spatial shape.") + raise ValueError( + "label_spatial_shape or label with a known shape must be provided to infer the output spatial shape." + ) centers = generate_label_classes_crop_centers( spatial_size, num_samples, _shape, indices, ratios, rand_state, allow_smaller, warn )