@@ -522,15 +522,27 @@ def check_interpolation_mode(settings: dict) -> None:
522522 """
523523 settings ["interpolation_mode" ] = settings ["interpolation_mode" ].lower ()
524524
525- valid_modes = ["off" , "false" , "linear" , "active" , "cubic" ]
526- msg = 'ERROR - Valid interpolation modes are "off", "linear" and "cubic"'
525+ valid_modes = [
526+ "linear" ,
527+ "nearest" ,
528+ "zero" ,
529+ "slinear" ,
530+ "quadratic" ,
531+ "cubic" ,
532+ "previous" ,
533+ "next" ,
534+ "active" , # legacy: see below
535+ ]
536+ msg = (
537+ 'ERROR - Valid interpolation modes are "linear", "nearest", "zero", '
538+ '"slinear", "quadratic", "cubic", "previous", "next"'
539+ )
527540 assert settings ["interpolation_mode" ] in valid_modes , msg
528541
529- # And we normalize the interpolation mode
530- # If there's no interpolation, we get the nearest value
531- if settings ["interpolation_mode" ] in ["off" , "false" ]:
532- settings ["interpolation_mode" ] = "nearest"
533- elif settings ["interpolation_mode" ] in ["linear" , "active" ]:
542+ # Legacy: "Active" was previous default - switch to "linear" (#642)
543+ if settings ["interpolation_mode" ] == "active" :
544+ msg = "'Active' interpolation mode is deprecated. Defaulting to 'linear'."
545+ getLogger (__name__ ).warning (msg )
534546 settings ["interpolation_mode" ] = "linear"
535547
536548
0 commit comments