Skip to content

Commit

Permalink
Fix emod-abm: match return value for out of bounds to regular executi…
Browse files Browse the repository at this point in the history
…on (#83)

Co-authored-by: Katherine <[email protected]>
  • Loading branch information
krosenfeld-IDM and krosenfeld authored May 25, 2024
1 parent 5590381 commit 641ee29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion models/emod-abm/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ def __call__(self, parameters, config):
if (R0_VAR <= 0) or (R0 <= 0) or \
(Acquisition_Transmission_Correlation > 1) or \
(Acquisition_Transmission_Correlation < 0):
return [[-999]]
channels = ['New Infections', 'Infected', 'Infectious Population', 'Susceptible Population', 'Symptomatic Population', 'Recovered Population', 'Exposed Population']
values = [0, 0, 0, 1, 0, 0, 0]
out_of_bounds = {k:{"Data":[v]} for k,v in zip(channels, values)}
return [[out_of_bounds]]

# update config file
inf_prd_mean = 8.0
Expand Down

0 comments on commit 641ee29

Please sign in to comment.