Skip to content

Field error in first line of data file. #99

Description

@SteveWilcox303

Two related issues:

  1. If the input data file contains an extra field in the first data record (line 2 after the header), an error appears (but with no line number):

ValueError:
Input data (0:00) is incompatible with data format (0: MM/DD/YYYY)

This is inconsistent with the input line:
5/20/2018,0:00,25.9683,-0.347231,30.427999,999.9
(999.9 is the added field)

  1. If the additional field is on line 3 or greater, it is identified as a parsing error. The software specs actually allow for any number of CSV fields after the DHI field, which are to be ignored, e.g. an extra field should not trigger an error. Only too few fields should trigger an error. IF that spec unduly complicates the parsing algorithm, we can drop it and strictly count the fields, but the user's manual will have to be modified. Let me know your thoughts.

Attached is a short input file that should illustrate #1 above. You can run it as an input file with a valid configuration for any other process.

brs.b1_formatted_extrafield_test.csv

Metadata

Metadata

Assignees

Labels

Low priorityLow priority for MVP SUNI product

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions