'Allow dynamic resetting of stages.'

@skip_if_no_progress_log
def set_stages(self, num_stages=None, notes=None):

    self.check_if_cancel_requested()
    self.display_notes(notes)
    self.progress_log.update_total_stages(num_stages)
