tapios / risk-networks

Code for risk networks: a blend of compartmental models, graphs, data assimilation and semi-supervised learning
Other
2 stars 2 forks source link

Can hospital_seeking be anything other than a list? #86

Closed glwagner closed 4 years ago

glwagner commented 4 years ago

If not, we don't need this check:

https://github.com/dburov190/risk-networks/blob/700f7359cac510da7cb5026ea7b8a8aa8befeace/epiforecast/health_service.py#L142

odunbar commented 4 years ago

When i wrote this initially, if there were zero or one hospital_seeking it would not be a list and so give errors when len(hospital_seeking). Now it is constructed with [ i for ..... ] and so will always be a list.

It can be removed

glwagner commented 4 years ago

I will do this in #88