-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OWNeighbors: check matching of attributes only #4117
Comments
This seems to be already fixed a long time ago in #3555. |
I think a release of the current master should fix this. A test would be nice. Domains have to come from two different sources I think - Image Embedding works well for testing. |
I assume that it must be the same bug than at #4108 since both use a orange3/Orange/widgets/data/tests/test_owneighbors.py Lines 402 to 457 in 5febf5f
In #4131 I made a small addition to the test to also checks the output. |
If tests are already available, I can't understand how they could pass with the last release... Neighbors now doesn't work for demo workflow (lookalike). |
You are right, those tests didn't exactly cover the issue you had. The problem was that in this case, all attributes have the same names are different objects. I added a test case for that in #4131. |
Yeah, that was the case. Thanks! |
Describe the bug
Neighbors widget doesn't work when meta attributes are different. Should probably only check if X matches, since it doesn't consider metas anyway.
To Reproduce
Steps to reproduce the behavior:
Orange version:
3.23.1
Expected behavior
If attributes of both outputs match (data.domain.attributes == reference_data.domain.attributes), Neighbors works.
The text was updated successfully, but these errors were encountered: