sandrofsousa / Segreg

🗺 Official repository for the QGIS plugin Segreg: A plugin for computing several spatial segregation measures in QGIS
GNU General Public License v2.0
6 stars 1 forks source link

ValueError: all the input array dimensions except for the concatenation axis must match exactly #3

Closed giacfalk closed 6 years ago

giacfalk commented 6 years ago

When I import a shapefile into segreg, select the attributes (groups) and data ID field cicking on Confirm Selection, i get the following Phython error message:

"ValueError: all the input array dimensions except for the concatenation axis must match exactly".

Is there any characteristic of the shapefile which might disturb the script?

sandrofsousa commented 6 years ago

Would be helpful if you send the full error message from python so I can check the exact line code where it breaks. My guess is may exist empty values (null) in your attribute data. Can you check if this is the case? In case positive, filling them with zero would avoid the issue.

giacfalk commented 6 years ago

Dear Sandro, thanks it worked by removing some empty features. Still, when I compute segregaiton measures, the measures in the output csv file are empty. May I forward my shapefile to you so that you can check?

sandrofsousa commented 6 years ago

I'm afraid must be something wrong with your shapefile or attributes. Try checking the CRS, different bandwidth, changing shapefile or creating a simple sample population with two groups from an empty shapefile. There's no apparent reason for empty results.