コード例 #1
0
ファイル: load_run_presenter.py プロジェクト: dpaj/mantid
 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
コード例 #2
0
ファイル: presenter.py プロジェクト: samueljackson92/mantid
 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