コード例 #1
0
 def __call__(self):
     ARGPARSER.epilog = self.steps.get_steps_text()
     self.args = ARGPARSER.parse_args()
     if not self.args.steps and not self.args.run_all_steps:
         ARGPARSER.print_help()
         sys.exit(0)
     # If no steps were given on the commandline, run all exp steps.
     steps = [self.steps.get_step(name)
              for name in self.args.steps] or self.steps
     if self.args.run_all_steps:
         self.environment.run_steps(steps)
     else:
         Sequence.run_steps(steps)
コード例 #2
0
ファイル: experiment.py プロジェクト: galdreiman/PAC
    def __call__(self):
        ARGPARSER.epilog = self.steps.get_steps_text()
        self.args = ARGPARSER.parse_args()
        if not self.args.steps and not self.args.run_all_steps:
            ARGPARSER.print_help()
            sys.exit(0)
        # If no steps were given on the commandline, run all exp steps.
        steps = [self.steps.get_step(name) for name in self.args.steps] or self.steps


        if self.args.run_all_steps:
            self.environment.run_steps(steps)
        else:
            Sequence.run_steps(steps)
コード例 #3
0
ファイル: environments.py プロジェクト: galdreiman/PAC
 def run_steps(self, steps):
     Sequence.run_steps(steps)
コード例 #4
0
 def run_steps(self, steps):
     Sequence.run_steps(steps)