Improved deprecation warning for min/max_range

This commit is contained in:
2025-12-06 08:52:44 -04:00
parent 117e43a984
commit b87ea5011c

View File

@@ -343,7 +343,12 @@ class GA_Options:
stacklevel=2
)
if self.min_range != 0.0 or self.max_range != 0.0:
warnings.warn("min_range and max_range are no longer used, instead cauchy's bound is used to find these values")
warnings.warn(
"The 'min_range' and 'max_range' parameters are deprecated and will be ignored. "
"Search bounds are now automatically calculated using Cauchy's bound.",
DeprecationWarning,
stacklevel=2
)
def _get_cauchy_bound(coeffs: np.ndarray) -> float:
"""