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

[WIP][FIX] OWEditDomain: Fix crash when variable's attributes are represented as… #1530

Closed
wants to merge 1 commit into from

Conversation

VesnaT
Copy link
Contributor

@VesnaT VesnaT commented Aug 29, 2016

… lists

Fixes #1527

@codecov-io
Copy link

codecov-io commented Aug 29, 2016

Current coverage is 88.26% (diff: 100%)

Merging #1530 into master will not change coverage

@@             master      #1530   diff @@
==========================================
  Files            77         77          
  Lines          7624       7624          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           6729       6729          
  Misses          895        895          
  Partials          0          0          

Sunburst

Powered by Codecov. Last update a30e0c2...e6636e3

@@ -51,13 +51,13 @@ def variable_description(var):
var_type.__name__,
var.name,
(("values", tuple(var.values)),),
tuple(sorted(var.attributes.items())))
tuple((k, tuple(v)) for k, v in sorted(var.attributes.items())))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will happen if a variable has an attribute that has an int-value?

@VesnaT VesnaT changed the title [FIX] OWEditDomain: Fix crash when variable's attributes are represented as… [WIP][FIX] OWEditDomain: Fix crash when variable's attributes are represented as… Aug 29, 2016
@janezd
Copy link
Contributor

janezd commented Aug 29, 2016

EditDomain is not the only widget that crashes in this way. Perhaps it would be better if we decide that all Variable's values must be hashable and fix the coloring to use tuples, instead of fixing all other widgets.

@kernc
Copy link
Contributor

kernc commented Sep 6, 2016

What Variable's values are those? Variable's attributes' keys?

@janezd
Copy link
Contributor

janezd commented Sep 17, 2016

@VesnaT, @astaric, #1552 also fixed the problem in get_dict, right? Can we close this PR?

@astaric
Copy link
Member

astaric commented Sep 19, 2016

The tests from this PR have been cherry-picked to #1552, the rest was solved in a different way.

@astaric astaric closed this Sep 19, 2016
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.

Edit Domain crashes if discrete attributes are re-colored
5 participants