convert custom activity rate from list to numpy array of type 'double' to satisfy cython input
This commit is contained in:
parent
d56aaeef39
commit
5b25b93090
@ -320,8 +320,8 @@ verbose: {verbose}")
|
|||||||
lambdas = [None]
|
lambdas = [None]
|
||||||
if custom_rate != None and forecast_select:
|
if custom_rate != None and forecast_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 = [custom_rate]
|
lambdas = np.array([custom_rate], dtype='d')
|
||||||
lambdas_perc = [1]
|
lambdas_perc = np.array([1], dtype='d')
|
||||||
|
|
||||||
elif rate_select:
|
elif rate_select:
|
||||||
logger.info(f"Activity rate modeling selected")
|
logger.info(f"Activity rate modeling selected")
|
||||||
|
Loading…
Reference in New Issue
Block a user