Skip to content
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

[FIX] Avoid some context crashes: exclude_attributes=True #707

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

markotoplak
Copy link
Collaborator

Some contexts match even though feature-selection combo boxes do not show the feature. Problematic settings are those where combo boxes are limited to specific parts of the table (attributes, class_vars, or metas).

This partial solution follows from biolab/orange3#6721 (comment). This does not solve the problem completely, but if problem appears, adding a new widget instance allows the user to continue.

Also, there is another minor issue: exclude_attributes won't allow users to reuse contexts where class vars were used in the fields (current implementation handles attributes and class vars in the same way), but saving and loading works properly (because of perfect matches).

@markotoplak
Copy link
Collaborator Author

Partial solution to #706.

Some contexts match even though feature-selection combo boxes do not
show the feature. Problematic settings are those where combo boxes are
limited to specific parts of the table (attributes, class_vars, or
metas).

This does not solve the problem completely, but if problem appears,
adding a new widget instance allows the user to continue.

Also, there is another minor issue: exclude_attributes won't allow users
to reuse contexts where class vars were used in the fields (current
implementation handles attributes and class vars in the same way), but
saving and loading works properly (because of perfect matches).
@markotoplak
Copy link
Collaborator Author

This does not fix crashes that appear if the user chose a class variable in the boxes (I tried by coloring Iris data in Spectra), because attributes and classes are handled in a package.

That would have to be fixed by making a new context handler.

@markotoplak markotoplak changed the title Avoid some context crashes: exclude_attributes=True [FIX] Avoid some context crashes: exclude_attributes=True Feb 6, 2024
@markotoplak markotoplak merged commit c51ecb0 into Quasars:master Feb 6, 2024
14 checks passed
@markotoplak markotoplak deleted the fix-context-crash branch July 10, 2024 14:03
markotoplak added a commit to callumgassner/orange-spectroscopy that referenced this pull request Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant