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:
@@ -313,7 +313,7 @@ verbose: {verbose}")
|
||||
|
||||
# run activity rate modeling
|
||||
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}")
|
||||
lambdas = np.array([custom_rate], dtype='d')
|
||||
lambdas_perc = np.array([1], dtype='d')
|
||||
|
Reference in New Issue
Block a user