Open shchen-idmod opened 1 year ago
emod-api 1.31.0.dev0 emod-typhoid 0.0.4.dev3 emodpy 1.22.0.dev3 emodpy-typhoid 0.0.2 c:\github\emodpy-typhoid
@shchen-idmod Typhoid_SIM deliberately has code to check whether the functions that do the transmission (exposure/acquisition) math have valid input values. This exception is potentially valid and indicates some combination of inputs is creating an invalid state. But I was encountering these types of exceptions and it wasn't obvious to me why.
I will look at these more closely with Jillian but it will require some work I think.
Repro step: Run this example and increase coverage value from 0.25 to 0.5: demographic_coverage=0.25, it will crush with error in below comps:
COMPS: https://comps.idmod.org/#explore/Simulations?filters=ExperimentId=16fe986f-4b6a-ee11-aa0b-b88303911bc1&mode=list&orderby=DateCreated+desc&count=10&offset=0&resizer=502C972C0
If outbreak coverage is less than 0.3, then it is OK: https://comps.idmod.org/#explore/Experiments?filters=Id=08aa08cb-4a6a-ee11-aa0b-b88303911bc1&offset=0&count=80