You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Choropleth seems to not reset selection upon receiving new data.
Steps to reproduce the behavior
The way I encountered this:
do hierarchical clustering, output result to choropleth,
in clustering, select all clusters,
in choroplet, select one region
in clustering, select one small cluster, e.g. two points (if this does not crash, change selection).
Crashes with
File "/Users/janez/dev/orange3-geo/orangecontrib/geo/widgets/owchoropleth.py", line 776, in apply_selection
selection[index_group[0]] = index_group[1]
IndexError: index 159 is out of bounds for axis 0 with size 6
Notes
On the first glance, set_data should reset selection (it doesn't). On the second, reset may belong inside
Geo version: 0.3.2-dev
Orange version: 3.33-dev
Actual behavior
Choropleth seems to not reset selection upon receiving new data.
Steps to reproduce the behavior
The way I encountered this:
Crashes with
Notes
On the first glance,
set_data
should reset selection (it doesn't). On the second, reset may belong insideBut the proper approach is probably to remove from selection all regions that no longer appear in the data.
The text was updated successfully, but these errors were encountered: