clusterpy / clusterpy_qgis_plugin

Clusterpy as a plugin for QGIS
3 stars 3 forks source link

Handle islands #1

Closed sergiobuj closed 10 years ago

sergiobuj commented 10 years ago

Apparently the Shapefile has an 'island'. Currently this is not expected by the plugin but should be fixed or taken into account.

Traceback (most recent call last):
  File "/home/rise/.qgis2/python/plugins/clusterpy_light/clusterpy_light.py", line 129, in maxp
    tabumax)
  File "/home/rise/.qgis2/python/plugins/clusterpy_light/clusterpy.py", line 189, in execmaxp
    regions = assignenclaves(partitions, enclaves, assigned)
  File "/home/rise/.qgis2/python/plugins/clusterpy_light/clusterpy.py", line 252, in assignenclaves
    for neighbor in assignedneighbor:
TypeError: 'NoneType' object is not iterable