NLeSC / spot

Try the demo
http://www.idarksurvey.com/
Apache License 2.0
21 stars 11 forks source link

CSV import not working #146

Closed franktakes closed 6 years ago

franktakes commented 6 years ago

I imported several tab-separated files with headers that parse properly in for example tools like Pandas, Python CSV reader and Gephi 0.9.2 (which is rather strict). However, when I import them into spot, they do appear as datasets (although it also once just randomly didn't show up), but clicking the switch to "active" them does nothing, hangs, and upon refreshing the page seems as if it was never clicked.

fdiblen commented 6 years ago

What is your web browser, and OS? Could you give us a small CSV file to reproduce your problem?

franktakes commented 6 years ago

I cannot seem to get it to load any of my CSV files. Perhaps you can give me a CSV file that you know works for you, and I can test? I supplied browser details in #144. Is there any recommended browser (and OS, although I highly doubt that should matter) in which everything should work? Then I can try to use that :)

fdiblen commented 6 years ago

I have just tried it with a simple CSV file and there is no problem. You can use the attached CSV file. The file was generated using the code snipped in our tutorial. https://nlesc.github.io/spot-tutorial/tutorial simple_data.txt

franktakes commented 6 years ago

I can confirm that the file you linked, works. Handy that there is some extra explanation on the import step :)

As reported in #144, it seems to store the state of the clicked radio buttons in the import settings now. That was perhaps the problem here as well, as now I seem to be able to import my own dataset, which is tab-separated (and before, the tab as delimiter setting was not stored due to the bug reported in #144).

Quick comment: the tutorial seems to suggest to separate by 2 characters; comma and space. The CSV-format traditionally has 1 character as a delimiter. The advantage of using just 1 character would for example be that there is no need to use escape characters on cells which contain a space.

fdiblen commented 6 years ago

Updated the snippet in the tutorial.