def _set_work_to_play(params, name: str, index: int, value: float):
    """Adjust the Parameters.work_to_play parameter"""
    if index is not None:
        raise IndexError('You cannot index the work_to_play parameter')
    params.work_to_play = value
