Improved deprecation warning for min/max_range
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user