Is your feature request related to a problem? Please describe.
|
def deprecated_arg( |
|
name, |
|
since: Optional[str] = None, |
|
removed: Optional[str] = None, |
|
msg_suffix: str = "", |
|
version_val: str = __version__, |
|
new_name: Optional[str] = None, |
|
warning_category=FutureWarning, |
|
): |
the
deprecated_arg can trigger warnings when a deprecating argument is provided by the user,
it however doesn't warn when a default value of an argument has been/will be changed.
for example it's currently not possible to warn about these changes:
Is your feature request related to a problem? Please describe.
MONAI/monai/utils/deprecate_utils.py
Lines 119 to 127 in e8c6247
the
deprecated_argcan trigger warnings when a deprecating argument is provided by the user,it however doesn't warn when a default value of an argument has been/will be changed.
for example it's currently not possible to warn about these changes:
random_sizedefaulting toFalsein RandSpatialCropd #5652image_only=TrueinLoadImaged#5007