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

Hardcoded path to CVS input file #3

Open
vschiavoni opened this issue Jul 18, 2014 · 2 comments
Open

Hardcoded path to CVS input file #3

vschiavoni opened this issue Jul 18, 2014 · 2 comments

Comments

@vschiavoni
Copy link

The file main.py has an barcoded path to this input file:
/home/kazem/Downloads/Hackathon/drinkingFountains.csv

It should take it as input parameter.

@hujian92
Copy link

hujian92 commented Jan 4, 2017

it may have some mistakes in main.py, when I run the code with drinkingFountains.csv dataset get an error:
"Traceback (most recent call last):
File "main.py", line 13, in
loc_ = Point(float(line[0]), float(line[1])) #tuples for location
ValueError: could not convert string to float: MAPID"
Because the first line in drinkingFountains.csv is header,,not a float num, it may be revised as:
for line in reader: => for line in islice(reader,1,None):

@jixiedaima
Copy link

where is the input file?

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

No branches or pull requests

3 participants