def fullscan_policy(obs):
    """
    A policy function that generates only fullscan data.
    """
    valid_actions = obs['valid_actions']
    ms1_action = len(valid_actions) - 1  # last index is always the action for MS1 scan
    return ms1_action