Closed lucixhub closed 1 year ago
You've find yourself a perfect task for your introduction to coding Orange. :)
I suggest you do the following:
test_missing_one_row_data
) to pass data with a single row to the widget. (If you have some table, say self.iris
, use self.iris[:1]
to get a table that only contains the first row.) Such tests should fail. (I tried and it does.)class Error
and search for self.Error
within code to understand how errors work. There is, in fact, a place that already reports a similar error (no rows without missing values). I suppose that you could simply modify this error message (and the corresponding check that triggers it) to something like "SOM needs at least two data rows without missing values"
. Also rename the message from no_defined_rows
to not_enough_data
.None
as data. (This shouldn't be a problem if you're fix is indeed going to consist just of minor modification of the existing code.If you need any help, ask.
What's wrong?
Error when changing input data to SOM
How can we reproduce the problem?
err.zip Paint Data -> SOM(PCA, network 10x10) -> Data Table Open Paint Data, add exactly 1 (put) point, SOM throws an error.
What's your environment?