Mercurial > repos > greg > validate_temperature_data
comparison validate_temperature_data.py @ 5:467305a51829 draft
Uploaded
author | greg |
---|---|
date | Tue, 27 Nov 2018 09:57:15 -0500 |
parents | 9ca3ff390666 |
children | 418a11822c5a |
comparison
equal
deleted
inserted
replaced
4:9ca3ff390666 | 5:467305a51829 |
---|---|
73 for i, line in enumerate(ih): | 73 for i, line in enumerate(ih): |
74 line = line.rstrip("\r\n") | 74 line = line.rstrip("\r\n") |
75 if i == 0: | 75 if i == 0: |
76 if line != header: | 76 if line != header: |
77 accumulated_msgs = add_error_msg(accumulated_msgs, "The header is invalid, must be %s" % header) | 77 accumulated_msgs = add_error_msg(accumulated_msgs, "The header is invalid, must be %s" % header) |
78 continue | |
78 items = line.split(",") | 79 items = line.split(",") |
79 if args.data_type == "normals": | 80 if args.data_type == "normals": |
80 if i > 367: | 81 if i > 367: |
81 accumulated_msgs = add_error_msg(accumulated_msgs, "The input file contains more than 367 lines (must be 1 header line and 366 data lines).") | 82 accumulated_msgs = add_error_msg(accumulated_msgs, "The input file contains more than 367 lines (must be 1 header line and 366 data lines).") |
82 stop_error(accumulated_msgs) | 83 stop_error(accumulated_msgs) |