Skip to content

Commit

Permalink
Reformatted utils.py
Browse files Browse the repository at this point in the history
Signed-off-by: ytl0623 <[email protected]>
  • Loading branch information
ytl0623 committed May 15, 2024
1 parent 4ec2b64 commit dbc86e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion monai/transforms/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit dbc86e4

Please sign in to comment.