Mercurial > repos > greg > validate_affy_metadata
changeset 7:31b9f0a18a15 draft
Uploaded
author | greg |
---|---|
date | Wed, 14 Nov 2018 15:00:38 -0500 |
parents | 11d22a27c24a |
children | 0735cfcc7490 |
files | validate_affy_metadata.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/validate_affy_metadata.py Wed Nov 14 14:58:08 2018 -0500 +++ b/validate_affy_metadata.py Wed Nov 14 15:00:38 2018 -0500 @@ -32,10 +32,10 @@ def validate_date_string(line_no, date_string, accumulated_msgs): try: - datetime.datetime.strptime(date_string, '%Y/%m/%d') + datetime.datetime.strptime(date_string, '%y/%m/%d') return accumulated_msgs except ValueError: - return add_error_msg(accumulated_msgs, "Line %d contains an incorrect date format (must be YY/MM/DD)." % line_no) + return add_error_msg(accumulated_msgs, "Line %d contains an incorrect date format (%s must be YY/MM/DD)." % (line_no, date_string)) def validate_decimal(line_no, decimal_string, accumulated_msgs):