Skip to content
Snippets Groups Projects
Commit 700d941a authored by Colm Talbot's avatar Colm Talbot
Browse files

make prior file reading avoid comments

parent e87445a0
No related branches found
No related tags found
1 merge request!59Updating priors
......@@ -54,6 +54,8 @@ class PriorSet(dict):
prior = {}
with open(filename, 'r') as f:
for line in f:
if line[0] == '#':
continue
elements = line.split('=')
key = elements[0].replace(' ', '')
val = '='.join(elements[1:])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment