biolab / orange3-network

🍊 🕸 Network analysis add-on for Orange data mining suite.
Other
39 stars 33 forks source link

Network explorer keeps selection after data is removed #111

Open janezd opened 5 years ago

janezd commented 5 years ago

The problem manifests like this:

TypeError:  object of type 'NoneType' has no len()
(7 additional frame(s) were not displayed)
...
  Module "Orange.widgets.gui", in unconditional_commit
    do_commit()
  Module "Orange.widgets.gui", in do_commit
    commit()
  Module "Orange.widgets.visualize.utils.widget", in commit
    self.send_data()
  Module "orangecontrib.network.widgets.OWNxExplorer", in send_data
    super().send_data()
  Module "Orange.widgets.visualize.utils.widget", in send_data
    group_sel = np.zeros(len(data), dtype=int)

The trace comes from sentry, hence no instructions to reproduce.

OWDataProjectionWidget expects that if graph.selection is not None, then self._get_projection_data() doesn't return None. Network explorer apparently violates this.

janezd commented 8 months ago

Also note that the Color combo is not cleared.