biolab / orange3

🍊 :bar_chart: :bulb: Orange: Interactive data analysis
https://orangedatamining.com
Other
4.85k stars 1.01k forks source link

Predictions: IndexError when clicking outside the table #5074

Closed ajdapretnar closed 3 years ago

ajdapretnar commented 3 years ago
-------------------------- AttributeError Exception ---------------------------
Traceback (most recent call last):
  File "/Users/ajda/orange/orange3/Orange/widgets/evaluate/owpredictions.py", line 1130, in select
    self.store.select(selection, flags)
  File "/Users/ajda/orange/orange3/Orange/widgets/evaluate/owpredictions.py", line 1057, in select
    rows = {selection.model().mapToSource(selection).row()}
AttributeError: 'NoneType' object has no attribute 'mapToSource'
-------------------------------------------------------------------------------
erelin6613 commented 3 years ago

Hey, I would like to take a look at this one, may I? Thanks in advance!

ajdapretnar commented 3 years ago

@erelin6613 Hello! You are welcome to take this over! ⭐

irgolic commented 3 years ago

@erelin6613 Hey, nice to meet you, thanks for the initiative. If you've any questions, feel free to ask on Discord :)

erelin6613 commented 3 years ago

@irgolic @ajdapretnar I have been trying to dig deep into the warning the terminal was displaying: QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 100', I am not sure if it might cause issue or not though. For now I just added functionality to 'just not break' but was not able to discover some deeper problem if there is any. If you have any idea why SharedSelectionStore.selection.model() could return None, I appreciate you for suggestion. Otherwise a fix for stability is available on my forked repo.

irgolic commented 3 years ago

@erelin6613 Create a new branch with your fix on your forked repo, then create a pull request https://github.com/biolab/orange3/compare, and we can see what's up.

You should be able to find some help here: https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/working-with-forks