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

ERROR: "range() integer end argument expected, got float." when running the edge bundling tool #20

Open
xiaofanliang opened this issue Jun 21, 2020 · 0 comments

Comments

@xiaofanliang
Copy link

xiaofanliang commented Jun 21, 2020

This is the bundle edges parameter page at QGIS 2.18. kmeans_sample is an edge data file with selected samples from running the cluster_line_kmeans tool. The unit of the projection (conic) is meter, so I set the step size to be very large.
Screen Shot 2020-06-21 at 4 25 24 PM

This is the error I received when hitting the "Run"
Screen Shot 2020-06-21 at 4 22 37 PM

The error message seems to mean that the algorithm wants the parameter values to be integers rather than floats. But I had made sure that initial_step_size, compatibility, cycles, and iterations are all integers. The tool window forces my number to be in the format of floats —— even if I typed in "1", the tool will "floated" it to "1.000000".

I compared carefully the numbers I have with the numbers you put in the blog post. I even tried the exact same numbers but still received the same error message. I also checked the python version in the QGIS console: it can run Python2 syntax perfectly (which is what your script is written in). I wonder if you have any clues that what may cause the issue.

Thank you very much!

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

1 participant