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] Copy data attributes for annotated data set #1895

Merged
merged 3 commits into from
Jan 9, 2017

Conversation

BlazZupan
Copy link
Contributor

@BlazZupan BlazZupan commented Jan 8, 2017

Issue

Any annotations that accompany the data set are passed from widget to widget by attributes attribute of the data table. Essentially, the attributes should be inherited from the input data set. Where the new, resulting data set is build from scratch (say, with Orange.data.Table), the attributes have to be copied manually (e.g., new_table.attributes = old_table.attributes). This was not done in the create_annotated_table function which is used by several widgets (Data Table, MDS, Hierarchical Clustering), resulting in crashes of the widgets that rely on table attributes.

Description of changes

Attributes are now set for the newly constructed table by copying from input data table.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov-io
Copy link

codecov-io commented Jan 8, 2017

Current coverage is 89.25% (diff: 100%)

Merging #1895 into master will not change coverage

@@             master      #1895   diff @@
==========================================
  Files            86         86          
  Lines          9100       9100          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           8122       8122          
  Misses          978        978          
  Partials          0          0          

Sunburst

Powered by Codecov. Last update 917b3cb...da0632c

@astaric astaric added this to the 3.3.10 milestone Jan 9, 2017
@lanzagar lanzagar merged commit 097bf2a into biolab:master Jan 9, 2017
astaric pushed a commit to astaric/orange3 that referenced this pull request Jan 10, 2017
[FIX] Copy data attributes for annotated data set
(cherry picked from commit 097bf2a)
astaric pushed a commit to astaric/orange3 that referenced this pull request Jan 11, 2017
[FIX] Copy data attributes for annotated data set
(cherry picked from commit 097bf2a)
astaric pushed a commit to astaric/orange3 that referenced this pull request Jan 13, 2017
[FIX] Copy data attributes for annotated data set
(cherry picked from commit 097bf2a)
astaric pushed a commit to astaric/orange3 that referenced this pull request Jan 18, 2017
[FIX] Copy data attributes for annotated data set
(cherry picked from commit 097bf2a)
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.

5 participants