Mercurial > repos > greg > validate_temperature_data
comparison validate_temperature_data.py @ 11:f0d173b1abcf draft
Uploaded
| author | greg | 
|---|---|
| date | Tue, 27 Nov 2018 10:38:46 -0500 | 
| parents | 1ce61b5b58d5 | 
| children | 62b46f0b88c9 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 10:1ce61b5b58d5 | 11:f0d173b1abcf | 
|---|---|
| 155 else: | 155 else: | 
| 156 try: | 156 try: | 
| 157 if int(doy) != (last_doy + 1): | 157 if int(doy) != (last_doy + 1): | 
| 158 accumulated_msgs = add_error_msg(accumulated_msgs, "Line %d contains a DOY (%s) that is not conexcutive." % (i, doy)) | 158 accumulated_msgs = add_error_msg(accumulated_msgs, "Line %d contains a DOY (%s) that is not conexcutive." % (i, doy)) | 
| 159 stop_error(accumulated_msgs) | 159 stop_error(accumulated_msgs) | 
| 160 else: | |
| 161 last_doy += 1 | |
| 162 except Exception: | 160 except Exception: | 
| 163 # The error for an invalid integer was captured above. | 161 # The error for an invalid integer was captured above. | 
| 164 pass | 162 pass | 
| 163 last_doy += 1 | |
| 165 tmin = items[4].strip() | 164 tmin = items[4].strip() | 
| 166 accumulated_msgs = validate_decimal(i, tmin, accumulated_msgs, "tmin") | 165 accumulated_msgs = validate_decimal(i, tmin, accumulated_msgs, "tmin") | 
| 167 tmax = items[5].strip() | 166 tmax = items[5].strip() | 
| 168 accumulated_msgs = validate_decimal(i, tmax, accumulated_msgs, "tmax") | 167 accumulated_msgs = validate_decimal(i, tmax, accumulated_msgs, "tmax") | 
| 169 if args.data_type == "normals" and num_normals_rows != 367: | 168 if args.data_type == "normals" and num_normals_rows != 367: | 
