From da64d9a01ee3c563a73e922dd2ac752d4011aa9b Mon Sep 17 00:00:00 2001 From: Christopher Kenna Date: Thu, 20 Sep 2012 16:37:26 -0400 Subject: 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. --- run_exps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): def load_schedule(fname): with open(fname, 'r') as f: - data = f.read() + data = f.read().strip() try: schedule = eval(data) except: -- cgit v1.2.2