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