ait-energy / qgis-edge-bundling

GNU General Public License v2.0
63 stars 14 forks source link

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

Open xiaofanliang opened 4 years ago

xiaofanliang commented 4 years ago

This is the bundle edges parameter page at QGIS 2.18. _kmeanssample 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!