Skip to content

Commit b2d430d

Browse files
Apply suggestions from code review
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: Jirka Borovec <[email protected]>
1 parent b249b2f commit b2d430d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/losses/dice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def __init__(
494494
raise ValueError(f"dist_matrix must be C x C, got {dist_matrix.shape[0]} x {dist_matrix.shape[1]}.")
495495

496496
if weighting_mode not in ["default", "GDL"]:
497-
raise ValueError(f"weighting_mode must be either 'default' or 'GDL, got {weighting_mode}.")
497+
raise ValueError(f"weighting_mode must be either 'default' or 'GDL', got {weighting_mode}.")
498498

499499
self.m = dist_matrix
500500
if isinstance(self.m, np.ndarray):

0 commit comments

Comments
 (0)