Fixed validation of begin and end steps

Fixed logic to match the error message - begin should be <= end.
This commit is contained in:
Jonathan
2025-01-29 09:48:18 -06:00
committed by psychedelicious
parent 4de6fd3ae6
commit 8cd7035494

View File

@@ -9,6 +9,6 @@ def validate_weights(weights: Union[float, list[float]]) -> None:
def validate_begin_end_step(begin_step_percent: float, end_step_percent: float) -> None:
"""Validate that begin_step_percent is less than end_step_percent"""
if begin_step_percent >= end_step_percent:
raise ValueError("Begin step percent must be less than or equal to end step percent")
"""Validate that begin_step_percent is less than or equal to end_step_percent"""
if begin_step_percent > end_step_percent:
raise ValueError(f"Begin step percent must be less than or equal to end step percent")