Skip to content
Snippets Groups Projects
Commit a789d22f authored by Eduard Lavuš's avatar Eduard Lavuš
Browse files

runner: allow running combinations out of order

parent 2e230eaf
No related branches found
No related tags found
No related merge requests found
...@@ -334,10 +334,9 @@ class Measurement(DefinitionBase): ...@@ -334,10 +334,9 @@ class Measurement(DefinitionBase):
if not dry_run: if not dry_run:
self._setup(allow_continue = allow_continue) self._setup(allow_continue = allow_continue)
for i, parameters in enumerate(self._generate_execution_parameters()): combinations = list(self._generate_execution_parameters())
if combination_indices is not None and i not in combination_indices: for i in combination_indices:
self._log(f"Skipping combination {i}") parameters = combinations[i]
continue
command = self.runner.prepare_command(parameters) + self.experiment.prepare_command(parameters) + self.prepare_command(parameters) command = self.runner.prepare_command(parameters) + self.experiment.prepare_command(parameters) + self.prepare_command(parameters)
env = self.runner.prepare_environment(parameters).merge(self.experiment.prepare_environment(parameters)).merge(self.prepare_environment(parameters)) env = self.runner.prepare_environment(parameters).merge(self.experiment.prepare_environment(parameters)).merge(self.prepare_environment(parameters))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment