aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Kenna <cjk@cs.unc.edu>2012-09-20 16:37:26 -0400
committerChristopher Kenna <cjk@cs.unc.edu>2012-09-20 16:37:26 -0400
commitda64d9a01ee3c563a73e922dd2ac752d4011aa9b (patch)
tree0afa2526fcab008019c8015abe64049f7d9efa9c
parent48e1c8de6f8fca6770b669f8dae1ddc52917bead (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-xrun_exps.py2
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
118def load_schedule(fname): 118def 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: