epidemioptim/utils.py
def mitigation_time(step_list):
    """
    Compute mitigation duration for each mitigation change
    """
    breaks = []
    for i in range(len(step_list)-1):
        breaks.append(step_list[i+1]-step_list[i])
    return breaks

    Compute mitigation duration for each mitigation change
    
Compute mitigation duration for each mitigation change
Compute mitigation duration for each mitigation change
def mitigation_time(step_list):
    breaks = []
    for i in range(len(step_list)-1):
        breaks.append(step_list[i+1]-step_list[i])
    return breaks
def mitigation_time ( step_list ) : breaks = [ ] for i in range ( len ( step_list ) - 1 ) : breaks . append ( step_list [ i + 1 ] - step_list [ i ] ) return breaks
Compute mitigation duration for each mitigation change
Compute mitigation duration for each mitigation change
"""
    Compute mitigation duration for each mitigation change
    """
step_list