quintel / refinery

Calculates node demands and edge shares for sparse energy graphs.
2 stars 0 forks source link

Trailing comma's problem?? #30

Closed StijnDellaert closed 11 years ago

StijnDellaert commented 11 years ago

In the new primary_production.csv there are lines ending with ,, No value represents the NULL here. Will the parser have a problem with these comma's? Their column does have a header so are we ok?

antw commented 11 years ago

Trailing commas are correct when there's a header for each column. It's only a problem when there's an extra set of commas which create a totally blank column with no header:

OK:

key,share
node_one,0.1
node_two,

Not OK:

key,share,
node_one,0.1,
node_two,,

If you have CSVs with NULL values, you may need to fetch the latest revision of Atlas.

StijnDellaert commented 11 years ago

clear, thanks.