InstituteforDiseaseModeling / covasim

COVID-19 Agent-based Simulator (Covasim): a model for exploring coronavirus dynamics and interventions
https://covasim.org
MIT License
250 stars 223 forks source link

interventions.find_day() needs updated signature for sc.findinds() #296

Closed rbelew closed 3 years ago

rbelew commented 3 years ago

Call of sc.findinds() in interventions.find_day() needs to be updated:

https://github.com/InstituteforDiseaseModeling/covasim/blob/6e4e870c3db204c69876f045637e73e32cb894d3/covasim/interventions.py#L38

generates exception: findinds() got an unexpected keyword argument 'val1'

change to all_inds = sc.findinds(arr, val=t) to match updated call in newest (version 2020nov29) of sciris.sc_math.findinds()

Platform

rbelew commented 3 years ago

Never mind; Cliff already caught it:)