diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-21 14:52:13 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-21 14:52:13 +0100 |
| commit | 01866cdfbcbe9dcb7e3eb71ab1bf88a9ad4b7dfd (patch) | |
| tree | dcc6ade8a67c655a07047316f312bafcfe570e2d | |
| parent | 9cf7987ca27bcc54c1326c2d7256543a332c3ff1 (diff) | |
| download | allocbench-01866cdfbcbe9dcb7e3eb71ab1bf88a9ad4b7dfd.tar.gz allocbench-01866cdfbcbe9dcb7e3eb71ab1bf88a9ad4b7dfd.zip | |
always use same namedtuple Class
| -rw-r--r-- | src/benchmark.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/benchmark.py b/src/benchmark.py index 23e28a7..479b2d6 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -248,10 +248,8 @@ class Benchmark: """Iterator over each possible combination of args""" if not args: args = self.args - arg_names = sorted(args.keys()) - for p in itertools.product(*[args[k] for k in arg_names]): - Perm = namedtuple("Perm", arg_names) - yield Perm(*p) + for p in itertools.product(*[args[k] for k in args.keys()]): + yield self.Perm(*p) def iterate_args_fixed(self, fixed, args=None): """Iterator over each possible combination of args containing all fixed values |
