Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spaces in header columns of edge CSV file fails to load #1461

Closed
pmcb55 opened this issue Apr 16, 2016 · 3 comments
Closed

Spaces in header columns of edge CSV file fails to load #1461

pmcb55 opened this issue Apr 16, 2016 · 3 comments

Comments

@pmcb55
Copy link

pmcb55 commented Apr 16, 2016

Hi,

It seems that if the header columns of an edge CSV file have spaces after the comma the CSV loader fails to recognise the required 'Source' and 'Target' columns.

For instance, my initial CSV was this:
Source, Target, Weight
1, 2, 0.1
1, 3, 0.3

I initially thought the problem was with BOM's, but after much trial-and-error it turns out it was simply the space before the word 'Target'!

This could be very simply fixed in the code by just using '.trim()' on the column names. (Of course I can fix this myself now by just removing the spaces before column names in my header, but this is unnecessarily very confusing for newbies to Gephi whose CSV files have spaces after commas for readability).

Pat.

@seinecle
Copy link

seinecle commented Feb 3, 2017

I agree the trailing spaces could be trimmed for a better UX

@eduramiba
Copy link
Member

The CSV and Spreadsheet import experience will be greatly improved with #1282 (including this) :)

@eduramiba
Copy link
Member

Can you please try the latest nightly build (https://github.com/gephi/gephi#nightly-builds)? It should include these changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants