comparison validate_temperature_data.py @ 1:cfe1ce427aa7 draft

Uploaded
author greg
date Tue, 27 Nov 2018 09:50:49 -0500
parents 4290854f3af5
children 57c418290b61
comparison
equal deleted inserted replaced
0:4290854f3af5 1:cfe1ce427aa7
152 tmin = items[8] 152 tmin = items[8]
153 accumulated_msgs = validate_decimal(i, tmin, accumulated_msgs, "tmin") 153 accumulated_msgs = validate_decimal(i, tmin, accumulated_msgs, "tmin")
154 tmax = items[9] 154 tmax = items[9]
155 accumulated_msgs = validate_decimal(i, tmax, accumulated_msgs, "tmax") 155 accumulated_msgs = validate_decimal(i, tmax, accumulated_msgs, "tmax")
156 if args.data_type == "normals" and num_normals_rows != 367: 156 if args.data_type == "normals" and num_normals_rows != 367:
157 accumulated_msgs = add_error_msg(accumulated_msgs, "The input file contains %d rows, (must be 367)." % num_normals_rows)) 157 accumulated_msgs = add_error_msg(accumulated_msgs, "The input file contains %d rows, (must be 367)." % num_normals_rows)
158 158
159 if len(accumulated_msgs) > 0: 159 if len(accumulated_msgs) > 0:
160 stop_error(accumulated_msgs) 160 stop_error(accumulated_msgs)
161 161
162 shutil.copyfile(input_file, args.output) 162 shutil.copyfile(input_file, args.output)