Commit d00fae04 authored by Matt Traudt's avatar Matt Traudt
Browse files

Update to handle new v3bw format

parent f4570609
......@@ -24,18 +24,10 @@ def line_into_dict(line):
def main(args):
total_input_weight = 0
line_dicts = []
is_first_line = True
for line in args.input:
if is_first_line:
# First line is special and is supposed to be a timestamp
except ValueError as e:
fail_hard('First line should be an int.', e)
is_first_line = False
if 'node_id=' not in line:
# All lines but the first go through this
d = line_into_dict(line)
# Check that the required parts of the line are here
if 'node_id' not in d:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment