aboutsummaryrefslogtreecommitdiffstats
path: root/gen/generator.py
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-03-18 10:52:47 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2013-03-18 10:52:47 -0400
commit7200ba40d1283f56891697cd40df7a118f37d05e (patch)
treed9444fb6940745d46bc219bc998f51fb6bc7b37b /gen/generator.py
parent7e4e76d6e05e686023455e1553c3a42aee4e0540 (diff)
Automatically merge experiments with the trial parameter.
Diffstat (limited to 'gen/generator.py')
-rw-r--r--gen/generator.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gen/generator.py b/gen/generator.py
index 73ccf45..dbf2a7b 100644
--- a/gen/generator.py
+++ b/gen/generator.py
@@ -6,7 +6,7 @@ import shutil as sh
6from Cheetah.Template import Template 6from Cheetah.Template import Template
7from collections import namedtuple 7from collections import namedtuple
8from common import get_config_option 8from common import get_config_option
9from config.config import DEFAULTS 9from config.config import DEFAULTS,PARAMS
10from gen.dp import DesignPointGenerator 10from gen.dp import DesignPointGenerator
11from parse.col_map import ColMapBuilder 11from parse.col_map import ColMapBuilder
12 12
@@ -199,14 +199,14 @@ class Generator(object):
199 os.mkdir(dir_path) 199 os.mkdir(dir_path)
200 200
201 if trials > 1: 201 if trials > 1:
202 dp['trial'] = trial 202 dp[PARAMS['trial']] = trial
203 self.out_dir = dir_path 203 self.out_dir = dir_path
204 204
205 self._create_exp(dict(dp)) 205 self._create_exp(dict(dp))
206 206
207 del(self.out_dir) 207 del(self.out_dir)
208 if 'trial' in dp: 208 if PARAMS['trial'] in dp:
209 del dp['trial'] 209 del dp[PARAMS['trial']]
210 210
211 211
212 def print_help(self): 212 def print_help(self):