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] Paint Data: Save and load labels #2259

Merged
merged 2 commits into from
Apr 26, 2017
Merged

[FIX] Paint Data: Save and load labels #2259

merged 2 commits into from
Apr 26, 2017

Conversation

jerneju
Copy link
Contributor

@jerneju jerneju commented Apr 24, 2017

Issue

No extra labels are saved when class has more than two values.

Description of changes
Includes
  • Code changes
  • Tests
  • Documentation

@@ -778,6 +778,7 @@ class OWPaintData(OWWidget):
density = Setting(7)
#: current data array (shape=(N, 3)) as presented on the output
data = Setting(None, schema_only=True)
labels = Setting(None, schema_only=True)
Copy link
Member

Choose a reason for hiding this comment

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

Why not Setting(["C1", "C2"], schema_only=True)?

@codecov-io
Copy link

codecov-io commented Apr 24, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@f083215). Click here to learn what that means.
The diff coverage is 20%.

@@            Coverage Diff            @@
##             master    #2259   +/-   ##
=========================================
  Coverage          ?   72.47%           
=========================================
  Files             ?      319           
  Lines             ?    55130           
  Branches          ?        0           
=========================================
  Hits              ?    39958           
  Misses            ?    15172           
  Partials          ?        0



def _i(name, icon_path="icons/paintdata",
widg_path=os.path.dirname(os.path.abspath(__file__))):
def _ic(name, icon_path="icons/paintdata",
Copy link
Member

Choose a reason for hiding this comment

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

_i was not a very good name and neither is _ic. what is wrong with _icon?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@astaric
Copy link
Member

astaric commented Apr 26, 2017

Works perfectly.

@astaric astaric merged commit c6d5f3f into biolab:master Apr 26, 2017
@jerneju jerneju deleted the paintdata-save-labels branch May 3, 2017 07:15
@jerneju
Copy link
Contributor Author

jerneju commented May 4, 2017

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.

3 participants