Ticket #1134 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

Net from Distances without inputs bug

Reported by: lanz Owned by: miha
Milestone: 2.6 Component: canvas
Severity: minor Keywords:
Cc: Blocking:
Blocked By:

Description

When Net from Distances is opened and does not have any inputs yet it crashes if some options are set (e.g. Percentil, but probably also others).

It should store the value of the options and try to apply it to the inputs only when they are available.

Traceback:
  File: OWGUI.py, line 250 in onEnter
  Code: self.cfunc()
    File: OWGUI.py, line 1494 in __call__
    Code: self.f(**kwds)
      File: OWNxHist.py, line 82 in setPercentil
      Code: vals = sorted(sum(self.matrix, ()))[self.matrix.dim:]
        TypeError: 'NoneType' object is not iterable

Change History

comment:1 Changed 2 years ago by lanz

A correct fix for the above would also allow the options to be used immediately when a signal is connected.

Currently the options (eg. kNN, Percentile) are loaded from previous orange session so they are set, but the output graph is constructed only after the first change.

comment:2 Changed 2 years ago by miha

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.