You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Several error messages are missing the f-string prefix and print raw placeholders #9138
Describe the bug
Several raise statements build their message with a plain string that contains {...} placeholders but no f prefix, so users see the literal placeholder text instead of the actual value. This is similar to #9065, which fixed other malformed error messages.
Affected locations (on dev):
monai/data/synthetic.py:136 (create_test_image_3d): "f`rad_min` {rad_min} should be no less than 1." (the f is inside the quotes). The 2D version at line 59 is correct.
monai/apps/pathology/transforms/post/dictionary.py:539: "The output key ['{k}'] already exists in the input dictionary!"
monai/apps/pathology/transforms/post/dictionary.py:593: "The output key ['{self.type_map_key}'] already exists in the input dictionary!"
monai/inferers/inferer.py:1990-1991: "... Got {autoencoder_model.decoder.label_nc} and {diffusion_model.label_nc}" (also missing a space between "semantic" and "labels")
monai/networks/blocks/pos_embed_utils.py:153: "Spatial Dimension Size {spatial_dims} Not Implemented!"
Activity
Fix error messages missing the f-string prefix (Project-MONAI#9139)