enforce: user must have "activity rate estimation" unselected for custom rate to be used

Previously, user could enter a value enter the  custom rate box, enable "activity rate estimation" and the custom rate box would disappear but the program would still see the value previously entered and use it even though it was no longer visible in the user interface
This commit is contained in:
2025-09-10 12:00:50 +02:00
parent a1c0ae36bb
commit 5a1f43d6cd

View File

@@ -313,7 +313,7 @@ verbose: {verbose}")
# run activity rate modeling # run activity rate modeling
lambdas = [None] lambdas = [None]
if custom_rate != None and forecast_select: if custom_rate != None and forecast_select and not rate_select:
logger.info(f"Using activity rate specified by user: {custom_rate} per {time_unit}") logger.info(f"Using activity rate specified by user: {custom_rate} per {time_unit}")
lambdas = np.array([custom_rate], dtype='d') lambdas = np.array([custom_rate], dtype='d')
lambdas_perc = np.array([1], dtype='d') lambdas_perc = np.array([1], dtype='d')