def get_decremented_run_list(self): """ Updates list of runs by adding a run equal to 1 before to the lowest run. """ run_list = load_utils.flatten_run_list(copy.copy(self._model.current_runs)) if run_list is None or len(run_list) == 0: return [] if len(run_list) == 1: run_list = [run_utils.decrement_run(run_list[0]), run_list[0]] else: run_list = run_utils.decrement_run_list(run_list) return run_list
def get_decremented_run_list(self): """ Updates list of runs by adding a run equal to 1 before to the lowest run. """ run_list = load_utils.flatten_run_list(copy.copy(self.runs)) if run_list is None or len(run_list) == 0: return [] if len(run_list) == 1: run_list = [run_utils.decrement_run(run_list[0]), run_list[0]] else: run_list = run_utils.decrement_run_list(run_list) return run_list