Source code for metawards.utils._clear_all_infections
__all__ = ["clear_all_infections"]
[docs]def clear_all_infections(infections, play_infections):
"""Clears all infections (held in the list of array(int) in infections,
and array(int) in play_infections) associated with the
passed network
"""
assert len(infections) == len(play_infections)
for i in range(0, len(infections)):
a = infections[i]
for j in range(0, len(a)):
a[j] = 0
a = play_infections[i]
for j in range(0, len(a)):
a[j] = 0