From b87ea5011c21f74659647c6330972f261895766d Mon Sep 17 00:00:00 2001 From: Jonathan Rampersad Date: Sat, 6 Dec 2025 08:52:44 -0400 Subject: [PATCH] Improved deprecation warning for min/max_range --- src/polysolve/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/polysolve/__init__.py b/src/polysolve/__init__.py index 6fe8e75..0e3c66d 100644 --- a/src/polysolve/__init__.py +++ b/src/polysolve/__init__.py @@ -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: """