removed unused block of code
This commit is contained in:
parent
422d2245c5
commit
2ec9a7f262
1 changed files with 1 additions and 7 deletions
|
|
@ -1705,14 +1705,8 @@ class ExposureModel:
|
|||
isinstance(self.exposed.number, IntPiecewiseConstant)):
|
||||
raise NotImplementedError("Cannot compute expected new cases "
|
||||
"with dynamic occupancy")
|
||||
# Create an equivalent exposure model without short-range interactions, if any.
|
||||
if (len(self.short_range) == 0):
|
||||
exposure_model = nested_replace(self, {'short_range': ()})
|
||||
prob = exposure_model.infection_probability()
|
||||
else:
|
||||
prob = self.infection_probability()
|
||||
|
||||
return prob * self.exposed.number / 100
|
||||
return self.infection_probability() * self.exposed.number / 100
|
||||
|
||||
def reproduction_number(self) -> _VectorisedFloat:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue