changeset 11:f0d173b1abcf draft

Uploaded
author greg
date Tue, 27 Nov 2018 10:38:46 -0500
parents 1ce61b5b58d5
children 62b46f0b88c9
files validate_temperature_data.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/validate_temperature_data.py	Tue Nov 27 10:17:39 2018 -0500
+++ b/validate_temperature_data.py	Tue Nov 27 10:38:46 2018 -0500
@@ -157,11 +157,10 @@
                     if int(doy) != (last_doy + 1):
                         accumulated_msgs = add_error_msg(accumulated_msgs, "Line %d contains a DOY (%s) that is not conexcutive." % (i, doy))
                         stop_error(accumulated_msgs)
-                    else:
-                        last_doy += 1
                 except Exception:
                     # The error for an invalid integer was captured above.
                     pass
+                last_doy += 1
             tmin = items[4].strip()
             accumulated_msgs = validate_decimal(i, tmin, accumulated_msgs, "tmin")
             tmax = items[5].strip()