diff options
| author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-03-07 15:27:52 -0500 |
|---|---|---|
| committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-03-07 15:27:52 -0500 |
| commit | 7e4e76d6e05e686023455e1553c3a42aee4e0540 (patch) | |
| tree | 45bf49afb1f1b464b1e715a8831e33d4218f858e | |
| parent | a8a7c22a0910ba57000dbacce7c509d1d2eb11b6 (diff) | |
Saved trial number in experiment parameters.
| -rw-r--r-- | gen/generator.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gen/generator.py b/gen/generator.py index aed8da3..73ccf45 100644 --- a/gen/generator.py +++ b/gen/generator.py | |||
| @@ -198,9 +198,16 @@ class Generator(object): | |||
| 198 | 198 | ||
| 199 | os.mkdir(dir_path) | 199 | os.mkdir(dir_path) |
| 200 | 200 | ||
| 201 | if trials > 1: | ||
| 202 | dp['trial'] = trial | ||
| 201 | self.out_dir = dir_path | 203 | self.out_dir = dir_path |
| 204 | |||
| 202 | self._create_exp(dict(dp)) | 205 | self._create_exp(dict(dp)) |
| 206 | |||
| 203 | del(self.out_dir) | 207 | del(self.out_dir) |
| 208 | if 'trial' in dp: | ||
| 209 | del dp['trial'] | ||
| 210 | |||
| 204 | 211 | ||
| 205 | def print_help(self): | 212 | def print_help(self): |
| 206 | s = str(Template("""Generator $name: | 213 | s = str(Template("""Generator $name: |
