diff options
| author | Christopher Kenna <cjk@cs.unc.edu> | 2012-09-20 16:37:26 -0400 |
|---|---|---|
| committer | Christopher Kenna <cjk@cs.unc.edu> | 2012-09-20 16:37:26 -0400 |
| commit | da64d9a01ee3c563a73e922dd2ac752d4011aa9b (patch) | |
| tree | 0afa2526fcab008019c8015abe64049f7d9efa9c | |
| parent | 48e1c8de6f8fca6770b669f8dae1ddc52917bead (diff) | |
Allow experiment configuration to contain trailing whitespace.
By default, vim adds a trailing newline to the end of files, while Emacs
does not. This causes problems when editing experiments with vim.
| -rwxr-xr-x | run_exps.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run_exps.py b/run_exps.py index bc15b98..a2d5077 100755 --- a/run_exps.py +++ b/run_exps.py | |||
| @@ -117,7 +117,7 @@ def load_params(fname): | |||
| 117 | 117 | ||
| 118 | def load_schedule(fname): | 118 | def load_schedule(fname): |
| 119 | with open(fname, 'r') as f: | 119 | with open(fname, 'r') as f: |
| 120 | data = f.read() | 120 | data = f.read().strip() |
| 121 | try: | 121 | try: |
| 122 | schedule = eval(data) | 122 | schedule = eval(data) |
| 123 | except: | 123 | except: |
