diff options
Diffstat (limited to 'gen/generator.py')
-rw-r--r-- | gen/generator.py | 8 |
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 | |||
6 | from Cheetah.Template import Template | 6 | from Cheetah.Template import Template |
7 | from collections import namedtuple | 7 | from collections import namedtuple |
8 | from common import get_config_option | 8 | from common import get_config_option |
9 | from config.config import DEFAULTS | 9 | from config.config import DEFAULTS,PARAMS |
10 | from gen.dp import DesignPointGenerator | 10 | from gen.dp import DesignPointGenerator |
11 | from parse.col_map import ColMapBuilder | 11 | from 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): |